Skip to main content

package for handling config file of wpa supplicant

Project description

chibi_wpa_supplicant

https://img.shields.io/pypi/v/chibi_wpa_supplicant.svg Documentation Status

package for handling config file of wpa supplicant

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chibi_wpa_supplicant-1.0.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chibi_wpa_supplicant-1.0.0-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2Python 3

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

Hashes for chibi_wpa_supplicant-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1fcd441e24021268caaef2526b76552cc35013bb2e012b4ef236f93d2bfa5dab
MD5 56014466a34db9f3c3a9f7a640bebe02
BLAKE2b-256 1656da74c6d151bc94ca2627ae3b03f21681400709346a48f3aa0956b272e1c0

See more details on using hashes here.

File details

Details for the file chibi_wpa_supplicant-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for chibi_wpa_supplicant-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 265811023ce07273c2616feb24fe1314da281c848cb95502db2795b4cca01ad8
MD5 7e825922654d2f7751f7610a6ba7fa3b
BLAKE2b-256 62a9facb3e038a9ad59e47c4fcee7bc4c3a514645a90234a6d21a8ea2bcb5f33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page