Skip to main content

A system-independent network address manipulation library for Python 2.7 and 3.5+. (Python 2.7 and 3.5 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!

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: netaddr-0.8.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for netaddr-0.8.0.tar.gz
Algorithm Hash digest
SHA256 d6cc57c7a07b1d9d2e917aa8b36ae8ce61c35ba3fcd1b83ca31c5a0ee2b5a243
MD5 34cad578473b66ad77bc3b2a7613ed4a
BLAKE2b-256 c33bfe5bda7a3e927d9008c897cf1a0858a9ba9924a6b4750ec1824c9e617587

See more details on using hashes here.

File details

Details for the file netaddr-0.8.0-py2.py3-none-any.whl.

File metadata

  • Download URL: netaddr-0.8.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for netaddr-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9666d0232c32d2656e5e5f8d735f58fd6c7457ce52fc21c98d45f2af78f990ac
MD5 38d40334dccad71981633375a653571c
BLAKE2b-256 ffcd9cdfea8fc45c56680b798db6a55fa60a22e2d3d3ccf54fc729d083b50ce4

See more details on using hashes here.

Release history Release notifications | RSS feed

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

0.10.1

2 files

0.10.0

2 files

0.9.0

2 files

This release

0.8.0 This release

2 files

0.7.20

2 files

0.7.19

2 files

0.7.18

4 files

0.7.17

4 files

0.7.16

4 files

0.7.15

4 files

0.7.14

4 files

0.7.13

4 files

0.7.12

3 files

0.7.11

3 files

0.7.10

3 files

0.7.9

0.7.8

0.7.7

0.7.6

0.7.5

0.7.4

0.7.3

6 files

0.7.2

6 files

0.7.1

6 files

0.7

6 files

0.6.4

6 files

0.6.3

6 files

0.6.2

6 files

0.6.1

6 files

0.6

4 files

0.5.2

3 files

0.5.1

3 files

0.5

3 files

0.4

3 files

0.3.1

3 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page