Skip to main content

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 hashes)

Uploaded Source

Built Distribution

domeneshop-0.4.4-py2.py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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