package for handling config file of wpa supplicant
Project description
chibi_wpa_supplicant
package for handling config file of wpa supplicant
Free software: WTFPL
Documentation: https://chibi-wpa-supplicant.readthedocs.io.
Install
pip install chibi_wpa_supplicant
Usage
cat > /etc/wpa_supplicant/default.conf << 'endmsg'
# Giving configuration update rights to wpa_cli
ctrl_interface=/run/wpa_supplicant_wlan1
ctrl_interface_group=wheel
update_config=1
# AP scanning
ap_scan=1
network={
ssid="other"
psk="22222222"
}
network={
ssid="TP-Link_FFFF"
psk="11111111"
}
endmsg
from chibi_wpa_supplicant import Chibi_wpa_supplicant_conf
tmp = Chibi_wpa_supplicant_conf( '/etc/wpa_supplicant/default.conf' )
result = tmp.read()
expected = {
'ctrl_interface': '/run/wpa_supplicant_wlan1',
'ctrl_interface_group': 'wheel',
'update_config': 1,
'ap_scan': 1,
'networks': [
{
'ssid': "other",
'psk': "22222222",
},
{
'ssid': "TP-Link_FFFF",
'psk': "11111111",
},
],
}
assert result == expected
result[ 'ctrl_interface' ] = '/run/wpa_supplicant_wlan0'
tmp.write( result )
new_result = tmp.read()
assert new_result[ 'server' ][ 'root' ] = '/run/wpa_supplicant_wlan0'
History
1.0.0 ( 2026-03-21 )
- clase file para el manejo de las configuracion de wpa supplicant
from chibi_wpa_supplicant import Chibi_wpa_supplicant_conf
0.0.1 ( 2026-03-21 )
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chibi_wpa_supplicant-1.0.0.tar.gz.
File metadata
- Download URL: chibi_wpa_supplicant-1.0.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fcd441e24021268caaef2526b76552cc35013bb2e012b4ef236f93d2bfa5dab
|
|
| MD5 |
56014466a34db9f3c3a9f7a640bebe02
|
|
| BLAKE2b-256 |
1656da74c6d151bc94ca2627ae3b03f21681400709346a48f3aa0956b272e1c0
|
File details
Details for the file chibi_wpa_supplicant-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: chibi_wpa_supplicant-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
265811023ce07273c2616feb24fe1314da281c848cb95502db2795b4cca01ad8
|
|
| MD5 |
7e825922654d2f7751f7610a6ba7fa3b
|
|
| BLAKE2b-256 |
62a9facb3e038a9ad59e47c4fcee7bc4c3a514645a90234a6d21a8ea2bcb5f33
|