Skip to main content

A pythonic leveldb wrapper

Openleveldb repo Documentation Status Openleveldb license Black syntax

Openleveldb is a small pythonic wrapper around Plyvel

Features

Transparent object store

It works with python objects:

  • Automatically encodes objects into bytes when saving to leveldb

  • Automatically decodes bytes into their original type when retrieving objects from leveldb

Supported types include:

  • int

  • str

  • numpy.ndarray

  • Anything that is serializable by orjson

>>> db['key'] = {'key': [1, 2, 3]}
>>> db['key']
{'key': [1, 2, 3]}

Python dict-like protocol

It offers dict-like interface to LevelDB

>>> db["prefix", "key"] = np.array([1, 2, 3], dtype=np.int8)
>>> db["prefix", "key"]
array([1, 2, 3], dtype=int8)
>>> db = db["prefix", ...]
>>> db["key"]
array([1, 2, 3], dtype=int8)

String-only keys

The only possible type for the keys is str. It avoids several problems when working with prefixes.

Multiprocessing support

Experimental multiprocessing support using a background flask server, exposing the same API of a direct connection:

db = LevelDB(db_path="path_to_db", server_address="http://127.0.0.1:5000")

Metadata

Release files for openleveldb 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openleveldb 0.1.5
File Size Uploaded Provenance Actions
openleveldb-0.1.5.tar.gz 12.0 kB Without provenance Details for openleveldb-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openleveldb 0.1.5
File Interpreter ABI Platform Actions
openleveldb-0.1.5-py3-none-any.whl Python 3 none any Details for openleveldb-0.1.5-py3-none-any.whl

Total release size: 26.3 kB

Release files / openleveldb-0.1.5.tar.gz

Download URL openleveldb-0.1.5.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3d1d55c7806cfd9d58b89cf138eadbd0b2379039abb22927bfa210b8d8332324
BLAKE2b-256 checksum
How to use checksums
2406e41ecedf0374282f9dc462d5462aa959fb5a80670a6213ccab631a4882c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.7.5 Linux/5.9.16-1-MANJARO

Release files / openleveldb-0.1.5-py3-none-any.whl

Download URL openleveldb-0.1.5-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce0c8a1989e8ce37d0f5a70e781f5afa037b0d08bcbb9a0993ed06877efd8db6
BLAKE2b-256 checksum
How to use checksums
3294b92dd9fd10b292ad2c109af73266b0d511f17ab8d50f4b2ea66d383e26cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.7.5 Linux/5.9.16-1-MANJARO

Security for openleveldb 0.1.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page