Skip to main content

Gandi.net live DNS client Api

Project description

Gandi.net live DNS API Client Python Library

PyPI version

Easily search for trips!

Installation

Works on 3.x python.

pip install gandi-api-livedns

Usage

from gandi_api_livedns import GandiApiLiveDNS

# initialize API
gandiApiLiveDNS = GandiApiLiveDNS(api_key="__your_api_key_here__")

# set rrname and domain
gandiApiLiveDNS.rrname = 'dummy'
gandiApiLiveDNS.domain = 'mydomain.com'

# get real ip
RealIP = gandiApiLiveDNS.getRealIP()
pprint.pprint(RealIP)

# get registered dns record
DNSRecord = gandiApiLiveDNS.getDNSRecord()
pprint.pprint(DNSRecord)

# update dns record with detected ip
updateDNSRecord = gandiApiLiveDNS.updateDNSRecord()
pprint.pprint(updateDNSRecord)

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

gandi-api-livedns-0.3.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gandi_api_livedns-0.3.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file gandi-api-livedns-0.3.0.tar.gz.

File metadata

  • Download URL: gandi-api-livedns-0.3.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for gandi-api-livedns-0.3.0.tar.gz
Algorithm Hash digest
SHA256 acf113fb1328d45ede0a473e3fed7b8a901308724e60f328eec7b2bcc78b5b50
MD5 d49fc829db70ff4d1b940aa5ba35afa3
BLAKE2b-256 f19394de6ca3eb630b8d82852683118c617e075024e066b28a51ad61f7095a49

See more details on using hashes here.

File details

Details for the file gandi_api_livedns-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: gandi_api_livedns-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for gandi_api_livedns-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b216ff5e13792d30ab0562a2f2f3afbb7ea13718d152eeab8e79fcd30be6898d
MD5 549398ffbf4b1626ca8978c9a41a7650
BLAKE2b-256 82e5afa16171ab31fa15f6f670e7bf4d40e2500f7e306a5d1e9f9fcfb0e13aec

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