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

Project details


Download files

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

Source Distributions

netaddr-0.6.4.zip (1.3 MB view hashes)

Uploaded Source

netaddr-0.6.4.tar.gz (1.2 MB view hashes)

Uploaded Source

Built Distributions

netaddr-0.6.4.win32.exe (979.1 kB view hashes)

Uploaded Source

netaddr-0.6.4-py2.6.egg (970.3 kB view hashes)

Uploaded Source

netaddr-0.6.4-py2.5.egg (970.5 kB view hashes)

Uploaded Source

netaddr-0.6.4-py2.4.egg (971.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page