Rocksdb3 is a python bindings for rocksdb based on rust wrapper rust-rocksdb and PyO3.
This is a very early proof-of-concept version. Please do not use it in production.
- precompiled wheel binaries for Linux, Windows, macOS, on python 3.5, 3.6, 3.7, 3.8, 3.9
- basic open/put/get/delete/close
- destroy/repair
- iterator
depends on pyo3's non-copy iterator support
- write batch
pip install rocksdb3
import rocksdb3
path = './db_path'
db = rocksdb3.open_default(path)
assert db.get(b'my key') is None
db.put(b'my key', b'my value')
assert db.get(b'my key') == b'my value'
db.delete(b'my key')
assert db.get(b'my key') is None
del db # auto close db
rocksdb3.destroy(path)
pip install maturin
maturin build