skillfed

ipwhois

Retrieve and parse whois data for IPv4 and IPv6 addresses.

ipwhois v1.3.0 615.4K downloads/30d#5,742 on PyPI593
Permissive license BSD DORMANT released

What it is and what it does

ipwhois is a Python library for querying whois and RDAP registries to retrieve network ownership and registration data for IP addresses. It supports both IPv4 and IPv6, with a focus on parsing regional internet registry responses into a standard dictionary format. The library can query via RDAP (the modern HTTP-based protocol, recommended), legacy whois protocol, or national internet registries for Japan and South Korea. It also includes ASN (Autonomous System Number) lookup functionality and a command-line interface.

The package depends on dnspython for DNS queries, defusedxml for secure XML parsing, and ipaddr (Python 2.7 only). It handles network recursion for parent/child relationships and supports proxy configuration for RDAP queries. Rate limiting is a known constraint, particularly when multiple users share a source IP or when querying LACNIC. The library is stable and widely used but has not been actively developed recently.

Use it for:

  • Look up network ownership and contact details for an IP address to identify the responsible organization.
  • Retrieve ASN information and origin data for IP addresses in network monitoring or security workflows.
  • Parse whois data for bulk IP analysis using experimental bulk query support (with caution on rate limits).
  • Query national internet registries for IP addresses in Japan or South Korea where regional data is restricted.
  • Build CLI tools or scripts that need human-readable whois output with optional ANSI colored formatting.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Retrieves and parses whois and RDAP data for IPv4 and IPv6 addresses, returning standardized dictionaries of network registration information.

Yes, for IP whois lookups. The package is stable, permissively licensed, and has low install friction. Dormant maintenance is a minor concern for a mature utility library, but the codebase is production-ready and no active vulnerabilities are known. Install only if you need whois/RDAP data; be aware of rate limiting constraints and firewall port requirements.

Install

ipwhois on PyPI

pip

pip install ipwhois

uv

uv add ipwhois

poetry

poetry add ipwhois

Installing ipwhois

Before you install

Low install friction with three lightweight runtime dependencies. Maintenance is dormant (668 days since last release), though the package reached stable status and the repository remains active with no archived flag.

License in practice

BSD permissive license allows commercial and private use with minimal restrictions, typical for established network utility libraries.

Quickstart

pip install ipwhois

from ipwhois import IPWhois

obj = IPWhois('8.8.8.8')
results = obj.lookup_rdap()
print(results)

Requires outbound firewall access to ports 43/tcp (whois), 53/tcp (DNS), and 80/tcp (HTTP) for lookups to succeed; rate limiting by source IP may cause latency.

Verify before relying

  • Whether Python 2.7 support is still actively tested or maintained given the dormant status.
  • Current behavior and reliability of experimental bulk query support introduced in v1.0.0.
  • Whether LACNIC rate limiting remains a practical issue for typical usage patterns.

Package facts

License BSD (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 3 — dnspython, defusedxml, ipaddr
Maintenance dormant — 668 days since the last release
Last repo commit
First released
Downloads 615,355/month — #5,742 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: ipwhois-1.3.0-py2.py3-none-any.whl

Keywords: Python, WHOIS, RWhois, Referral Whois, ASN, IP Address, IP, IPv4, IPv6, IETF, REST, Arin, Ripe, Apnic, Lacnic, Afrinic, NIC, National Information, Center, RDAP, RIR, Regional Internet Registry, NIR, National Internet, Registry, ASN origin, Origin

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: InternetTopic :: Software Development

Tags

whois lookup pythonip address registration datardap query libraryipv4 ipv6 whois parserasn lookup toolnetwork registration infoip geolocation whois
network-registryip-lookupasn-query

More Software Development packages