Skip to main content

Python client to communicate with ANX DNS API

Project description

ANX API Client

This is an unofficial pythonic implementation of ANX's API, described here API documentation

Important information

PLEASE DON'T USE EARLIER VERSIONS THEN 0.2.5 SINCE IT INCLUDED A BAD DEPENDENCY

Documentation

This is alpha state software, and I haven't bothered with documentation yet.

Command line client

usage: main.py [-h] [-k APIKEY] [-d DOMAIN] [-v]
               {get,g,add,a,update,u,delete,d,del} ...

optional arguments:
  -h, --help            show this help message and exit
  -k APIKEY, --apikey APIKEY
                        API key used in request header
  -d DOMAIN, --domain DOMAIN
                        Domain name
  -v, --verbose         Verbose

Actions:
  {get,g,add,a,update,u,delete,d,del}
                        Action to perform
    get (g)             Get records
    add (a)             Add record
    update (u)          Update record
    delete (d, del)     Delete record

Client requires two parameters APIKEY and DOMAIN. These can be provided as ENV or arguments in the call.

export ANXDNS_APIKEY=keygoeshere
export ANXDNS_DOMAIN=domain.se

or

./bin/anxdnsclient -d domain.se --apikey keygoeshere

Examples

Get all records

./bin/anxdnsclient -d domain.se --apikey keygoeshere get

Get records by name

./bin/anxdnsapi get -n www.domain.se -d domain.se --apikey keygoeshere

Get TXT records by txt

./bin/anxdnsapi get -t txtrecord -d domain.se --apikey keygoeshere

TODO

  • Update of names
  • Test cases

Changelog

Version 0.2

Released 10nd August 2019

  • Initial release

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

pyanxdns-0.2.5.tar.gz (10.8 kB view details)

Uploaded Source

File details

Details for the file pyanxdns-0.2.5.tar.gz.

File metadata

  • Download URL: pyanxdns-0.2.5.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for pyanxdns-0.2.5.tar.gz
Algorithm Hash digest
SHA256 4f2b4824e4f8dc13f6e09f49bc8f831b4129c28c98658e94b749785b1bbaabad
MD5 db0c0b99191187c64f2463e730af4ea3
BLAKE2b-256 9c5eb2724b43c175084d304b5c23e42faae4cef536591e35792f3ba95f6d4d05

See more details on using hashes here.

Supported by

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