lsm-db-extras
Thread/Process safe shelves and other lam-db helpers
Installation
pip install lsm-db-extras
Usage example
from lsm_extras import Shelf, LSMDict, LSMTree
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])
with LSMTree("/tmp/test-tree.ldb") as storage:
with tree.transaction():
for i in range(10):
tree['numbers', i] = i * 2
tree['strings', i] = str(i)
print(list(tree.find('strings')))
Metadata
Release files for lsm-db-extras 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lsm-db-extras-0.5.0.tar.gz | 3.8 kB | Without provenance | Details for lsm-db-extras-0.5.0.tar.gz |
Release files / lsm-db-extras-0.5.0.tar.gz
| Download URL | lsm-db-extras-0.5.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
465bfa6caf9e4a5205ca96f65c2fa6d1891d9ca0745f9fe380ee018ec09be1cd
|
|
BLAKE2b-256 checksum How to use checksums |
d720a680d90c7bf8f2c41a00f233efaf37884d2061918b693353dceed1e707fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for lsm-db-extras 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.