Quickstart

KelDB lets you store data in a tree-like structure using “”nodes.”

Installation

pip install keldb

Basic Usage

from keldb import KelDB, FileStoreHook

db = KelDB(FileStoreHook("./data"))

root = db
users = await root.get_subnode("users")

await users.set_value({"count": 1})
value = await users.get_value()

What this does

  • Creates a file-backed database

  • Stores a JSON value at /users

  • Retrieves it asynchronously