Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
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.
BSD-3-Clause
cloud_download
Downloads
To download packages, you need to log in and have a valid subscription.
Please select a product to see the available package versions:
To access the subscriptions purchased by your organization, to open support cases, and to download the latest software patches, you need to be a member of your organization's account.
To join the account, you may either:
Ask your organization's administrator to add you to the account. See our documentation for details.
If you know one of your organization's registration codes, enter it below.