Depending on if you want only this tool, the full set of PNU tools, or PNU plus a selection of additional third-parties tools, use one of these commands:
pip install pnu-whois
pip install PNU
pip install pytnix
This repository includes a command-line utility (a portable BSD whois command clone, with enhancements):
- whois(1) - Internet domain name and network number directory service
And a Python library:
- whois(3) - Internet domain name and network number directory service
Both provide access to classical WHOIS servers (not HTTP servers with RDAP queries), with optional local caching of results.