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 hashes)