Python client library for the Loopia API
Project description
Loopia Python Library
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ef194012be31e6916be69a346a61cd9f892755c7f85b5bbe95fba6bf9dc44d8
|
|
| MD5 |
631b9ec5404bdc8675d8685f89a7945a
|
|
| BLAKE2b-256 |
6177999dfe143896686282447a766db87e67714938b35eac33c46127d96e8de5
|
Provenance
The following attestation bundles were made for loopiase-0.0.1.tar.gz:
Publisher:
publish.yml on DigitalTolk/loopiase-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
loopiase-0.0.1.tar.gz -
Subject digest:
5ef194012be31e6916be69a346a61cd9f892755c7f85b5bbe95fba6bf9dc44d8 - Sigstore transparency entry: 1338965705
- Sigstore integration time:
-
Permalink:
DigitalTolk/loopiase-python@46cf596f20d47a424742162211a6f7dd7bf3a8c2 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/DigitalTolk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@46cf596f20d47a424742162211a6f7dd7bf3a8c2 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55474d589443cdd7d4285c30243dd10be7873dad498d9f2715123d452c3c8b51
|
|
| MD5 |
b2e6d52a28da607d5c83246bcd67c8b7
|
|
| BLAKE2b-256 |
303392acd06ea86f6e2f47084f675635594eefcb1ac3880d1e01e1581f6a06b8
|
Provenance
The following attestation bundles were made for loopiase-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on DigitalTolk/loopiase-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
loopiase-0.0.1-py3-none-any.whl -
Subject digest:
55474d589443cdd7d4285c30243dd10be7873dad498d9f2715123d452c3c8b51 - Sigstore transparency entry: 1338965712
- Sigstore integration time:
-
Permalink:
DigitalTolk/loopiase-python@46cf596f20d47a424742162211a6f7dd7bf3a8c2 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/DigitalTolk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@46cf596f20d47a424742162211a6f7dd7bf3a8c2 -
Trigger Event:
push
-
Statement type: