Skip to main content

A Python package to manage WiFi connections using iwctl

Project description

pyiwctl

pyiwctl is a Python package for managing WiFi connections using iwctl.

Installation

Prerequisites

Ensure you have iwd (iNet Wireless Daemon) installed on your system. You can install it using the following commands:

- Debian:
sudo apt install iwd -y

- Fedora:
sudo dnf install iwd

- Arch Linux:
sudo pacman -Sy iwd

Python Package

Install the pyiwctl package using pip:

pip install pyiwctl

Usage

from pyiwctl import WiFiManager

manager = WiFiManager(interface='wlan0')
manager.scan_networks()
ssids = manager.get_ssids()
print("Available networks:", ssids)

success = manager.connect_to_network('SSID_NAME', 'PASSWORD')
print("Connection successful:", success)

manager.disconnect()
manager.forget_network('SSID_NAME')

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

pyiwctl-0.4.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file pyiwctl-0.4.tar.gz.

File metadata

  • Download URL: pyiwctl-0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for pyiwctl-0.4.tar.gz
Algorithm Hash digest
SHA256 0e7bab79f02e651ad6b0d1e42be3c76c88f951447c9ae217b2fb89177841371e
MD5 44c92df9a7d74865f1f921e1e6605f03
BLAKE2b-256 3efe0b2df2e37ae96f2e1b3d76b7e4ffb4b3720966a1ece73840c33decf7051b

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