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.0

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.0
File Size Uploaded
lupaxa_domain_expiry-0.1.0.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-domain-expiry 0.1.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

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