Skip to content

netaddr/netaddr

Folders and files

NameName
Last commit message
Last commit date
May 29, 2024
May 28, 2024
May 28, 2024
Jun 14, 2020
Dec 14, 2023
Dec 14, 2023
Feb 13, 2024
May 28, 2024
Feb 13, 2024
Feb 13, 2024
Feb 14, 2024
Feb 17, 2024
Feb 17, 2024
Feb 13, 2024
Feb 17, 2024
Feb 8, 2024
May 26, 2024
Feb 14, 2024

Repository files navigation

netaddr

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.org/project/netaddr/

Share and enjoy!