DBus Network Devices
The dbus-networkdevices library empowers Python applications to get the active network devices that are connected to your network.
Key Features
- IP Access: Retrieve interface name, ip addresses, wifi ssid, etc...
- Real-time Updates: Utilizes callback functions to provide instant updates of network changes.
Requirements
- Python 3.7 or later
jeepneylibrary
Installation
Install the library using pip:
pip install dbus-networkdevices
Usage
This library offers two primary usage approaches:
Command-Line Interaction
Run the script directly to print active network devices as JSON:
dbus-networkdevices
Programmatic Control
Import the DBUSNetworkDevices class from your Python code:
import json
import time
from dbus_networkdevices import DBUSNetworkDevices
def callback(devices):
# Handle the list of network devices here
print(json.dumps(devices, indent=2))
# Create an instance of the class
DBUSNetworkDevices(callback)
# Keep the app running
while True:
time.sleep(1)
Inspiration
Most python applications use iwgetid and information from /proc/net/wireless to get the WiFi status, so I created this library to get the information directly from DBus and also include other interfaces.
Metadata
Release files for dbus-networkdevices 2026.10.0
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 | Actions |
|---|---|---|---|---|
| dbus_networkdevices-2026.10.0.tar.gz | 4.4 kB | Without provenance | Details for dbus_networkdevices-2026.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dbus_networkdevices-2026.10.0-py3-none-any.whl | Python 3 | none | any | Details for dbus_networkdevices-2026.10.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / dbus_networkdevices-2026.10.0.tar.gz
| Download URL | dbus_networkdevices-2026.10.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bf51c24d29676eddba4789ff7ac89ec002489958a398c54b2650507409397c7
|
|
BLAKE2b-256 checksum How to use checksums |
aef17eb1a87b1ed0b5ebc60b6a912957cf4c9a0a2445737c8ccc9fd167a5643e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / dbus_networkdevices-2026.10.0-py3-none-any.whl
| Download URL | dbus_networkdevices-2026.10.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e00af3afe31c035aa05113483fb9d3a0926775dde90a7d9515d96b6cccd237ac
|
|
BLAKE2b-256 checksum How to use checksums |
834eb952196049e4b87a76b580e7459a74d2897d2fb2ca585d9e713198b69899
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for dbus-networkdevices 2026.10.0
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.