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
- Generate API tokens using the Porkbun docs.
- 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)
- Clone this git repo locally
- Install the python dependencies via
pip install -r requirements.txt
- Create a
.env
file from.env.template
and populate the secrets - Load the
.env
file values into your shell, preferable using direnv - Run
python -m porkbun-fastmail <yourdomain>
- Verify the records were created correctly in the Porkbun admin panel
- Check the DNS records in the Fastmail domain settings
- (Optional) Add a new email address in the Fastmail email addresses settings
- (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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file porkbun-fastmail-1.0.3.tar.gz
.
File metadata
- Download URL: porkbun-fastmail-1.0.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 566c78ed15b4b559e6a818f1e283d1b1c93c5c23cac3be37f37d4262873e52fe |
|
MD5 | 740d9a2aaf7dbaca493e64a889b39b27 |
|
BLAKE2b-256 | fc4d500781e393c62aeca9962a63efb59916ab65a367154ba097a49dc278345e |
File details
Details for the file porkbun_fastmail-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: porkbun_fastmail-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1bf0a7280a2697fab6ce3ab8c45399891d652266f8674aa8f4d9a750f65b418 |
|
MD5 | 60cd3472b7323aee4f045251bb4df353 |
|
BLAKE2b-256 | 19aac21171cba39ca1b6ec9166cd07b79c4b83efe564ae3c191f85fae9bc5e41 |