Once you have installed Python and its packages manager pip, use one of the following commands, depending on if you want only this tool, the full set of PNU tools, or PNU plus a selection of additional third-parties tools:
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.