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 (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 :-

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

For details on history changes and updates see the CHANGELOG :-

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