Platform Supported
Deployments
Python module to control WiFi
on Linux, Windows and macOS
python -m pip install pywifi-controls
Enable or disable Wi-Fi
from pywifi import ControlPeripheral
ControlPeripheral().enable() # Turn on Wi-Fi
ControlPeripheral().disable() # Turn off Wi-Fi
Connect to a Wi-Fi SSID
from pywifi import ControlConnection
# Arguments passed during object instantiation
controller = ControlConnection(wifi_ssid='ssid', wifi_password='password')
controller.wifi_connector()
# Argument values taken from env vars
ControlConnection().wifi_connector()
Environment variables are loaded from a .env
file.
- wifi_ssid - SSID of the Wi-Fi connection.
- wifi_password - Password for the Wi-Fi connection.
Requirement
python -m pip install gitverse
Usage
gitverse-release reverse -f release_notes.rst -t 'Release Notes'
PreCommit
will ensure linting, and the doc creation are run on every commit.
Requirement
pip install sphinx==5.1.1 pre-commit recommonmark
Usage
pre-commit run --all-files
https://pypi.org/project/pywifi-controls/
https://thevickypedia.github.io/pywifi-controls/
© Vignesh Rao
Licensed under the MIT License