Python bindings for RocksDB
Go to file
2021-11-09 13:29:21 -05:00
.github/workflows Update build.yml 2021-08-26 11:33:15 +02:00
docs Update installation.rst 2021-08-26 10:53:08 +02:00
rocksdb update readme and setup.py 2021-11-09 13:29:21 -05:00
scripts Create make-wheels.sh 2021-08-26 11:42:06 +02:00
src update submodule 2021-11-03 13:19:12 -04:00
tests move tests 2021-11-09 13:27:40 -05:00
.gitignore Allow to compile the extension everywhere 2018-02-09 09:21:56 +01:00
.gitmodules add submodule 2021-08-26 12:46:21 +02:00
.travis.yml Allow to compile the extension everywhere 2018-02-09 09:21:56 +01:00
Dockerfile Allow to compile the extension everywhere 2018-02-09 09:21:56 +01:00
LICENSE.md Create LICENSE.md 2014-02-02 17:39:01 +01:00
Makefile use cmake instead of make 2021-08-19 00:18:09 +03:00
MANIFEST.in add readme to package 2021-08-18 23:43:01 +03:00
README.md update readme and setup.py 2021-11-09 13:29:21 -05:00
setup.cfg Allow to compile the extension everywhere 2018-02-09 09:21:56 +01:00
setup.py update readme and setup.py 2021-11-09 13:29:21 -05:00
tox.ini Allow to compile the extension everywhere 2018-02-09 09:21:56 +01:00

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'