Skip to main content

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

Project description

A pure Python network address representation and manipulation library.

netaddr provides a Pythonic way of work with :-

  • IPv4 and IPv6 addresses and subnets (including CIDR notation)
  • MAC (Media Access Control) addresses in multiple formats
  • IEEE EUI-64, OUI and IAB identifiers
  • a user friendly IP glob-style format

Included are routines for :-

  • generating, sorting and summarizing IP addresses
  • converting IP addresses and ranges between various different formats
  • performing set based operations on groups of IP addresses and subnets
  • arbitrary IP address range calculations and conversions
  • querying IEEE OUI and IAB organisational information
  • querying of IP standards related data from key IANA data sources

For examples please visit the example wiki pages :-

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

Complete API documentation for the latest release is available online :-

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

For details on history changes and updates 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.7.1
Filename, size File type Python version Upload date Hashes
Filename, size netaddr-0.7.1-py2.4.egg (1.0 MB) File type Egg Python version 2.4 Upload date Hashes View hashes
Filename, size netaddr-0.7.1-py2.5.egg (1.0 MB) File type Egg Python version 2.5 Upload date Hashes View hashes
Filename, size netaddr-0.7.1-py2.6.egg (1.0 MB) File type Egg Python version 2.6 Upload date Hashes View hashes
Filename, size netaddr-0.7.1.tar.gz (1.1 MB) File type Source Python version None Upload date Hashes View hashes
Filename, size netaddr-0.7.1.win32.exe (1.0 MB) File type Windows Installer Python version any Upload date Hashes View hashes
Filename, size netaddr-0.7.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