Skip to main content

Project Logo

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 1 when a domain is due within --warn-days
  • Sort the table by domain, date, or days, ascending or descending
  • Use the lookup library API
  • Depend on python-whois, prettytable, and tld at 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; default 10
  • --warn-days, -w: exit 1 when a domain expires within this many days; default 30
  • --sort, -s: sort by domain, date, or days
  • --order: ascending or descending (default ascending); requires --sort
  • --version: print the package version

Documentation

Online documentation:

Documentation

Source repository:

GitHub

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
The Lupaxa Project Footer

Release files for lupaxa-domain-expiry 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lupaxa-domain-expiry 0.1.1
File Size Uploaded
lupaxa_domain_expiry-0.1.1.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-domain-expiry 0.1.1
File Interpreter ABI Platform
lupaxa_domain_expiry-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / lupaxa_domain_expiry-0.1.1.tar.gz

Download URL lupaxa_domain_expiry-0.1.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
943fb446fb7fcc21af7465ed02f1c339a773b7640617358444c70d7772bb9781
BLAKE2b-256 checksum
How to use checksums
f771e2e3453276812340b8838e9cfb1539e884e356df60ff0b9f1e65d7a7b833
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

Release files / lupaxa_domain_expiry-0.1.1-py3-none-any.whl

Download URL lupaxa_domain_expiry-0.1.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
194f5d703a9cef6fa66f677ce443d2e70f76b2bd178b3e604f58bb9438c42fe6
BLAKE2b-256 checksum
How to use checksums
5f4c8e28455ae7f7e0dfdb8641348fddfd9c893077b69c99e13042b8c91be6dd
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

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page