Metadata-Version: 2.1
Name: alwaysdata-api
Version: 0.9.1
Summary: A dead simple Python interface to the Alwaysdata API.
Home-page: https://gitlab.com/wpk-/alwaysdata-api
Author: Paul Koppen
Author-email: alwaysdata-api@paulkoppen.com
License: MIT License
Keywords: api domain subdomain management web
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development
Classifier: Topic :: Utilities
Requires-Dist: setuptools
Requires-Dist: requests (>=2.1.0)

`alwaysdata_api` provides a dead simple Python interface to the
Alwaysdata API (at https://api.alwaysdata.com/).

    >>> from alwaysdata_api import Config, Domain, Record
    >>> auth = ('MY_API_KEY account=MY_ACCOUNT', '')
    >>> config = Config(auth)
    >>> # List all domains.
    >>> domains = Domain.list(config=config)
    >>> domains
    >>> # Find nameserver records in the DNS.
    >>> domain = domains[0]
    >>> records = Record.list(domain=domain.id, type='NS', config=config)
    >>> records
    >>> # Print the WHOIS information.
    >>> print(domain.whois())

`Config` is a namedtuple with the authentication credentials and server
root URL. By default, it reads the API key and account name from the
environment variables `ALWAYSDATA_API_KEY` and `ALWAYSDATA_ACCOUNT`
respectively. If these are set, all auth and config can be dropped from
the above example.


