Skip to main content

Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses

Project description

netaddr is a Python library for the representation and manipulation
of various common network address formats and notations.

It takes the hassle out of fiddling with innumerable variations of
network addresses, presenting a consistent, extensible, easy-to-use
and above all Pythonic API.

With it you can represent, validate, convert, categorize, iterate,
generate, slice (and dice) :-

* IP version 4
* IP version 6
* CIDR (Classless Inter-Domain Routing) both IPv4 and IPv6
* MAC (Media Access Control) and IEEE EUI-48 and EUI-64
* Support for arbitrary IP address ranges with CIDR interoperability
* User friendly alternative IPv4 range syntax using netaddr's glob-style
Wildcard addresses

For examples see the project wiki :-

http://code.google.com/p/netaddr/wiki/NetAddrExamples

API documentation (auto-generated with epydoc) :-

http://packages.python.org/netaddr/

For details on latest changes and updates in the current and previous
releases see the CHANGELOG :-

http://code.google.com/p/netaddr/wiki/CHANGELOG

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for netaddr, version 0.6.1
Filename, size File type Python version Upload date Hashes
Filename, size netaddr-0.6.1-py2.4.egg (897.0 kB) File type Egg Python version 2.4 Upload date Hashes View hashes
Filename, size netaddr-0.6.1-py2.5.egg (896.0 kB) File type Egg Python version 2.5 Upload date Hashes View hashes
Filename, size netaddr-0.6.1-py2.6.egg (895.8 kB) File type Egg Python version 2.6 Upload date Hashes View hashes
Filename, size netaddr-0.6.1.tar.gz (1.1 MB) File type Source Python version None Upload date Hashes View hashes
Filename, size netaddr-0.6.1.win32.exe (905.1 kB) File type Windows Installer Python version any Upload date Hashes View hashes
Filename, size netaddr-0.6.1.zip (1.2 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page