Python bindings for RocksDB
Find a file
Jack Robison 2d0fa976ef
fix ci
2022-08-02 11:38:44 -04:00
.github/workflows test 2022-08-01 14:52:38 -04:00
docs docs 2022-01-17 19:55:20 -05:00
rocksdb update to 7.4.4 2022-08-01 14:50:37 -04:00
scripts use manylinux_2_24_x86_64 for now 2022-03-28 11:06:00 -04:00
src update to 7.4.4 2022-08-01 14:50:37 -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 move submodule to lbryio fork, update zlib due to 1.2.11 becoming unavailable 2022-03-28 10:27:37 -04:00
LICENSE.md Create LICENSE.md 2014-02-02 17:39:01 +01:00
Makefile move submodule to lbryio fork, update zlib due to 1.2.11 becoming unavailable 2022-03-28 10:27:37 -04:00
MANIFEST.in fix readme 2022-01-16 14:26:20 -05:00
pyproject.toml Require cython in the build-system 2022-01-18 17:22:48 -06: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 fix ci 2022-08-02 11:38:44 -04:00
tox.ini update tox, fix setup.py 2022-03-28 11:05:36 -04: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'