A LevelDB driver
Project description
pylevel
PyLevel is a LevelDB driver for python. It use rust reimplementation of LevelDB https://docs.rs/rusty-leveldb .
Requirements
- python3.8+
- Rust https://www.rust-lang.org/
Install
$ sudo apt-get install python3-dev
$ pip install pylevel
Example
simple put/get/delete
import pylevel
db = pylevel.DB("/tmp/testdb", create_if_missing=True)
db.put(b'key', b'value')
v = db.get(b'key') # 'value'
db.delete(b'key')
v = db.get(b'key') # None
db.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pylevel-0.1.0.tar.gz
(4.6 kB
view details)
File details
Details for the file pylevel-0.1.0.tar.gz
.
File metadata
- Download URL: pylevel-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8bd6fcdc10d14fbcfbca5f98fdd8d0088286ee3d88ab9b36baf5d28c01cb38c |
|
MD5 | a939f2c9bea11d39901659bc1e91f45a |
|
BLAKE2b-256 | 9f76e71340f4b5fed66863dad7129b59d193ac14c328bfecaf750ff86faf42be |