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 working with :-

  • IPv4 and IPv6 addresses and subnets
  • MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers
  • arbitrary (non-aligned) IP address ranges and IP address sets
  • various non-CIDR IP range formats such as nmap and glob-style formats

Included are routines for :-

  • generating, sorting and summarizing IP addresses and networks
  • performing easy conversions between address notations and formats
  • detecting, parsing and formatting network address representations
  • performing set-based operations on groups of IP addresses and subnets
  • working with arbitrary IP address ranges and formats
  • accessing OUI and IAB organisational information published by IEEE
  • accessing IP address and block information published by IANA

For details on the latest updates and changes, see :-

https://github.com/drkjam/netaddr/blob/rel-0.7.x/CHANGELOG

API documentation for the latest release is available here :-

https://pythonhosted.org/netaddr/

Project details


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.13
Filename, size File type Python version Upload date Hashes
Filename, size netaddr-0.7.13-py2.7.egg (1.6 MB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size netaddr-0.7.13-py2.py3-none-any.whl (1.5 MB) File type Wheel Python version any Upload date Hashes View hashes
Filename, size netaddr-0.7.13.tar.gz (1.5 MB) File type Source Python version None Upload date Hashes View hashes
Filename, size netaddr-0.7.13.zip (1.6 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