Domeneshop API library
Project description
Python 3 library for working with the Domeneshop API.
Note: This library does not support Python 2.x.
Installation
pip3 install domeneshop
Credentials
Use of this plugin requires Domeneshop API credentials.
See the Domeneshop API documentation for more information.
Examples
Listing DNS records for the first domain in your account:
from domeneshop import Client
if __name__ == "__main__":
client = Client("<token>", "<secret>")
domains = client.get_domains()
domain = domains[0]
print("DNS records for {0}:".format(domain["domain"]))
for record in client.get_records(domain["id"]):
print(record["id"], record["host"], record["type"], record["data"])
More examples can be found in the examples folder.
Documentation
See the docstrings for domeneshop.client.Client.
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
domeneshop-0.4.4.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file domeneshop-0.4.4.tar.gz
.
File metadata
- Download URL: domeneshop-0.4.4.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 502c480e7848024c59d68417611c8031d1a052c519e809585f0b312f8f531408 |
|
MD5 | f793063191f5886a3d1c51e64f928e43 |
|
BLAKE2b-256 | 30e3950aaa3a01b863ae72933afc0856a88484a01e9023dfaf07986b3b2bb867 |
File details
Details for the file domeneshop-0.4.4-py2.py3-none-any.whl
.
File metadata
- Download URL: domeneshop-0.4.4-py2.py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60845dd023896f82fc6edd3e4bd1542b37121116a5e44fe28526f6f0af5a8cf3 |
|
MD5 | c610f957f7013e1ad6c4419b596fa134 |
|
BLAKE2b-256 | 8afe0aa42299d78443f0a18cc14bb9d93988ee3927f7aff056dee6de70fd5e97 |