Metadata-Version: 2.4
Name: chibi_wpa_supplicant
Version: 1.0.0
Summary: package for handling config file of wpa supplicant
Home-page: https://github.com/dem4ply/chibi_wpa_supplicant
Author: dem4ply
Author-email: dem4ply@gmail.com
License: WTFPL
Keywords: chibi_wpa_supplicant
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: Public Domain
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: chibi>=0.18
Requires-Dist: chibi_atlas>=1.1.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

====================
chibi_wpa_supplicant
====================


.. image:: https://img.shields.io/pypi/v/chibi_wpa_supplicant.svg
        :target: https://pypi.python.org/pypi/chibi_wpa_supplicant

.. image:: https://readthedocs.org/projects/chibi-wpa-supplicant/badge/?version=latest
        :target: https://chibi-wpa-supplicant.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

package for handling config file of wpa supplicant


* Free software: WTFPL
* Documentation: https://chibi-wpa-supplicant.readthedocs.io.

=======
Install
=======


.. code-block:: bash

	pip install chibi_wpa_supplicant


=====
Usage
=====


.. code-block:: bash

	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


.. code-block:: python

	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.
