Skip to main content

Python client library for the Loopia API

Project description

Loopia Python Library

Documentation Status Coverage Status

Python client library for the Loopia domain registrar API.

Installation

pip install loopiase

Usage

from loopiase import Loopia, Record

client = Loopia("user@loopiaapi", "my_password")

# Check domain availability
if client.domain_is_free("example.com"):
    client.order_domain("example.com", has_accepted_terms=True)

# List domains
for domain in client.get_domains():
    print(domain.domain, domain.expiration_date)

# Manage DNS records
client.add_subdomain("example.com", "www")
client.add_zone_record("example.com", "www", Record(type="A", ttl=300, rdata="1.2.3.4"))

for record in client.get_zone_records("example.com", "www"):
    print(record.type, record.rdata)

# Billing
balance = client.get_credits_amount()
for invoice in client.get_unpaid_invoices():
    print(invoice.reference_no, invoice.to_pay, invoice.currency)

Reseller

Reseller-specific methods are available under client.reseller:

for customer in client.reseller.get_customers():
    print(customer.customer_number, customer.name)

# Operate on a customer's account
domains = client.get_domains(customer_number="C12345")

Development

make install   # install with dev dependencies
make test      # run tests with coverage
make lint      # type-check with pyright
make docs      # build Sphinx documentation

License

GPL-3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loopiase-0.0.1.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loopiase-0.0.1-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file loopiase-0.0.1.tar.gz.

File metadata

  • Download URL: loopiase-0.0.1.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for loopiase-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5ef194012be31e6916be69a346a61cd9f892755c7f85b5bbe95fba6bf9dc44d8
MD5 631b9ec5404bdc8675d8685f89a7945a
BLAKE2b-256 6177999dfe143896686282447a766db87e67714938b35eac33c46127d96e8de5

See more details on using hashes here.

Provenance

The following attestation bundles were made for loopiase-0.0.1.tar.gz:

Publisher: publish.yml on DigitalTolk/loopiase-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file loopiase-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: loopiase-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for loopiase-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55474d589443cdd7d4285c30243dd10be7873dad498d9f2715123d452c3c8b51
MD5 b2e6d52a28da607d5c83246bcd67c8b7
BLAKE2b-256 303392acd06ea86f6e2f47084f675635594eefcb1ac3880d1e01e1581f6a06b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for loopiase-0.0.1-py3-none-any.whl:

Publisher: publish.yml on DigitalTolk/loopiase-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page