svinota/pyroute2
Python Netlink and PF_ROUTE library — network configuration and monitoring observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 88
- Release rhythm 67
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 86
- age_days: 4895
- days_rel: 140
- days_push: 72
- n_releases_24m: 6
Adoption not part of the score
1064 stars · 274 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A pure Python library for the Linux netlink protocol and BSD PF_ROUTE, providing message encoding/decoding and socket APIs for network configuration and monitoring. It supports RTNL, nftables, WireGuard, ethtool, nl80211, network namespaces, and more.
Use cases
- configure linux interfaces routes and addresses from python
- manage network namespaces programmatically
- set up wireguard vpn interfaces
- monitor network settings change events
- configure nftables or ipset rules
- query wifi interface info via nl80211
- run a dhcp client in python
When to choose
- you need to script or automate Linux network configuration without shelling out to ip/ss commands
- you want fine-grained netlink access from pure Python with no third-party dependencies
- you need to manage network namespaces or monitor kernel network events
When to avoid
- you need cross-platform network configuration beyond Linux and limited BSD support
- you only need simple high-level networking (sockets, HTTP) rather than kernel-level configuration
- you need a GUI or CLI tool rather than a Python library
Facets
library · maturity active
networking configuration-management monitoring sdk networking operating-systems developer-tools bsd python netlink rtnl network-namespaces wireguard nftables nl80211 dhcp ethtool pf-route kernel-interface automation linux
4 sources
- readme: https://github.com/svinota/pyroute2 · fetched 2026-08-28 · c2fca3617001
- homepage: https://pyroute2.org/ · fetched 2026-08-29 · 42f1e54a4965
- site_page: http://docs.pyroute2.org/ · fetched 2026-08-29 · d8b672f26154
- registry_pypi: https://pypi.org/pypi/pyroute2/json · fetched 2026-08-29 · 3a83f4246d2e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| svinota/pyroute2 | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="svinota/pyroute2")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem