Skip to main content

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

Project description

A Python library for representing and manipulating network addresses.

It takes the hassle out of dealing with a variety of common layer 2 and layer 3 network addressing formats and operations performed on them, presented in a consistent, easy to use and extensible Pythonic API.

The netaddr library allows you to work with :-

  • IPv4 and IPv6 addresses and subnets (including CIDR notation)
  • MAC (Media Access Control) addresses (and its many variant formats)
  • IEEE OUI, IAB, EUI-48 and EUI-64 identifiers
  • arbitary IP address ranges and user-friendly glob style IP ranges

Included are routines for :-

  • generating, sorting, summarizing and excluding IP addresses and ranges
  • converting IP addresses and ranges from one notation to another
  • querying OUI and IAB organisational information published by the IEEE
  • querying information on IP standards published by IANA

Online resources :-

  • Examples and tutorials

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

  • API documentation

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

  • Changes and updates for all previous and current releases

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.4
Filename, size File type Python version Upload date Hashes
Filename, size netaddr-0.6.4-py2.4.egg (971.6 kB) File type Egg Python version 2.4 Upload date Hashes View hashes
Filename, size netaddr-0.6.4-py2.5.egg (970.5 kB) File type Egg Python version 2.5 Upload date Hashes View hashes
Filename, size netaddr-0.6.4-py2.6.egg (970.3 kB) File type Egg Python version 2.6 Upload date Hashes View hashes
Filename, size netaddr-0.6.4.tar.gz (1.2 MB) File type Source Python version None Upload date Hashes View hashes
Filename, size netaddr-0.6.4.win32.exe (979.1 kB) File type Windows Installer Python version any Upload date Hashes View hashes
Filename, size netaddr-0.6.4.zip (1.3 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