Skip to main content

A network address manipulation library for Python

Project description

https://codecov.io/gh/netaddr/netaddr/branch/master/graph/badge.svg https://github.com/netaddr/netaddr/workflows/CI/badge.svg https://img.shields.io/pypi/v/netaddr.svg https://img.shields.io/pypi/pyversions/netaddr.svg

A Python library for representing and manipulating network addresses.

Provides support for:

Layer 3 addresses

  • IPv4 and IPv6 addresses, subnets, masks, prefixes

  • iterating, slicing, sorting, summarizing and classifying IP networks

  • dealing with various ranges formats (CIDR, arbitrary ranges and globs, nmap)

  • set based operations (unions, intersections etc) over IP addresses and subnets

  • parsing a large variety of different formats and notations

  • looking up IANA IP block information

  • generating DNS reverse lookups

  • supernetting and subnetting

Layer 2 addresses

  • representation and manipulation MAC addresses and EUI-64 identifiers

  • looking up IEEE organisational information (OUI, IAB)

  • generating derived IPv6 addresses

Source code repository: https://github.com/netaddr/netaddr/

PyPI page: https://pypi-hypernode.com/project/netaddr/

Share and enjoy!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netaddr-1.2.1.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

netaddr-1.2.1-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file netaddr-1.2.1.tar.gz.

File metadata

  • Download URL: netaddr-1.2.1.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.2

File hashes

Hashes for netaddr-1.2.1.tar.gz
Algorithm Hash digest
SHA256 6eb8fedf0412c6d294d06885c110de945cf4d22d2b510d0404f4e06950857987
MD5 c0cee82f46dc1d5d8c4c5756c376f21b
BLAKE2b-256 54e60308695af3bd001c7ce503b3a8628a001841fe1def19374c06d4bce9089b

See more details on using hashes here.

File details

Details for the file netaddr-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: netaddr-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.2

File hashes

Hashes for netaddr-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd9e9534b0d46af328cf64f0e5a23a5a43fca292df221c85580b27394793496e
MD5 be0d9a6b850ba0d46fe02e72e42eb5fc
BLAKE2b-256 d0e4a57d2ad0c1381d6304c7eb3aed7c1a415c5b443e71d7e5c88378ac60d1ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page