A database with yaml files as backend
Project description
YamlDB
YamlDB is an easy to use file based database using yaml as the format for the data represented in the file. This makes it possible to quickly change and add values in the file itself while it can than be loaded and used as dict in your application.
It had the ability to use dot notations for the keys instead of nested brackets. It als creates parents if they do nt exist
pip install yamldb
db = YamlDB(filename="data.yml")
db["a"] = "1"
db["b.c"] = "2"
d = db.get("a.b.c.d", default=3)
db.load()
reloads the file
db.save()
saves the current db into the file
db.search("a.*.c")
quries the db
see: https://jmespath.org/tutorial.html
Aalternatives
- jmsepath: https://jmespath.org/
- TinyDB: https://tinydb.readthedocs.io/en/latest/index.html
- nsqlite: https://github.com/shaunduncan/nosqlite
- MongoDB:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yamldb-0.1.3.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for yamldb-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 178ba363ed8e0304c3c75fa955357eb2d7cddedb79a860ddedc3b1537c20f663 |
|
MD5 | 8036adea10727c3166a0af9f48be4fd2 |
|
BLAKE2b-256 | 78082b0096c461515fe6045b6ff4dd63210b65bafd97db3001abbd81736e688f |