/lsm-db-extras

Thread/Process safe shelves and other lsm-db helpers

Primary LanguagePythonApache License 2.0Apache-2.0

lsm-db-extras

Coveralls Travis CI Latest Version

Thread/Process safe shelves and other lam-db helpers

Installation

pip install lsm-db-extras

Usage example

from lsm_extras import Shelf, LSMDict

with Shelf("/tmp/test.ldb") as shelf:
    shelf["foo"] = True

with Shelf("/tmp/test.ldb") as shelf:
    print(shelf["foo"])


with LSMDict("/tmp/test-dict.ldb") as storage:
    storage[1] = True

with LSMDict("/tmp/test-dict.ldb") as storage:
    print(storage[1])