Skip to main content

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)

This concept was spawned from pygodaddy @ https://github.com/observerss/pygodaddy

Setup

First, go to https://developer.godaddy.com/keys/ and request a production API key and secret

Second, install GoDaddyPy with pip

$ pip install godaddypy

Examples

>>> from godaddypy import Account, GoDaddyClient
>>> my_acct = Account(api_key='PUBLIC_KEY', api_secret='SECRET_KEY')
>>>
>>> client = GoDaddyClient(my_acct)
>>> client.get_domains()
['abc.com', '123.info']
>>> client.get_a_records(client.get_domains()[0])
[{'type': 'A', 'name': '@', 'ttl': 3600, 'data': '255.255.255.255'}]
>>>

TODOs

  • Add more record support (currently only supports ‘A’ records)

  • Make the code suck less (this is my first python script)

  • Add unit testing

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

GoDaddyPy-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file GoDaddyPy-0.1.0.tar.gz.

File metadata

  • Download URL: GoDaddyPy-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for GoDaddyPy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5e08a1f3b8c101a0906a4c062a3c177c73f160bfca71490622680b9084b1ec5a
MD5 7f7f7fa1ce624a30dac7ce144980ce3e
BLAKE2b-256 be94cc2c6830d27670fae7c4c518b782a57ef2d5e91fa9e1432411ff9d7e36b6

See more details on using hashes here.

Supported by

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