Skip to main content

hrd-py

A Python library and CLI for the HRD.pl API.

Features

  • Check account balance.
  • List domains and their status.
  • Monitor domain expiry.
  • Renew domains manually or automatically.
  • View account operation history (purchases, renewals, etc.).
  • Show full domain details, including the registrant/owner.
  • Look up a subscriber (abonent) and every domain they own.
  • List every subscriber on an account.
  • Update a domain's nameservers.
  • Manage glue host records (create, update, delete, list, info).
  • Read pending account notifications (poll queue).

Installation

pip install .

Shell completion (bash)

hrd uses Click, which provides bash completion out of the box (no extra dependency needed). Add this to your ~/.bashrc:

eval "$(_HRD_COMPLETE=bash_source hrd)"

Then reload your shell (source ~/.bashrc or open a new terminal). hrd <TAB> will complete subcommands, and hrd --profile <TAB> etc. will complete options.

Configuration

Create a .env file with your HRD.pl credentials:

HRD_LOGIN=your_login
HRD_PASS=your_api_password
HRD_HASH=your_api_hash

Usage

CLI

hrd balance
hrd domains --all
hrd expiring --days 30
hrd renew example.com
hrd auto-renew --days 7           # asks before renewing each domain, across all profiles
hrd auto-renew --days 7 --no-ask  # renew without confirmation prompts
hrd history --limit 20            # recent operations across all profiles, with date and profile
hrd domain-info example.com       # full domain details, including the owner
hrd owner-info 173216             # subscriber details and every domain they own
hrd owner-list                    # every subscriber id on the account(s)
hrd owner-list --details          # ... plus each subscriber's name
hrd nameservers example.com ns1.example.com ns2.example.com  # update a domain's nameservers
hrd host list                     # list glue host records
hrd host info ns1.example.com     # show a glue host's IP addresses
hrd host create ns1.example.com --ipv4 1.2.3.4
hrd host update ns1.example.com --ipv4 1.2.3.5
hrd host delete ns1.example.com
hrd notifications                 # peek at the oldest pending account notification per profile
hrd notifications --ack --limit 10  # drain and acknowledge up to 10 notifications
hrd --debug balance               # print raw API requests/responses (password is masked)

Library

from hrd_py import HRDClient

client = HRDClient(login, password, api_hash)
client.login()
balance = client.get_balance()
print(f"Balance: {balance.balance}")

Metadata

Release files for hrd-py 0.0.8

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

Source distribution (sdist)

Source distribution for hrd-py 0.0.8
File Size Uploaded Provenance Actions
hrd_py-0.0.8.tar.gz 24.2 kB With provenance Details for hrd_py-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hrd-py 0.0.8
File Interpreter ABI Platform Actions
hrd_py-0.0.8-py3-none-any.whl Python 3 none any Details for hrd_py-0.0.8-py3-none-any.whl

Total release size: 40.9 kB

Release files / hrd_py-0.0.8.tar.gz

Download URL hrd_py-0.0.8.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ff44986935aae2564223c82566e235d52379868e4ad4e96f7ad92ba66e6f25c3
BLAKE2b-256 checksum
How to use checksums
d08e6156d97dcd9f770bda70388a716c1245d57c2dee8a2c43c58794183ae8e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 25, 2026.

Transparency log

Release files / hrd_py-0.0.8-py3-none-any.whl

Download URL hrd_py-0.0.8-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f40c01c641461ea274fe46bb1b5b47482623897a61f09adb22fb0c22dfeca763
BLAKE2b-256 checksum
How to use checksums
4bd7668182083ce426ccdb5efdc2ac33fc0e85c9b864f01de601efce1eecf5b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 25, 2026.

Transparency log

Security for hrd-py 0.0.8

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hrd_py-0.0.8.tar.gz

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 Jul 25, 2026.

Transparency log

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.

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