Wrapper around the IONOS DNS, Domains & SSL API.
Project description
Wrapper around the IONOS DNS, Domains & SSL API
Installation
Install using pip
pip install pyonos
Clone the repository
git clone https://github.com/aaronlyy/pyonos
Quickstart
IONOS exposes 3 different API's.
- Dns
- Domains
- Ssl
Every API has its corresponding & same name class that can be imported from pyonos. Every class needs to be authenticated using a prefix and a secret.
from pyonos import Dns, Domains, Ssl
Similarly, every API endpoint has its own corresponding method. Methods always return a tuple containing two items:
- HTTP Status Code
- JSON Response (if not available: None)
pyonos.Dns
.get_zones() : Get all available zones.
from pyonos import Dns
from pprint import pprint
dns = Dns("prefix", "secret")
result = dns.get_zones()
pprint(result)
pyonos.Domains (WORK IN PROGRESS)
pyonos.Ssl (WORK IN PROGRESS)
Currently supported methods/endpoints
Method names are a combination of the http method used and their category.
- Dns (Official API Docs)
- Zones
- get_zones: Returns list of customer zones.
- get_zone: Returns a customer zone.
- patch_zone: Replaces all records of the same name and type with the ones provided.
- put_zone: Replaces all records in the zone with the ones provided.
- Records
- post_records: Creates records for a customer zone.
- get_record: Returns the record from the customer zone with the mentioned id.
- delete_record: Delete a record from the customer zone.
- put_record: Update a record from the customer zone.
- Zones
About
Made with ♥ by aaronlyy
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
pyonos-0.1.1.tar.gz
(16.1 kB
view hashes)
Built Distribution
pyonos-0.1.1-py3-none-any.whl
(16.0 kB
view hashes)