Skip to main content

A network address manipulation library for Python

Project description

A system-independent network address manipulation library for Python 2.7 and 3.5+. (Python 2.7, 3.5 and 3.6 support is deprecated).

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

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

Starting with Python 3.3 there’s an ipaddress module in the Python standard library which provides layer 3 address manipulation capabilities overlapping netaddr.

Documentation

Latest documentation https://netaddr.readthedocs.io/en/latest/

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

Uploaded Source

Built Distribution

netaddr-0.9.0-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for netaddr-0.9.0.tar.gz
Algorithm Hash digest
SHA256 7b46fa9b1a2d71fd5de9e4a3784ef339700a53a08c8040f08baf5f1194da0128
MD5 0c89e96501370d2538ecadca372e55a9
BLAKE2b-256 484c2491bfdb868c3f40d985037fa64a3903c125f45d7d3025640e05715db7a3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for netaddr-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5148b1055679d2a1ec070c521b7db82137887fabd6d7e37f5199b44f775c3bb1
MD5 8e0bb96fcb89012f72c7dd2a7ccad18f
BLAKE2b-256 684aaa1a61a8cdfc533020012594b006bbb3e7680326e1c247f63e711be5ab76

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