Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 1.35 KB

File metadata and controls

56 lines (34 loc) · 1.35 KB

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])