UNKNOWN
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.1.tar.gz
(3.0 kB
view details)
File details
Details for the file lsm-db-extras-0.1.tar.gz
.
File metadata
- Download URL: lsm-db-extras-0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd7aad99f9fe2b4d5612cd901e1994aef1de433b828ccfb42aa259e0dc1f3cfe |
|
MD5 | 8230548b208fb09ea30fb6f0f0d08a65 |
|
BLAKE2b-256 | 3980cd3b3e1ee38e133b35501dd8c33a11941722873c1427b1ba7fbfd3af4484 |