Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
Project description
- a library providing Pythonic manipulation, validation and classification of
common networking address notations, including :-
IPv4
IPv6
CIDR (Classless Inter-Domain Routing)
IEEE EUI-48, EUI-64 and MAC (Media Access Control)
Each object represents an individual address or address range and behaves as you would expect when treated like standard Python types. For example :-
If you call list() on a CIDR object, it provides an iterator yielding IP addresses.
Calling len() returns the number of addresses found within the range.
Indexing and/or slicing returns the addresses you’d expect. int() and hex() return the numerical value of an address in network byte order in the respective formats.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file netaddr-0.5.zip
.
File metadata
- Download URL: netaddr-0.5.zip
- Upload date:
- Size: 211.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dd0e2ecac055663eada1e8a4470878104c2edd1c463a6f3cb3a0c7d4ff8a3c3 |
|
MD5 | 008ac6d7b2451f3e7082c6c3bc41ab09 |
|
BLAKE2b-256 | c775eb770aeeb524f9c4998844296c07a6e730fb7e8c8f9d7f663ef10c2f8531 |
File details
Details for the file netaddr-0.5.tar.gz
.
File metadata
- Download URL: netaddr-0.5.tar.gz
- Upload date:
- Size: 157.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25a44899e88b99919f11d3ea1fb6f7eed67e005f446bfded3cd82ba817f37813 |
|
MD5 | d35e72f63ec2871e25ef50dec4b3705b |
|
BLAKE2b-256 | 5db1c0afa9a026870022e0afbcf0d91d0e100af704357ea0b0af51ee1fe585e2 |
File details
Details for the file netaddr-0.5.win32.exe
.
File metadata
- Download URL: netaddr-0.5.win32.exe
- Upload date:
- Size: 83.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 361fc40dde9430dd69a6c0f3a31f29415d34980b8a105f53c77d69a158749aad |
|
MD5 | 15671fca7dd3d4ef31ef0f36ddcfd04c |
|
BLAKE2b-256 | 20cf355bc979795e091f3d01b18563a6d7aa4e636c8d13b6788134612ca7e337 |