Skip to main content

A database with yaml files as backend

Project description

YamlDB

https://img.shields.io/github/license/cloudmesh/yamldb

image

image

image

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

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

yamldb-0.1.1.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

yamldb-0.1.1-py2.py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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