Skip to main content

Python bindings for RocksDB with Column Families support.

Project description

Python bindings for RocksDB. See http://pyrocksdb.readthedocs.org 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
$ git clone https://github.com/facebook/rocksdb.git
$ cd rocksdb
$ make shared_lib
$ export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:`pwd`/include
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd`
$ export LIBRARY_PATH=${LIBRARY_PATH}:`pwd`

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

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 Distribution

pyrocksdb-cf-0.5.3.tar.gz (156.3 kB view details)

Uploaded Source

File details

Details for the file pyrocksdb-cf-0.5.3.tar.gz.

File metadata

  • Download URL: pyrocksdb-cf-0.5.3.tar.gz
  • Upload date:
  • Size: 156.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyrocksdb-cf-0.5.3.tar.gz
Algorithm Hash digest
SHA256 a34ec5ad6167ee0e56731b992aad21a98204a2fb9711ea0f66e12efeaa27e702
MD5 b8aa5d3b298502f1f7b25b67d4999c02
BLAKE2b-256 5d4f9b8bde135ea48708cb2bf6516ef06eb2d33705ff36a0ab2f1f780cc4cbb8

See more details on using hashes here.

Supported by

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