Python bindings for RocksDB
Find a file
Jack Robison 868edf864d
docs
2022-01-17 19:55:20 -05:00
.github/workflows docs 2022-01-17 19:55:20 -05:00
docs docs 2022-01-17 19:55:20 -05:00
rocksdb update column family param type for iterator to match the rest of the api 2022-01-16 14:26:20 -05:00
scripts fix ci 2021-11-09 13:45:33 -05:00
src update submodule 2021-11-03 13:19:12 -04:00
tests update column family param type for iterator to match the rest of the api 2022-01-16 14:26:20 -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
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 fix readme 2022-01-16 14:26:20 -05: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 docs 2022-01-17 18:37:23 -05: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'