pyroute2 0.7.12


Python Netlink library

Python Netlink library

Stars: 931, Watchers: 931, Forks: 243, Open Issues: 147

The svinota/pyroute2 repo was created 11 years ago and the last code push was 2 weeks ago.
The project is popular with 931 github stars!

How to Install pyroute2

You can install pyroute2 using pip

pip install pyroute2

or add it to a project with poetry

poetry add pyroute2

Package Details

Peter Saveliev
GPL-2.0-or-later OR Apache-2.0
GitHub Repo:


  • Software Development/Libraries/Python Modules
  • System/Networking
  • System/Systems Administration
No  pyroute2  pypi packages just yet.


A list of common pyroute2 errors.

Code Examples

Here are some pyroute2 code examples and snippets.

GitHub Issues

The pyroute2 package has 147 open issues on GitHub

  • NDB MPLS Not working
  • ethtool ioctl crashes if number of strings exceeds hardcoded value
  • Ethtool.get_strings_set() API inconsitent between Ioctl and Netlink variants
  • Add rules to nftables
  • Getting 'RecordSet' object has no attribute 'select_records' when a filter is applied on a dump of ndb interfaces view
  • NetlinkSocket file descriptors of pipes leakage

See more issues on GitHub

Related Packages & Articles

daemonize 2.5.0

Library to enable your code run as a daemon process on Unix-like systems.

psutil 6.0.0

Cross-platform lib for process and system monitoring in Python.

rns 0.7.5

Self-configuring, encrypted and resilient mesh networking stack for LoRa, packet radio, WiFi and everything in between

solox 2.9.2

SoloX - Real-time collection tool for Android/iOS performance data.

wxPython 4.2.1

Cross platform GUI toolkit for Python, "Phoenix" version

Twisted 24.3.0

An asynchronous networking framework written in Python

pywinauto 0.6.8

A set of Python modules to automate the Microsoft Windows GUI