The default output when lswifi
is run should contain data in each column. For this reason we would not want to display QBSS information because not all neighboring networks will support QBSS.
The output should display without wrapping on 1080p with 150% scaling.
- Goal is to have no dependencies on external library.
- Anything in the Python Standard Library is safe to use.
- class names should use
UpperCamelCase
- constant names should be
CAPITALIZED_WITH_UNDERSCORES
- other names should use
lowercase_separated_by_underscores
- private variables/methods should start with an underscore:
_myvar
- some special class methods are surrounded by two underscores:
__init__
- Native Wifi's wlanapi.h wrapper code.
When using abbreviations in CamelCase
, capitalize all the letters of the abbreviation. Dot11SSID
is better than Dot11Ssid
.
Implement __repr__
for any class you implement.
Implement __str__
if you think it would be useful to have a string version which errs on the side of readability.
Rule of thumb: __repr__
is for developers, __str__
is for customers.
If you need an IDE recommendation, use Visual Studio Code (VSC). Otherwise, use what makes you happy.
If you use VSC, you should use Python and Pylance extensions.
Using Python environments in VS Code. Linting Python in VS Code. .env is for PYTHONPATH.