A Python client for RDAP WHOIS-like services for internet resources (domains, IPs, ASNs). The current version is 4.0.3, requires Python >=3.10. Releases occur irregularly, with several bug fixes and feature updates per year.
pip install whoisitVerified import paths — ran on the pinned version, not inferred.
Simple example: bootstrap the RDAP server list and query a domain, IP, and ASN.
Upgrade Python to 3.10+ or pin to whoisit<4.0.0 if stuck on 3.9.
Call `whoisit.bootstrap()` at the start of your application, optionally with a bootstrap URL argument.
Set a custom timeout via `whoisit.set_default_timeout(seconds)` before queries.
Use `from whoisit import errors` and then `errors.RDAPError`.
Call `whoisit.bootstrap()` before using `whoisit.domain()`. The functions are attached after bootstrap.
Add `whoisit.bootstrap()` once at the start of your program.
Ensure the resource name is valid and you have internet connectivity. You can also set a user-agent via `whoisit.set_user_agent('...')`.Convert sets to lists manually: `result['emails'] = list(result.get('emails', []))` before JSON serialization.