whois
Python package for retrieving WHOIS information of domains.
Decision gist · record as of 2026-08-14
Yes, with conditions. The package is actively maintained, has no known vulnerabilities, and low install friction. However, it requires a system whois command to be installed separately, and v2's RDAP support is very recent (2026 releases); if you need stable, battle-tested code, v1 is safer. For straightforward domain metadata retrieval, it's a solid choice; for production systems relying on RDAP, verify v2 stability first.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires the system whois command-line tool to be installed on your OS (e.g., via apt, brew, or your distribution's package manager); on macOS, brew install whois is recommended for reliable parsing.
- Low install friction with no runtime dependencies in the wheel distribution.
- Active maintenance with recent commits as of 2026-08-07, though the latest PyPI release is from 2024-02-03.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
last release 2024-02-03 (923 days) · last repo commit 2026-08-07 · 61 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 101,796 downloads/mo, #12,916 on PyPI
Alternatives
Verify before relying
pip install whois
import whois
result = whois.query('example.com')
print(result.expiration_date)- Whether v2's RDAP-first approach is production-ready or still experimental given the recent 2026 release dates.
- Current compatibility status between v1 output and the original DanyCork whois package after v2 refactoring.
- Performance and reliability differences between RDAP and classic WHOIS fallback in real-world use.
What it is and what it does
Whois is a Python package that queries WHOIS servers to retrieve domain registration metadata—registrar, expiration date, nameservers, and other administrative details. It wraps the system-level whois command and parses its output into structured data. Version 1 (current stable) uses the classic WHOIS protocol; version 2 (recently released) adds RDAP as a primary source, falling back to WHOIS when RDAP returns no data. The package requires Python >=3.9 and depends on whodap and tld libraries; redis is optional for caching.
The package is designed for developers who need to automate domain lookups—checking expiration dates, verifying registrars, or bulk-querying domain metadata. It includes both a Python API and a command-line tool. Note that RDAP servers only recognize real IANA domains and do not support first-level domain concepts; the package does not handle IP CIDR ranges or AS information.
Use it for
- Check domain expiration dates programmatically to trigger renewal reminders or alerts.
- Retrieve registrar and nameserver information for domain portfolio management or audits.
- Bulk query domain metadata for security research or compliance verification.
- Automate WHOIS lookups in monitoring or alerting systems that track domain status changes.
- Verify domain ownership details as part of a larger domain validation workflow.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The package is actively maintained, has no known vulnerabilities, and low install friction. However, it requires a system whois command to be installed separately, and v2's RDAP support is very recent (2026 releases); if you need stable, battle-tested code, v1 is safer. For straightforward domain metadata retrieval, it's a solid choice; for production systems relying on RDAP, verify v2 stability first.
Install
whois on PyPI
Before you install
Low install friction with no runtime dependencies in the wheel distribution. Active maintenance with recent commits as of 2026-08-07, though the latest PyPI release is from 2024-02-03. Requires Python >=3.9 and the system-level whois command-line tool to be installed separately.
Requires the system whois command-line tool to be installed on your OS (e.g., via apt, brew, or your distribution's package manager); on macOS, brew install whois is recommended for reliable parsing.
License in practice
Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install whois
import whois
result = whois.query('example.com')
print(result.expiration_date)
Verify before relying
- Whether v2's RDAP-first approach is production-ready or still experimental given the recent 2026 release dates.
- Current compatibility status between v1 output and the original DanyCork whois package after v2 refactoring.
- Performance and reliability differences between RDAP and classic WHOIS fallback in real-world use.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 923 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 101,796 / month, #12,916 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: InternetTopic :: Software Development :: Libraries :: Python Modules |
Evidence: whois-1.20240129.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “whois parser python”
- whoisRetrieves WHOIS information for domain names by querying WHOIS…
- python-whoisQueries WHOIS servers directly to retrieve and parse domain…
- ipwhoisRetrieves and parses whois and RDAP data for IPv4 and IPv6 addresses,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also PyFunceble-dev · python-whois · ipwhois · whoisit · tlds · publicsuffix2 · tldparse · tldextract · tld · dnstwist