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:
- Buy a domain name
- Point it to DigitalOcean Namservers
- Add it to your DigitalOcean account
- Create an access token
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.
Metadata
Release files for daab 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| daab-1.1.0.tar.gz | 2.7 kB | Details |
Release files / daab-1.1.0.tar.gz
| Download URL | daab-1.1.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a2f10d1ce8420dc92eea56c2440dab4ab636208cd1917e0e4c6e81306fcd87c
|
|
BLAKE2b-256 checksum How to use checksums |
4d983f1a29896da2670823dd1a8e5b62706efff0f0bad41e9ac51a7d0bb814d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|