A very simple python client used to update the IP address in A records for GoDaddy managed domains.
Project description
Python library useful for updating DNS settings through the GoDaddy v1 API (Updated as of 12/26/15).
Source located @ https://github.com/eXamadeus/godaddypy This concept was spawned from observerss’ pygodaddy @ https://github.com/observerss/pygodaddy.
Setup
First, go to https://developer.godaddy.com/keys/ and request a production API key and secret.
Note: Sometimes the production API keys don’t seem to work correctly. Just delete it and request another one.
Second, install GoDaddyPy with pip.
$ pip install godaddypy
Examples
>>> from godaddypy import Client, Account
>>>
>>> my_acct = Account(api_key='PUBLIC_KEY', api_secret='SECRET_KEY')
>>> client = Client(my_acct)
>>>
>>> client.get_domains()
['abc.com', '123.info']
>>>
>>> client.get_a_records('abc.com')
[{'name': '@', 'ttl': 3600, 'data': '255.255.255.255', 'type': 'A'}]
>>>
>>> client.update_ip('1.1.1.1', domains=['abc.com'])
>>>
>>> client.get_a_records('abc.com')
[{'name': '@', 'ttl': 3600, 'data': '1.1.1.1', 'type': 'A'}]
TODOs
Add more record support (currently only supports ‘A’ records)
Make the code suck less (this is my first time writing python)
Add unit testing
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
Hashes for GoDaddyPy-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceca6aa56ae3f702dcdeb94de62a6e3e7cc7bde71edaf3429856d897e864e787 |
|
MD5 | 7d88c30c8a2a538a6863c315d581ba86 |
|
BLAKE2b-256 | 7a161675a35063052db30f3babcfb91f4ee79ee5f4e2eadafca899b60cc8852d |