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.3.0.tar.gz
(3.1 kB
view details)
File details
Details for the file lsm-db-extras-0.3.0.tar.gz
.
File metadata
- Download URL: lsm-db-extras-0.3.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.20.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4481e4b0c0d36c6142d6d758feff56651ad02d30f62b4bb480dd1abf1aa33da5 |
|
MD5 | b7ae52504fa4d08ef3461e0ee842893a |
|
BLAKE2b-256 | 6f5a70d4dd5fc7c3d29323c0343d1e0f5b20ca903e88e52a7d1bd6636f2d7b2a |