Skip to main content

CLI to quickly add DNS records for Fastmail to a Porkbun domain

Project description

porkbun-fastmail

CLI to quickly add DNS records for Fastmail to a Porkbun domain.

Getting Started

  1. Generate API tokens using the Porkbun docs.
  2. Enable API access on the domain(s) you want to add records to (the "Installing keys and enabling API access on specific domains" in the previous docs link)
  3. Clone this git repo locally
  4. Install the python dependencies via pip install -r requirements.txt
  5. Create a .env file from .env.template and populate the secrets
  6. Load the .env file values into your shell, preferable using direnv
  7. Run python -m porkbun-fastmail <yourdomain>
  8. Verify the records were created correctly in the Porkbun admin panel
  9. Check the DNS records in the Fastmail domain settings
  10. (Optional) Add a new email address in the Fastmail email addresses settings
  11. (Optional) Send a test email to and from your new email address

Notes

The Porkbun API docs: https://porkbun.com/api/json/v3/documentation.

The archived porkbun-dynamic-dns-python project was also used for reference.

Build

Install build dependencies

python3 -m pip install --upgrade build twine

Build

python3 -m build

Upload to test.pypi.org

python3 -m twine upload --repository testpypi dist/*

Upload to PyPI

python3 -m twine upload dist/*

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

porkbun-fastmail-1.0.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

porkbun_fastmail-1.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file porkbun-fastmail-1.0.4.tar.gz.

File metadata

  • Download URL: porkbun-fastmail-1.0.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for porkbun-fastmail-1.0.4.tar.gz
Algorithm Hash digest
SHA256 376619d34c841413c4fc06ff0ccf427ec52217a220e0c86a1e3e85d035f8f34d
MD5 08bbd0da1babe13ff3afbddea61e0a36
BLAKE2b-256 7868b30e8cf4bec502894bc62932f6a5a2905e58a61df83c2097ae96cd35a2d1

See more details on using hashes here.

File details

Details for the file porkbun_fastmail-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for porkbun_fastmail-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a984eec298b118cd6b1c8e2c8079d1a9f9cdc5cfc5ff4698c3f20e7c2555f1b
MD5 8d4cf53629398c0af63c1a0c153c5843
BLAKE2b-256 5795133cd2ee70b1cc55161b0cf6ef6452214725df4c0f7469bee452d1c7d6bf

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