Thread/Process safe shelves and other lsm-db helpers
Project description
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])
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
lsm-db-extras-0.2.tar.gz
(3.0 kB
view hashes)