Skip to main content

Python bindings for RocksDB

Project description

conda-badge

Before first note

The [python-rocksdb](https://github.com/twmht/python-rocksdb) repo has no binary packages. This repo provides binary python wheels statically linked with rocksdb.

Note

The original pyrocksdb (https://pypi-hypernode.com/pypi/pyrocksdb/0.4) has not been updated for long time. I update pyrocksdb to support the latest rocksdb. Please open issues in github if you have any problem.

News (2019/04/18)

Currently I am refactoring the code, and more features like TTL are coming soon. And the installation with cmake will be much more easily.

News (2019/04/19)

I have created a new branch(https://github.com/twmht/python-rocksdb/tree/pybind11) which provides the basic functions (put, get and delete) now. And the installtion is much more easily! you can try it if you encounter any installtion issues in the current version of python-rocksdb.

The branch is under development and will be released to PypI after I migrate most of the existing features.

pyrocksdb

Python bindings for RocksDB. See http://python-rocksdb.readthedocs.io/en/latest/ for a more comprehensive install and usage description.

Quick Install

Quick install for debian/ubuntu like linux distributions.

$ apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev
$ git clone https://github.com/facebook/rocksdb.git
$ cd rocksdb
$ mkdir build && cd build
$ cmake ..
$ make
$ cd ..
$ export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}${CPLUS_INCLUDE_PATH:+:}`pwd`/include/
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}`pwd`/build/
$ export LIBRARY_PATH=${LIBRARY_PATH}${LIBRARY_PATH:+:}`pwd`/build/

$ apt-get install python-virtualenv python-dev
$ virtualenv pyrocks_test
$ cd pyrocks_test
$ . bin/active
$ pip install python-rocksdb

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'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

python_rocksdb_static-0.7.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (73.7 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

python_rocksdb_static-0.7.1-cp39-cp39-macosx_10_14_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

python_rocksdb_static-0.7.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (73.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

python_rocksdb_static-0.7.1-cp38-cp38-macosx_10_14_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

python_rocksdb_static-0.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (73.6 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

python_rocksdb_static-0.7.1-cp37-cp37m-macosx_10_14_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

python_rocksdb_static-0.7.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (73.6 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

python_rocksdb_static-0.7.1-cp36-cp36m-macosx_10_14_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

Details for the file python_rocksdb_static-0.7.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for python_rocksdb_static-0.7.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 78cd9e36fef491287905e3c810c6cb7aebdb7f7ec9a7ed194b1e8c63879efa27
MD5 7fe5085c4fb80ee7f36844c1f853febf
BLAKE2b-256 ab4d15ad5173f96dac43dad746505b4505c5a3b42d8f6994bccb83cc918a3e72

See more details on using hashes here.

File details

Details for the file python_rocksdb_static-0.7.1-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: python_rocksdb_static-0.7.1-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for python_rocksdb_static-0.7.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 43440a6ac8da71a9feb739760ea7f0a427e93561b28c1ecb0348b6ac61a94b27
MD5 ec5920905a8f5a54ff8e822768ee9967
BLAKE2b-256 1d8d2a898a7cdb02c3febba2a8a587bc1ac99445b6d885a2fcc06ceb67208050

See more details on using hashes here.

File details

Details for the file python_rocksdb_static-0.7.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for python_rocksdb_static-0.7.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 92ff6f5567e6ca4b541ece4eee54b68179e3ede862cf787355bbb6b1fe41cf9f
MD5 4744fc4470e8ef62907c08ca2bf99829
BLAKE2b-256 7e8224787a364a92c7b75d7fc700fce5e7a980750763e0ea06b1e8deeb3d547e

See more details on using hashes here.

File details

Details for the file python_rocksdb_static-0.7.1-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: python_rocksdb_static-0.7.1-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

File hashes

Hashes for python_rocksdb_static-0.7.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e610cea701687010ecf8f6bbd37a12ff15ea545fee9d0dee4d724608acbe0078
MD5 0b0ca2901632254cc755b81e09ff3701
BLAKE2b-256 5ff629c3b6fd79dcdb5ae4c7cacda4906f938e564e5dbcecfe34dc2b8b70746b

See more details on using hashes here.

File details

Details for the file python_rocksdb_static-0.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for python_rocksdb_static-0.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d7568fdf048d2e29d8206dde52f50416ace01341eed6c6bc60901b5a97819f79
MD5 27b8920ef610e594ea4000e965201cd0
BLAKE2b-256 efe95886c19a3ecdea694071c0dbd8e58c74772fd1e2db6689425b7c5ca52ddd

See more details on using hashes here.

File details

Details for the file python_rocksdb_static-0.7.1-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: python_rocksdb_static-0.7.1-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.11

File hashes

Hashes for python_rocksdb_static-0.7.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 22c771289472a98c7dbcc9596ec635f17191dc3441155bae2482d4f07e7b460b
MD5 e397b1428f6b02ff6348f7746279d7c7
BLAKE2b-256 ddcb3cd13b92829fe254aa694118b0f5083ca87c0971fc3641a4a319764bc585

See more details on using hashes here.

File details

Details for the file python_rocksdb_static-0.7.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for python_rocksdb_static-0.7.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a892ba782c99f440539cc02ebbbf742520455eac74675236e852f230aa1b370
MD5 3798741c5918cf522f87042774feb1de
BLAKE2b-256 dc9af2192edb1a98c46e7744efdc260a86521c69d422eb0fbac4506c4b38500e

See more details on using hashes here.

File details

Details for the file python_rocksdb_static-0.7.1-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: python_rocksdb_static-0.7.1-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.6.14

File hashes

Hashes for python_rocksdb_static-0.7.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 efbe40c577b320621060f088fe7e767bec248cfd977e7bfb11f18d49c71863ff
MD5 cdf0747557c910008448731240a05b3e
BLAKE2b-256 79eae5cd5423406c5787f9278c49077e277c25e2a09b29def13de4806f7efd81

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page