Skip to main content

Python bindings for RocksDB

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


Release history Release notifications | RSS feed

This version

0.4

Download files

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

Source Distribution

pyrocksdb-0.4.tar.gz (139.9 kB view details)

Uploaded Source

File details

Details for the file pyrocksdb-0.4.tar.gz.

File metadata

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

File hashes

Hashes for pyrocksdb-0.4.tar.gz
Algorithm Hash digest
SHA256 36ab8d52b5fcc1f56e7e6d64cf8be90bdc377dc8722b64c6b00930c23395719c
MD5 62be15ec631e6406aca92b9dcdc1fef2
BLAKE2b-256 9202ea89030b42c545df7ae8cfccd567399de1118f26bf23f629fb5391c3e2f8

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