Python bindings for RocksDB
trying to get wheels for python=3.10 on Ubuntu 20.04; Seems many folks online would need this. Please review and publish to PyPI when this builds, thank you! |
||
|---|---|---|
| .github/workflows | ||
| docs | ||
| rocksdb | ||
| scripts | ||
| src | ||
| tests | ||
| .gitignore | ||
| .gitmodules | ||
| LICENSE.md | ||
| Makefile | ||
| MANIFEST.in | ||
| pyproject.toml | ||
| README.md | ||
| setup.cfg | ||
| setup.py | ||
| tox.ini | ||
lbry-rocksdb
Note
The python-rocksdb and pyrocksdb packages haven't been updated in a long time - this repo is a fork of python-rocksdb with many of the PRs to it merged, and with bunch of updates and improvements from @iFA88 and @mosquito.
Install from pip
pip install lbry-rocksdb
Install for development / from source
sudo apt install build-essential binutils
git clone https://github.com/lbryio/lbry-rocksdb.git
cd lbry-rocksdb
git submodule update --init --recursive
git pull --recurse-submodules
make clean && make
pip install -e .
python -m unittest discover . -v
Quick Usage Guide
>>> import rocksdb
>>> db = rocksdb.DB("test.db", rocksdb.Options(create_if_missing=True))
>>> db.put(b'a', b'data')
>>> print db.get(b'a')
b'data'