Skip to main content

Python bindings for RocksDB

Project description

Python bindings for RocksDB. See http://rocksdb.readthedocs.io 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-dev
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install 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'

Acknowledgements

This project is a fork of python-rocksdb maintained by twmht, which itself is a fork of pyrocksdb, that was originally written by stephan-hof.

Project details


Download files

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

Source Distribution

rocksdb-0.8.0rc1.tar.gz (29.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rocksdb-0.8.0rc1-cp39-cp39-manylinux2014_x86_64.whl (51.4 MB view details)

Uploaded CPython 3.9

rocksdb-0.8.0rc1-cp38-cp38-manylinux2014_x86_64.whl (51.4 MB view details)

Uploaded CPython 3.8

rocksdb-0.8.0rc1-cp37-cp37m-manylinux2014_x86_64.whl (51.3 MB view details)

Uploaded CPython 3.7m

File details

Details for the file rocksdb-0.8.0rc1.tar.gz.

File metadata

  • Download URL: rocksdb-0.8.0rc1.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for rocksdb-0.8.0rc1.tar.gz
Algorithm Hash digest
SHA256 2f21dff87f7fd49e1a57f6a5078d0a34d0b8c6e13fb5d1086e3d33a30c2f6411
MD5 6ee97ec129250323bdb460ca18bd37b2
BLAKE2b-256 c95f885f35be1d0cb6058e3c9f09b0df28bd3df7f8f2688f83c0c2eb10680d26

See more details on using hashes here.

File details

Details for the file rocksdb-0.8.0rc1-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: rocksdb-0.8.0rc1-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 51.4 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for rocksdb-0.8.0rc1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4afc3b208cb98a125525937d594f4aa56e8cb31766a47b8c08141f8df10e9ce2
MD5 272f85d1ce36924cbeb3d95c43baf35e
BLAKE2b-256 4e7042a75242c6ec6e258fc4861306ce532841af92d6aec8e479ef1029618b52

See more details on using hashes here.

File details

Details for the file rocksdb-0.8.0rc1-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: rocksdb-0.8.0rc1-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 51.4 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for rocksdb-0.8.0rc1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 12ff1ba1e03f338882e4c53cfdb688a0a163ff333548c6884b7ba35ab82bdffb
MD5 5f192d5b0dcf4ec37faebe28235b6121
BLAKE2b-256 262f5c7332e3f36e859905a7b5cd8712cc6a6ed4442b8970f30341e5388b6799

See more details on using hashes here.

File details

Details for the file rocksdb-0.8.0rc1-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: rocksdb-0.8.0rc1-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 51.3 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for rocksdb-0.8.0rc1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 28ce2bbed5f625e2a42cf9d854dbb091a5b6dc7eb832f872ff989fddb6a16c0a
MD5 8217736d5e2a803f52faea5d1ba3dfb4
BLAKE2b-256 c6a0ee0077b5df2b7b536d51a848d4495035fb81d4cb3d1abea2852198f42c62

See more details on using hashes here.

Supported by

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