/simpledb

Simple pure-Python LSM-tree key-value storage engine.

Primary LanguagePython

simpledb

Simple pure-Python LSM key-value storage engine.

usage

Install package via Pip.

pip install git+https://github.com/benshanahan1/simpledb

Usage:

>>> from simpledb import SimpleDb
>>> db = SimpleDb("path/to/my.db")
>>> db.set(b"foo", b"bar")
>>> db.set(b"bar", b"baz")
>>> db.get(b"foo")
b'bar'
>>> db.keys
[b'foo', b'bar']

development

pip install -e .[dev]

test

pytest

Run performance test:

python tests/performance.py