{"id":15723098,"url":"https://github.com/bkbilly/dbus_networkdevices","last_synced_at":"2026-02-04T14:38:50.315Z","repository":{"id":251043645,"uuid":"836299664","full_name":"bkbilly/dbus_networkdevices","owner":"bkbilly","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-31T15:01:47.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T04:39:07.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bkbilly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"bkbilly","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.paypal.me/bkbillybk"]}},"created_at":"2024-07-31T14:53:36.000Z","updated_at":"2024-08-09T02:19:38.000Z","dependencies_parsed_at":"2024-07-31T15:49:33.432Z","dependency_job_id":null,"html_url":"https://github.com/bkbilly/dbus_networkdevices","commit_stats":null,"previous_names":["bkbilly/dbus_networkdevices"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bkbilly/dbus_networkdevices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fdbus_networkdevices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fdbus_networkdevices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fdbus_networkdevices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fdbus_networkdevices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bkbilly","download_url":"https://codeload.github.com/bkbilly/dbus_networkdevices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fdbus_networkdevices/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264021086,"owners_count":23545435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T22:10:21.333Z","updated_at":"2026-02-04T14:38:50.275Z","avatar_url":"https://github.com/bkbilly.png","language":"Python","funding_links":["https://github.com/sponsors/bkbilly","https://www.paypal.me/bkbillybk"],"categories":[],"sub_categories":[],"readme":"# DBus Network Devices\n\n[![PyPI](https://img.shields.io/pypi/v/dbus-networkdevices.svg)](https://pypi.python.org/pypi/dbus-networkdevices)\n![Python versions](https://img.shields.io/pypi/pyversions/dbus-networkdevices.svg)\n![License](https://img.shields.io/pypi/l/dbus-networkdevices.svg)\n\nThe `dbus-networkdevices` library empowers Python applications to get the active network devices that are connected to your network.\n\n## Key Features\n\n* **IP Access:** Retrieve interface name, ip addresses, wifi ssid, etc...\n* **Real-time Updates:** Utilizes callback functions to provide instant updates of network changes.\n\n## Requirements\n\n* Python 3.7 or later\n* `dasdbus` library\n\n## Installation\n\nInstall the library using pip:\n\n```bash\npip install dbus-networkdevices\n```\n\n## Usage\n\nThis library offers two primary usage approaches:\n\n### Command-Line Interaction\n\nIf you prefer a quick way to view information or control playback, you can potentially execute the dbus-networkdevices script directly. For more extensive programmatic control, I would recommend using the library within your Python code.\n\n### Programmatic Control\n\nImport the DBUSNetworkDevices class from your Python code:\n\n```python\nimport json\nfrom dbus_networkdevices import DBUSNetworkDevices\n\ndef callback(devices):\n    # Handle the list of network devices here\n    print(json.dumps(devices, indent=2))\n\n# Create an instance of the class\nDBUSNetworkDevices(callback)\n\n# Keep the app running\nwhile True:\n    time.sleep(1)\n```\n\n## Inspiration\n\nMost 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkbilly%2Fdbus_networkdevices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkbilly%2Fdbus_networkdevices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkbilly%2Fdbus_networkdevices/lists"}