net/py-netaddr 1.2.1_1 MidnightBSD
Manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- bsd3, mit
- Categories
- net, python
Description
A pure Python network address representation and manipulation library.
netaddr provides a Pythonic way of working with:
- IPv4 and IPv6 addresses and subnets
- MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers
- Arbitrary (non-aligned) IP address ranges and IP address sets
- Various non-CIDR IP range formats such as nmap and glob-style formats
Included are routines for:
- Generating, sorting and summarizing IP addresses and networks
- Performing easy conversions between address notations and formats
- Detecting, parsing and formatting network address representations
- Performing set-based operations on groups of IP addresses and subnets
- Working with arbitrary IP address ranges and formats
- Accessing OUI and IAB organisational information published by IEEE
- Accessing IP address and block information published by IANA
API documentation for the latest release is available here:
https://pythonhosted.org/netaddr/
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | net/py-netaddr | 1.2.1_1 |
| FreeBSD | net/py-netaddr | 1.3.0 |
| OpenBSD | net/py-netaddr | 1.3.0p0v0 |
| NetBSD | net/py-netaddr | 1.3.0nb1 |
| DragonFly | net/py-netaddr | 1.3.0 |
| HardenedBSD | net/py-netaddr | 1.3.0 |
| GhostBSD | net/py-netaddr | 1.3.0 |
| OPNsense | net/py-netaddr | 1.3.0 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}netaddr
From mports:
cd /usr/mports/net/py-netaddr && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}netaddr>0:net/py-netaddr
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}wheel>0: devel/py-wheel
Build dependencies 1
Required by 1
Configuration
Options name: net_netaddr
| Option | Default | Description |
|---|---|---|
| DOCS | off |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| netaddr-1.2.1.tar.gz | 2.278809e+06 | 6eb8fedf0412c6d294d06885c110de945cf4d22d2b510d0404f4e06950857987 |
Master sites 1
- PYPI