{"id":23288256,"url":"https://github.com/gruvw/nmwifi","last_synced_at":"2026-02-26T04:12:17.065Z","repository":{"id":244395958,"uuid":"815137310","full_name":"gruvw/nmwifi","owner":"gruvw","description":"Python API (and CLI) to configure a Wi-Fi device through NetworkManager using a fallback Access Point.","archived":false,"fork":false,"pushed_at":"2025-03-19T08:31:30.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-19T13:57:43.725Z","etag":null,"topics":["ap","api","network-manager","networking","wifi"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/nmwifi","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gruvw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"docs/roadmap.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-14T12:36:27.000Z","updated_at":"2025-03-19T08:31:34.000Z","dependencies_parsed_at":"2025-03-19T09:37:18.965Z","dependency_job_id":null,"html_url":"https://github.com/gruvw/nmwifi","commit_stats":null,"previous_names":["gruvw/nmwifi"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gruvw/nmwifi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruvw%2Fnmwifi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruvw%2Fnmwifi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruvw%2Fnmwifi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruvw%2Fnmwifi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gruvw","download_url":"https://codeload.github.com/gruvw/nmwifi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gruvw%2Fnmwifi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272252290,"owners_count":24900621,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ap","api","network-manager","networking","wifi"],"created_at":"2024-12-20T03:15:44.414Z","updated_at":"2026-02-26T04:12:12.010Z","avatar_url":"https://github.com/gruvw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nmwifi\n\nThe [Python](https://www.python.org) package `nmwifi` provides an API (and a CLI) to configure a Wi-Fi device through [NetworkManager](https://networkmanager.dev/) using a fallback Access Point.\n\nTake a look at the project's [roadmap](docs/roadmap.md) to see upcoming features (and all the work accomplished).\n\n**Note** - Check out the `nmwifi` python package on PyPI: \u003chttps://pypi.org/project/nmwifi\u003e (managed using [Poetry](https://python-poetry.org/)).\n\nThis package was initially developed for the [Raspberry Pi](https://raspberrypi.com) to headlessly set up a Wi-Fi connection to a home router. \nHowever it works for any device that has at least one wireless network interface and that has NetworkManager installed.\n\n## Installation\n\n- Install by running: `pip install nmwifi`\n- Usage: `nmwifi --help`\n\n### Basic usage\n\nThe most common usage of the `nmwifi` tool is to first call `setup` (to configure the connections) and then keep the `balance` loop running forever.\nThis will set up a Wi-Fi connection to the given SSID and password along with an Access Point (with default SSID and no password).\nWhen the Wi-Fi network is not available, NetworkManager will automatically switch to the Access Point (AP).\nThe balance loop will periodically try to reconnect to the Wi-Fi network on AP mode.\n\n**Note**: the synchronous calls can take some time to respond depending on the underlying NetworkManager behavior.\n\nList every network interface on your machine by running the `nmcli d` command, select one that has the \"wifi\" type (often `wlan0`).\n\n#### CLI\n\n```bash\nnmwifi setup -i \u003cnetwork-interface\u003e -ws \u003cwifi-ssid\u003e -wp \u003cwifi-password\u003e\nnmwifi balance -i \u003cnetwork-interface\u003e\n```\n\n#### Python\n\n```python\nimport nmwifi\n\nnmwifi.setup(\"\u003cnetwork-interface\u003e\", \"\u003cwifi-ssid\u003e\", \"\u003cwifi-password\u003e\")\nnmwifi.balance(\"\u003cnetwork-interface\u003e\")\n```\n\n## Contributions\n\nFeel free to contribute by submitting pull requests, whether to add new features, improve existing functionality, or fix bugs :)\n\nBefore opening a new PR, make sure to open an issue to discuss it beforehand (first check if a similar issue does not already exist).\n\n## Powered by\n\nThis project would not be possible without the wonderful technologies below:\n\n* [Python](https://www.python.org/)\n* [NetworkManager](https://networkmanager.dev/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgruvw%2Fnmwifi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgruvw%2Fnmwifi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgruvw%2Fnmwifi/lists"}