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.2.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.2.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gandi-api-livedns-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 883bbc3c20e699a0f62bbcc306ebba085549c4df26fee0c127eff03bc839a4ec
MD5 bacbb768abc6324b97e5d00ac2d529ac
BLAKE2b-256 65c2e098f942139c866314e3bc140d9758296c05fba11b502babef268daf23cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gandi_api_livedns-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6492fee8ae9a2a8b81f553e06088e647733cba8e5dc59f94ec32d3004a4da7df
MD5 b39e9e24eec5a36351e3d2e3ab49e38b
BLAKE2b-256 6c25e65afccc0faa68ca0e10fd89883b2a19bc1e49b19ad8928013b5ed8905b8

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