Skip to main content

Python SDK for the Bunny.net DNS API

Project description

bunnydns

PyPI version Tests Documentation License: GPL

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


Download files

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

Source Distribution

bunnydns-0.1.0.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bunnydns-0.1.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

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

Hashes for bunnydns-0.1.0.tar.gz
Algorithm Hash digest
SHA256 358675b471b544a75dbc9437378062d19e8a65ed6de5ba29ed0d9510f2ca33f9
MD5 a12cfbd9942e9d9512c596b264a90cbf
BLAKE2b-256 2f98fce094a82ca53ec4079f72646bed0c7ed9c20767d49650270862fb7bc6b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for bunnydns-0.1.0.tar.gz:

Publisher: publish.yaml on franzs/bunnydns

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for bunnydns-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f45eca23e2f291826d17107ba5f4cf42ded7db26ec324fc818d19b56e92fbe21
MD5 f9e6c74e757f13a4b5b9ae9fd8b56aae
BLAKE2b-256 9ffdb45a42ae0198f0b101bfa71659e17f11afcdb56613b0298eb1c26481ac31

See more details on using hashes here.

Provenance

The following attestation bundles were made for bunnydns-0.1.0-py3-none-any.whl:

Publisher: publish.yaml on franzs/bunnydns

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page