The Lupaxa SRE Toolbox
Part of The Lupaxa Project
lupaxa-domain-expiry
Look up domain name expiration dates over WHOIS.
Features
- Query one or more domain names and print one table
- Read names from a file, or from stdin with
--file - - Report the expiration date and the number of days remaining
- Keep every name in the table, including invalid names and timeouts
- Treat a missing registration as available
- Treat a successful lookup with no date as unpublished
- Keep query failures separate from missing dates
- Exit
1when a domain is due within--warn-days - Sort the table by domain, date, or days, ascending or descending
- Use the
lookuplibrary API - Depend on
python-whois,prettytable, andtldat runtime
Installation
From PyPI
pip install lupaxa-domain-expiry
From source (development mode)
pip install -e ".[dev]"
Requires Python 3.13+.
Library quick start
from lupaxa.domain_expiry import lookup
result = lookup("example.com", timeout=10.0)
print(result.domain, result.status, result.days_remaining)
CLI quick start
domain-expiry --help
domain-expiry example.com example.org
domain-expiry --file domains.txt --warn-days 14 --timeout 5
You can also run the CLI as a module:
python -m lupaxa.domain_expiry --help
python -m lupaxa.domain_expiry --version
Options
DOMAIN: one or more domain names--file,-f: text file of domain names, one per line;-reads stdin--timeout,-t: WHOIS socket timeout in seconds; default10--warn-days,-w: exit1when a domain expires within this many days; default30--sort,-s: sort bydomain,date, ordays--order:ascendingordescending(defaultascending); requires--sort--version: print the package version
Documentation
Online documentation:
Source repository:
Serve docs locally
From a clone of the repository:
make mkdocs-serve
Then open the local URL printed by MkDocs in your browser.
Development
Clone the repository and install with Make:
make init # first-time makefile-skills checkout
make python-install-dev # editable install with [dev]
make python-check # lint, type-check, and test
Release files for lupaxa-domain-expiry 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lupaxa_domain_expiry-0.1.0.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lupaxa_domain_expiry-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.2 kB
Release files / lupaxa_domain_expiry-0.1.0.tar.gz
| Download URL | lupaxa_domain_expiry-0.1.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72609fcb8c3f44ab9c0eac80c21f7687c15f3ec18bfe7d5a5d91b5c4b2b2fc52
|
|
BLAKE2b-256 checksum How to use checksums |
ce0845db174059b96330da844e559dc59abd6f44f1984c0eda1bbb85403c72a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / lupaxa_domain_expiry-0.1.0-py3-none-any.whl
| Download URL | lupaxa_domain_expiry-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80e26028a55b348823d0e5b580ca31fad006ffc093e1a828eca6cb5be8d2385e
|
|
BLAKE2b-256 checksum How to use checksums |
ea867873d5714422fb2c515ee430f66c7c090b8f99d8b56b5361509bf590ce18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency log