Python SDK for the Bunny.net DNS API
Project description
bunnydns
A Python SDK for the Bunny.net DNS API.
Installation
pip install bunnydns
Quick Start
#!/usr/bin/env python3
from bunnydns import BunnyDNS, DnsRecordInput, RecordType
client = BunnyDNS(access_key="your-api-key")
# List all zones
zones = client.list_dns_zones()
for zone in zones.items:
print(zone.domain)
# Create a zone
zone = client.add_dns_zone(domain="example.com")
# Add a record
record = client.add_dns_record(
zone_id=zone.id,
record=DnsRecordInput(
type=RecordType.A,
name="www",
value="1.2.3.4",
ttl=300,
),
)
# Export zone file
zone_file = client.export_dns_zone(zone_id=zone.id)
# Enable DNSSEC
ds = client.enable_dnssec(zone_id=zone.id)
print(ds.ds_record)
Documentation
Full documentation is available at bunnydns.readthedocs.io.
License
GPL License. See LICENSE for details.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bunnydns-0.1.0.tar.gz.
File metadata
- Download URL: bunnydns-0.1.0.tar.gz
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
358675b471b544a75dbc9437378062d19e8a65ed6de5ba29ed0d9510f2ca33f9
|
|
| MD5 |
a12cfbd9942e9d9512c596b264a90cbf
|
|
| BLAKE2b-256 |
2f98fce094a82ca53ec4079f72646bed0c7ed9c20767d49650270862fb7bc6b7
|
Provenance
The following attestation bundles were made for bunnydns-0.1.0.tar.gz:
Publisher:
publish.yaml on franzs/bunnydns
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bunnydns-0.1.0.tar.gz -
Subject digest:
358675b471b544a75dbc9437378062d19e8a65ed6de5ba29ed0d9510f2ca33f9 - Sigstore transparency entry: 957005067
- Sigstore integration time:
-
Permalink:
franzs/bunnydns@4c5d1de227a0c2d6ee1418f76871c302f8d7aa0b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/franzs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@4c5d1de227a0c2d6ee1418f76871c302f8d7aa0b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file bunnydns-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bunnydns-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f45eca23e2f291826d17107ba5f4cf42ded7db26ec324fc818d19b56e92fbe21
|
|
| MD5 |
f9e6c74e757f13a4b5b9ae9fd8b56aae
|
|
| BLAKE2b-256 |
9ffdb45a42ae0198f0b101bfa71659e17f11afcdb56613b0298eb1c26481ac31
|
Provenance
The following attestation bundles were made for bunnydns-0.1.0-py3-none-any.whl:
Publisher:
publish.yaml on franzs/bunnydns
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bunnydns-0.1.0-py3-none-any.whl -
Subject digest:
f45eca23e2f291826d17107ba5f4cf42ded7db26ec324fc818d19b56e92fbe21 - Sigstore transparency entry: 957005107
- Sigstore integration time:
-
Permalink:
franzs/bunnydns@4c5d1de227a0c2d6ee1418f76871c302f8d7aa0b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/franzs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@4c5d1de227a0c2d6ee1418f76871c302f8d7aa0b -
Trigger Event:
workflow_dispatch
-
Statement type: