{"id":27247192,"url":"https://github.com/argosylabs/wgnlpy","last_synced_at":"2025-04-10T22:49:06.301Z","repository":{"id":55582430,"uuid":"201112549","full_name":"ArgosyLabs/wgnlpy","owner":"ArgosyLabs","description":"WireGuard + Netlink + Python","archived":false,"fork":false,"pushed_at":"2023-05-19T12:29:48.000Z","size":39,"stargazers_count":44,"open_issues_count":2,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T22:48:53.017Z","etag":null,"topics":["linux","netlink","python","wireguard"],"latest_commit_sha":null,"homepage":"","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/ArgosyLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-08-07T19:11:49.000Z","updated_at":"2025-02-10T18:23:42.000Z","dependencies_parsed_at":"2023-10-20T17:32:36.043Z","dependency_job_id":null,"html_url":"https://github.com/ArgosyLabs/wgnlpy","commit_stats":{"total_commits":57,"total_committers":2,"mean_commits":28.5,"dds":0.368421052631579,"last_synced_commit":"2dc844a48651d6b62d03fd2916e829bf56929c18"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArgosyLabs%2Fwgnlpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArgosyLabs%2Fwgnlpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArgosyLabs%2Fwgnlpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArgosyLabs%2Fwgnlpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArgosyLabs","download_url":"https://codeload.github.com/ArgosyLabs/wgnlpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312190,"owners_count":21082637,"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":["linux","netlink","python","wireguard"],"created_at":"2025-04-10T22:49:05.447Z","updated_at":"2025-04-10T22:49:06.284Z","avatar_url":"https://github.com/ArgosyLabs.png","language":"Python","readme":"# wgnlpy\nPython netlink connector to WireGuard\n======\n\nA simple control interface for [WireGuard](https://www.wireguard.com/) via\nNetlink, written in Python.\n\n```python\nfrom wgnlpy import WireGuard\n\ninterface = \"wg0\"\npeer = b'...'\n\nwg = WireGuard()\n\nwg.set_peer(interface, peer,\n\tendpoint=\"203.0.113.0:51820\",\n\tallowedips=[\"2001:db8::/32\"],\n\t)\nassert peer in wg.get_interface(interface).peers\n\nwg.remove_peers(interface, peer)\nassert peer not in wg.get_interface(interface).peers\n```\n\nRequires\n* [cryptography](https://cryptography.io/), \u0026\n* [pyroute2](https://pyroute2.org/).\n\nAlso useful: the `sockaddr_in` and `sockaddr_in6` utility classes for\nsockaddr manipulation.\n\nLicense: [MIT](https://opensource.org/licenses/MIT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargosylabs%2Fwgnlpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fargosylabs%2Fwgnlpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargosylabs%2Fwgnlpy/lists"}