BSD Ports

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

SystemPortVersion
MidnightBSDnet/py-netaddr1.2.1_1
FreeBSDnet/py-netaddr1.3.0
OpenBSDnet/py-netaddr1.3.0p0v0
NetBSDnet/py-netaddr1.3.0nb1
DragonFlynet/py-netaddr1.3.0
HardenedBSDnet/py-netaddr1.3.0
GhostBSDnet/py-netaddr1.3.0
OPNsensenet/py-netaddr1.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

Build dependencies 1
Required by 1

Configuration

Options name: net_netaddr

OptionDefaultDescription
DOCSoff
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
netaddr-1.2.1.tar.gz2.278809e+066eb8fedf0412c6d294d06885c110de945cf4d22d2b510d0404f4e06950857987
Master sites 1
  • PYPI