Skip to main content

DNS as a database.

Project description

dns-as-a-database

DNS as a Database (DAAB) is a key-value database using DNS TXT records for it's data structure.

Features

  • Redis-like
  • No storage or memory requirements
  • Works

Requirements

  • Python 3.6+
  • A DigitalOcean account and API key
  • A domain name

Installation and Setup

To install DAAB use pip:

pip install daab

But you're also going to need to:

Examples

from daab import DAAB

daab = DAAB('<DIGITALOCEAN_API_KEY>', '<DOMAIN_NAME>')

# Create/update a record
daab.set('mykey', 'myvalue')

# Use glob search to find keys
daab.scan('*key')

# Get record
daab.get('mykey')

# Delete record
daab.delete('mykey')

Tutorials

Read the announcement blog here.

Documentation

Read the code, it's not that big.

License

MIT.

Project details


Download files

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

Files for daab, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size daab-1.1.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page