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.
- Developed at devel:languages:python
- Sources inherited from project openSUSE:Factory
-
4
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:zSystems/python-netaddr && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
netaddr-0.7.11.tar.gz | 0001478615 1.41 MB | |
python-netaddr.changes | 0000009519 9.3 KB | |
python-netaddr.spec | 0000002663 2.6 KB |
Revision 14 (latest revision is 29)
- Update to 0.7.11: * Performance of IPSet increased dramatically, implemented by Stefan Nordhausen and Martijn van Oosterhout. As a side effect, IPSet(IPNetwork("10.0.0.0/8")) is now as fast as you'd expect. * Various performance improvements all over the place. * netaddr is now hosted on PyPI and can be installed via pip. * Doing "10.0.0.42" in IPNetwork("10.0.0.0/24") works now. * IPSet has two new methods: iscontiguous() and iprange(), thanks to Louis des Landes. * Re-added the IPAddress.netmask_bits() method that was accidently removed. * Networks 128.0.0.0/16, 191.255.0.0/16, and 223.255.255.0/24 are not marked as reserved IPv4 addresses any more. Thanks to marnickv for pointing that out. * Various bug fixes contributed by Wilfred Hughes, 2*yo and Adam Goodman. FIXED Issue 58: https://github.com/drkjam/netaddr/issues/58 - foo.bar doesn't throw AddrFormatError FIXED Issue 57: https://github.com/drkjam/netaddr/issues/57 - netaddr packages not hosted on PyPI FIXED Issue 56: https://github.com/drkjam/netaddr/issues/56 - Fix comparison with large IPSet() FIXED Issue 55: https://github.com/drkjam/netaddr/pull/55 - Fix smallest_matching_cidr and all_matching_cidrs FIXED Issue 53: https://github.com/drkjam/netaddr/issues/53 - Exclude 128.0.0.0/16 and possibly others from reserved range set? FIXED Issue 51: https://github.com/drkjam/netaddr/issues/51 - Encoding errors in netaddr/eui/oui.txt FIXED Issue 46: https://github.com/drkjam/netaddr/issues/46 - len(IPSet()) fails on python3 FIXED Issue 43: https://github.com/drkjam/netaddr/issues/43 - Method to check if IPSet is contiguous FIXED Issue 38: https://github.com/drkjam/netaddr/issues/38 - netmask_bits is missing from the IPAddress (forwarded request 233654 from frispete)
Comments 0