Skip to main content

Thread/Process safe shelves and other lsm-db helpers

Project description

Coveralls Travis CI Latest Version https://img.shields.io/pypi/wheel/lsm-db-extras.svg https://img.shields.io/pypi/pyversions/lsm-db-extras.svg https://img.shields.io/pypi/l/lsm-db-extras.svg

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)

Uploaded Source

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

Hashes for lsm-db-extras-0.2.tar.gz
Algorithm Hash digest
SHA256 3f27d5e4da7bf34d846bfc65359120098be5255b39ee98e81b9bedc28ee90170
MD5 b8eb4bfb0022ac25d6d6332b57d3ac67
BLAKE2b-256 9d38836d9013a9a2bdf13afdceaa402d7bd6f122eb18c7f33e0a39afec64eda2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page