DNS as a Database (DAAB) is a key-value database using DNS TXT records for it's data structure.
- Redis-like
- No storage or memory requirements
- Works
- Python 3.6+
- A DigitalOcean account and API key
- A domain name
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
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')
Read the announcement blog here.
Read the code, it's not that big.
MIT.