Dominfo
Dominfo is a modern, lightweight Python library and CLI tool for performing WHOIS domain lookups. It provides a simple interface to query IANA servers and retrieve domain registration details, with support for pretty-printed terminal output or raw JSON data.
⚡ Features
- Dual Mode: Use it as a command-line tool or import it as a Python library.
- Rich Output: Beautifully formatted terminal output using the Rich library.
- JSON Support: Easily export WHOIS data to JSON for programmatic processing.
- Customizable: Support for custom IANA servers.
📦 Installation
You can install Dominfo via pip:
pip install dominfo
🚀 Usage
1. As a CLI Tool
You can run dominfo directly from your terminal to get information about a domain.
Basic Lookup: Get a pretty-printed overview of the domain.
python -m dominfo google.com
JSON Output:
Get the output in machine-readable JSON format (useful for piping into jq or other tools).
python -m dominfo google.com --json
# or
dominfo google.com -j
Custom IANA Server: Specify a specific WHOIS server if needed.
python -m dominfo google.com --iana-server whois.nic.ai
2. As a Python Library
You can easily integrate Dominfo into your own Python scripts.
from dominfo.client import DominfoClient
# Initialize the client
client = DominfoClient()
# Fetch WHOIS information
whois_info = client.get_whois_info("google.com")
# Print the result (returns a dictionary/object)
print(whois_info)
Using a custom server in Python:
client = DominfoClient(server="whois.verisign-grs.com")
info = client.get_whois_info("google.com")
📝 Dependencies
Metadata
Release files for dominfo 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dominfo-1.0.4.tar.gz | 3.8 kB | Without provenance | Details for dominfo-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dominfo-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for dominfo-1.0.4-py3-none-any.whl |
Total release size: 8.4 kB
Release files / dominfo-1.0.4.tar.gz
| Download URL | dominfo-1.0.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03c08caca5a0c8288ef9cf014c9ead11e7493c57ad44b2f322561b81d93b64b7
|
|
BLAKE2b-256 checksum How to use checksums |
f747812e94d7d6875a46c12afa6c5ba5c4786ce955a1a033f02c1f680ec37280
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.9.25 Linux/6.11.0-1018-azure
|
Release files / dominfo-1.0.4-py3-none-any.whl
| Download URL | dominfo-1.0.4-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c88dc3780083c53a979796be6a832bc1c711fff3547cd45e35b968c863f3b75c
|
|
BLAKE2b-256 checksum How to use checksums |
9f7b982b4d99ea7fed218d430461ba8ff4d18868a53440ea65b31c230435c227
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.9.25 Linux/6.11.0-1018-azure
|
Security for dominfo 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.