Skip to main content

pyroute2

Python network configuration library

PyRoute2 uses Netlink protocol to communicate with the Linux kernel and get/set all the information kernel network objects.

todo

  • remote: sasl authentication

  • rtnl: VLAN linkinfo data

  • rtnl: bridge info: see ./net/bridge/br_netlink.c:br_fill_ifinfo()

  • rtnl: traffic control – work with queue disciplines

sample

More samples you can read in the project documentation. Here is just a small snippet:

from pyroute2 import iproute
ip = iproute()
print ip.get_links()

The project contains several modules for different types of netlink messages, not only RTNL.

installation

make install or easy_install pyroute2

requires

Python >= 2.6

changelog

  • 0.1.4
    • netlink: remote netlink access

    • netlink: SSL/TLS server/client auth support

    • netlink: tcp and unix transports

    • docs: started sphinx docs

  • 0.1.3
    • ipdb: context manager interface

    • ipdb: [fix] correctly handle ip addr changes in transaction

    • ipdb: [fix] make up()/down() methods transactional [#1]

    • iproute: mirror packets to 0 queue

    • iproute: [fix] handle primary ip address removal response

  • 0.1.2
    • initial ipdb version

    • iproute fixes

  • 0.1.1
    • initial release, iproute module

Metadata

Release files for pyroute2 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyroute2 0.1.4
File Size Uploaded Provenance Actions
pyroute2-0.1.4.tar.gz 30.3 kB Without provenance Details for pyroute2-0.1.4.tar.gz

Release files / pyroute2-0.1.4.tar.gz

Download URL pyroute2-0.1.4.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7030efee2d8f8024e2fd092fa355c68349fee4b409721e7db543f265cde67c96
BLAKE2b-256 checksum
How to use checksums
bb6ebd8ee8fa28227f0671a6648bb8eb5c766cf511e7684cd75b9b8cccc9a3f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyroute2 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

0.3.17

This release

0.1.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page