ipaddr
Google's IP address manipulation library
What it is and what it does
ipaddr is a library for working with IP addresses, both IPv4 and IPv6, providing parsing, validation, and manipulation utilities. It was originally developed by Google but has been superseded by the ipaddress module in Python 3's standard library and its Python 2 backport.
The package is no longer maintained—its repository is archived, the last release was in 2017-09-15, and no commits have been made since 2023-04-09. For any new code, you should use the standard library ipaddress module instead. This package exists primarily for legacy Python 2 projects that cannot migrate; it carries no known security vulnerabilities but receives no updates or support.
Use it for:
- Maintaining legacy Python 2 codebases that depend on ipaddr and cannot yet migrate to the standard library.
- Parsing and validating IP addresses in older applications where upgrading dependencies is not feasible.
- Working with network ranges in Python 2 environments without access to ipaddress.
- Checking whether an IP address belongs to a particular network in legacy systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides utilities for parsing, validating, and manipulating IPv4 and IPv6 addresses in Python code.
No. Do not install this package for new projects—use the standard library ipaddress module instead. For legacy Python 2 codebases already using ipaddr, keep it only as long as necessary during migration. The package is abandoned, receives no maintenance or security updates, and its functionality is fully available in modern Python's standard library.
Install
ipaddr on PyPI
pip
pip install ipaddruv
uv add ipaddrpoetry
poetry add ipaddrInstalling ipaddr
Before you install
Installation friction is high due to source-only distribution. More importantly, the package is abandoned—last release was 2017-09-15, repository is archived, and no commits since 2023-04-09. The standard library's ipaddress module (Python 3) or its Python 2 backport are the maintained alternatives.
License in practice
Licensed under Apache License, Version 2.0 (permissive), which allows commercial and private use with minimal restrictions, but you should verify compatibility with your project's license requirements.
Quickstart
pip install ipaddr
import ipaddr
addr = ipaddr.IPAddress('example')
net = ipaddr.IPNetwork('example')
Package is abandoned and superseded by the standard library ipaddress module; use that instead for new projects.
Verify before relying
- Whether any production codebases still depend on this package and what their migration timeline is.
- Whether the source distribution builds cleanly on modern Python interpreters.
- Specific IP address formats and operations supported by this version.
Package facts
| License | Apache License, Version 2.0 (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,255 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 581,971/month — #5,904 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ipaddr-2.2.0.tar.gz
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
ipaddressProvides IPv4 and IPv6 address manipulation for…
permissive · top 5,000 on PyPI
iptoolsProvides utilities for parsing, validating, and…
permissive · top 15,000 on PyPI
IPyIPy provides Python classes for parsing,…
permissive · top 5,000 on PyPI
isc-dhcp-leasesReads and parses ISC DHCP server lease files…
permissive · top 15,000 on PyPI
multiaddrParses, constructs, and manipulates…
permissive · top 15,000 on PyPI
netaddrRepresents and manipulates IPv4, IPv6, MAC…
permissive · top 5,000 on PyPI
cidr-trieStores and queries CIDR IP address blocks (IPv4…
permissive · top 15,000 on PyPI
ifcfgIfcfg parses network interface configuration…
permissive · top 15,000 on PyPI
django-allow-cidrA Django middleware that extends ALLOWED_HOSTS…
permissive · top 5,000 on PyPI
py-radixImplements a radix tree data structure for…
permissive · top 15,000 on PyPI