https://github.com/dukecat0/macwifi
Macwifi is a Python module that helps you to manage the WiFi on macOS.
https://github.com/dukecat0/macwifi
macos python wifi
Last synced: about 1 year ago
JSON representation
Macwifi is a Python module that helps you to manage the WiFi on macOS.
- Host: GitHub
- URL: https://github.com/dukecat0/macwifi
- Owner: dukecat0
- Created: 2021-11-11T07:22:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-18T11:57:40.000Z (about 3 years ago)
- Last Synced: 2025-03-30T08:22:47.919Z (about 1 year ago)
- Topics: macos, python, wifi
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# macwifi
Macwifi is a Python module that helps you to manage the WiFi on macOS.
## Installation
```
pip install macwifi
```
## Example
Connect to a WiFi network:
```python
import macwifi
macwifi.connect("MyWiFi", "password")
```
Done!
## Usage
List all available WiFi networks.
`list()`
Get the information about the connected WiFi.
`get_wifi_info()`
Get the SSID of the connected WiFi.
`get_ssid()`
Get the signal strength of the connected WiFi.
`get_rssi()`
Connect to a WiFi network.
`connect(ssid, password)`
Turn on the WiFi.
`turn_on()`
Turn off the WiFi.
`turn_off()`