wyrmctl-digitalocean
DigitalOcean DNS provider plugin for Portwyrm through wyrmctl
Extend wyrmctl with DigitalOcean-backed DNS record management for declarative workflows, provider discovery, and DNS-aware automation.
wyrmctl-digitalocean is the DigitalOcean DNS provider package for the Portwyrm wyrmctl CLI. Install it when you want desired-state DNS records or DNS diagnostics to resolve through DigitalOcean instead of using only the base wyrmctl package.
Supported Python Versions
wyrmctl-digitalocean supports Python 3.10, 3.11, 3.12, 3.13, and 3.14.
Why wyrmctl-digitalocean
- Adds DigitalOcean DNS provider discovery to
wyrmctl - Lets DNS workflows live beside proxy and certificate desired state
- Keeps DigitalOcean tokens out of the core CLI package
- Supports operator diagnostics through
wyrmctl dns doctor - Provides client helpers for DigitalOcean DNS record workflows
FAQ
What is wyrmctl-digitalocean?
Answer: wyrmctl-digitalocean is a Portwyrm extension package that teaches wyrmctl how to talk to the DigitalOcean Domain Records API for DNS record operations and DNS provider diagnostics.
When do I need wyrmctl-digitalocean?
Answer: You need wyrmctl-digitalocean when your wyrmctl workflow includes DigitalOcean-managed DNS records or when you want wyrmctl to validate DigitalOcean DNS connectivity and credentials.
Does wyrmctl-digitalocean work without wyrmctl?
Answer: No. wyrmctl-digitalocean is an extension package for wyrmctl, not a standalone CLI.
Can wyrmctl-digitalocean set DNS records?
Answer: Yes. The DigitalOcean provider supports declarative A, AAAA, CNAME, TXT, MX, SRV, and CAA writes. MX records require priority.
What credentials are required?
Answer: DigitalOcean API access requires DIGITALOCEAN_TOKEN. For diagnostics, the token needs domain read permissions. For record changes, it needs write access to target domain records.
Install
Install the base CLI and the DigitalOcean provider package together:
pipx install wyrmctl
pipx inject wyrmctl wyrmctl-digitalocean
wyrmctl plugins list
With uv:
uv tool install wyrmctl
uv tool install wyrmctl-digitalocean
wyrmctl plugins list
Inside a virtual environment:
python -m venv .venv
. .venv/bin/activate
python -m pip install wyrmctl wyrmctl-digitalocean
wyrmctl plugins list
Configure DigitalOcean
Set the required environment variable:
export DIGITALOCEAN_TOKEN=your-digitalocean-token
Optional for tests or alternate endpoints:
export DIGITALOCEAN_API_BASE_URL=https://api.digitalocean.com
Verify Plugin Discovery
Check that wyrmctl can discover the provider:
wyrmctl plugins list
wyrmctl dns doctor --provider digitalocean
Minimal DNS Workflow
Once the provider is installed and configured, wyrmctl can validate, plan, apply, or diagnose DigitalOcean-backed DNS behavior through the base CLI:
wyrmctl validate desired-state/dns.yaml
wyrmctl plan desired-state/dns.yaml --owner site-a
wyrmctl apply desired-state/dns.yaml --owner site-a
wyrmctl dns providers
wyrmctl dns zones --provider digitalocean
wyrmctl dns records --provider digitalocean --zone example.com
DigitalOcean API Surface
The provider follows the DigitalOcean Domains and Domain Records API:
GET /v2/domains: discover domains managed in the account.GET /v2/domains/{domain_name}/records: list DNS records for one domain.POST /v2/domains/{domain_name}/records: create supported DNS records.PUT /v2/domains/{domain_name}/records/{domain_record_id}: update a record.DELETE /v2/domains/{domain_name}/records/{domain_record_id}: delete a record.
Programmatic Record Operations
from wyrmctl_digitalocean import DigitalOceanClient, DigitalOceanConfig
client = DigitalOceanClient(DigitalOceanConfig.from_env())
record = client.create_record("example.com", type="A", name="www", value="192.0.2.10", ttl=300)
client.update_record("example.com", int(record.record_id), type="A", name="www", value="192.0.2.11", ttl=300)
client.delete_record("example.com", int(record.record_id))
CNAME and other supported record types use the same type, name, value,
and ttl shape. MX records pass priority.
Safety Notes
- DigitalOcean record
nameis relative to the zone; use@for the root where applicable. - Keep
DIGITALOCEAN_TOKENout of desired-state files and logs. - Use account and token scoping to avoid mutating foreign-owned DNS.
- Use wyrmctl owner metadata for desired DNS records so apply remains owner-scoped.
More Documentation
- Related PyPI package: https://pypi.org/project/wyrmctl/
- Repository: https://github.com/groupsum/wyrmctl
- DNS provider docs: https://github.com/groupsum/wyrmctl/tree/master/docs/dns-providers.md
Metadata
Release files for wyrmctl-digitalocean 0.4.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wyrmctl_digitalocean-0.4.9.tar.gz | 7.0 kB | With provenance | Details for wyrmctl_digitalocean-0.4.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wyrmctl_digitalocean-0.4.9-py3-none-any.whl | Python 3 | none | any | Details for wyrmctl_digitalocean-0.4.9-py3-none-any.whl |
Total release size: 16.4 kB
Release files / wyrmctl_digitalocean-0.4.9.tar.gz
| Download URL | wyrmctl_digitalocean-0.4.9.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f13b207199e23e2a71302a1412b5e5d364ebad218ebeabd8e4b7ea1d894b7ca
|
|
BLAKE2b-256 checksum How to use checksums |
383926e8f7a04095bdddcb4c3703bb523d538265dbf5469216e5b57053613db7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / wyrmctl_digitalocean-0.4.9-py3-none-any.whl
| Download URL | wyrmctl_digitalocean-0.4.9-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d29685d67aa0c4947d3c8b2ca44aef8bc434ae0cda8e0abc605ebbabed9f42de
|
|
BLAKE2b-256 checksum How to use checksums |
2f5f34dc00940089b29a47ff89b5a8fa579f9b7e60137500b120e2424a107fd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for wyrmctl-digitalocean 0.4.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for wyrmctl_digitalocean-0.4.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.