pyroute2

Pyroute2 is a pure Python netlink and Linux network configuration library. It requires only Python stdlib, no 3rd party libraries. Later it can change, but the deps tree will remain as simple, as it is possible.

The library provides several modules:

  1. Netlink protocol implementations (RTNetlink, TaskStats, etc)
  2. Simple netlink socket object, that can be used in poll/select
  3. Network configuration module IPRoute provides API that in some way resembles ip/tc functionality
  4. IPDB is an async transactional database of Linux network settings

installation

make install or pip install pyroute2

requires

Python >= 2.6

The pyroute2 testing framework requires flake8, coverage, nosetests.

Table Of Contents

Previous topic

pyroute2 netlink library

Next topic

changelog

This Page