Skip to content

Python 3 library for working with the Domeneshop API.

License

Notifications You must be signed in to change notification settings

domeneshop/python-domeneshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

domeneshop

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.

About

Python 3 library for working with the Domeneshop API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages