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.3.0.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for netaddr-1.3.0.tar.gz
Algorithm Hash digest
SHA256 5c3c3d9895b551b763779ba7db7a03487dc1f8e3b385af819af341ae9ef6e48a
MD5 b0307617f8f3aa73bbcfadac52d91df7
BLAKE2b-256 5490188b2a69654f27b221fba92fda7217778208532c962509e959a9cee5229d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netaddr-1.3.0-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.3

File hashes

Hashes for netaddr-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c6a8ebe5554ce33b7d5b3a306b71bbb373e000bbbf2350dd5213cc56e3dbbe
MD5 0ae2b9e4579a65d353d682f3858576bd
BLAKE2b-256 12ccf4fe2c7ce68b92cbf5b2d379ca366e1edae38cccaad00f69f529b460c3ef

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