Skip to main content

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'

Release files for pyrocksdb-cf 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrocksdb-cf 0.5.3
File Size Uploaded
pyrocksdb-cf-0.5.3.tar.gz 156.3 kB Details

Release files / pyrocksdb-cf-0.5.3.tar.gz

Download URL pyrocksdb-cf-0.5.3.tar.gz
Size 156.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a34ec5ad6167ee0e56731b992aad21a98204a2fb9711ea0f66e12efeaa27e702
BLAKE2b-256 checksum
How to use checksums
5d4f9b8bde135ea48708cb2bf6516ef06eb2d33705ff36a0ab2f1f780cc4cbb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.3 This release

1 release file

0.5.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page