This release is a pre-release and may not be stable for production use.
This python package provides a daemon that can be used to setup an access point for headless wifi configuration.
## Installation
The package requires [`hostapd`](https://en.wikipedia.org/wiki/Hostapd) and [`dnsmasq`](https://en.wikipedia.org/wiki/Dnsmasq) to be installed.
```console
sudo apt-get install hostapd
sudo apt-get install dnsmasq
sudo pip install wifi_conf
sudo install_wifi_conf
```
The status of the daemon can be checked with
```sh
sudo systemctl status wifi_conf
```
## Usage
```python
import wifi_conf
from wifi_conf import wifi_conf_client
# configure device as access point
# Access point has ssid `test`
wifi_conf_client.start_access_point(ssid="test")
# Wait some time to see effect
time.sleep(20)
# Set wifi password
wifi_conf_client.set_wifi_ssid_and_password('Wifi_ssid', 'password')
# switch back to wifi client mode
wifi_conf_client.stop_access_point()
```
## Testing
```bash
sudo python3 -m unittest test/wifi_conf_test.py
```
## Security
Currently, the `wifi_conf` user is added to the sudo group to be able to start and stop services connected to setting up an access point. For other solution see https://serverfault.com/questions/841099/systemd-grant-an-unprivileged-user-permission-to-alter-one-specific-service.
Metadata
Release files for wifi-conf 0.1.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wifi_conf-0.1.dev0.tar.gz | 6.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wifi_conf-0.1.dev0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.3 kB
Release files / wifi_conf-0.1.dev0.tar.gz
| Download URL | wifi_conf-0.1.dev0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15434a4061e8a98d077c71643b0c7142b2914e87b85ff1f582531cbb05e02cc4
|
|
BLAKE2b-256 checksum How to use checksums |
58788068211e100e26401cbbcfd942d544fd04a2e12f066456602da915a88919
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3
|
Release files / wifi_conf-0.1.dev0-py3-none-any.whl
| Download URL | wifi_conf-0.1.dev0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f509473c4cdc5c5d4fe84a1f6fc914da56c27697d6c473a1ee9111c440881b93
|
|
BLAKE2b-256 checksum How to use checksums |
5fdd7670dd99f7784ff9c4ced3c3272105e76836a8c204d49e699629416df6b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3
|
Security for wifi-conf 0.1.dev0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.