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.

Source Distribution

daab-1.1.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file daab-1.1.0.tar.gz.

File metadata

  • Download URL: daab-1.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for daab-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7a2f10d1ce8420dc92eea56c2440dab4ab636208cd1917e0e4c6e81306fcd87c
MD5 6a01e24c2e4fbdfedac6621f408df21b
BLAKE2b-256 4d983f1a29896da2670823dd1a8e5b62706efff0f0bad41e9ac51a7d0bb814d6

See more details on using hashes here.

Supported by

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