Skip to main content

UNKNOWN

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.1.tar.gz (3.0 kB view hashes)

Uploaded Source

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