Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Library that implements the acme-dns client communication and persistent account storage on the client host

Project description

A client library to handle acme-dns client communication and persistent account storage.


Install from PyPI

$ pip install pyacmedns


The following is a complete example of handling the validation using this library.

#!/usr/bin/env python

from pyacmedns import Client, Storage

whitelisted_networks = ["", "[::1]/128"]
domain = ""

# Initialize the client. Point it towards your acme-dns instance.
client = Client("")
# Initialize the storage. If the file does not exist, it will be
# automatically created.
storage = Storage("/path/to/storage.json")

# Check if credentials were previously saved for your domain
account = storage.fetch("")
if not account:
    # Account did not exist. Let's create a new one
    # The whitelisted networks parameter is optional
    account = client.register_account(whitelisted_networks)
    # Save it
    storage.put(domain, account)

# Update the acme-dns TXT record.
client.update_txt_record(account, "___validation_token_recieved_from_the_ca___")

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyacmedns, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size pyacmedns-0.4.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page