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 details)
File details
Details for the file lsm-db-extras-0.2.tar.gz
.
File metadata
- Download URL: lsm-db-extras-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f27d5e4da7bf34d846bfc65359120098be5255b39ee98e81b9bedc28ee90170 |
|
MD5 | b8eb4bfb0022ac25d6d6332b57d3ac67 |
|
BLAKE2b-256 | 9d38836d9013a9a2bdf13afdceaa402d7bd6f122eb18c7f33e0a39afec64eda2 |