Skip to main content

A fast RocksDB wrapper for Python using pybind11.

Project description

Build Status

pyrex

a python rocksdb wrapper

Motivation

rocksdb python wrappers are broken. This is yet another attempt to create a working python wrapper for rocksdb.

Example usage:

Check the test.py file.

Installation

On Linux/macOS: Open your terminal, navigate to the parent directory of my_rocksdb_wrapper, and run:

Build and Use the Wrapper: After saving the files, follow these steps to build and use your Python wrapper:

Prerequisites:

  • RocksDB C++ Library Installed (headers and libraries accessible). (in Ubuntu sudo apt-get install librocksdb may suffice)

  • C++11 compatible compiler (e.g., g++ or clang++).

  • Python 3.7+ and its development headers.

  • Python pybind11 package: pip install pybind11

Python setuptools package: pip install --upgrade setuptools

Adjust setup.py (if needed):

Open setup.py and verify that include_dirs and library_dirs correctly point to your RocksDB installation paths. If RocksDB is not in /usr/local/include or /usr/local/lib, update these paths.

If RocksDB was built with specific compression libraries (like Snappy, Zlib, LZ4, Zstandard), add their corresponding names (e.g., 'snappy', 'z') to the libraries list.

Compile the Wrapper: Navigate to the directory containing rocksdb_wrapper.cpp and setup.py in your terminal, and run:

python setup.py install

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

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

pyrex_rocksdb-0.1.1rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyrex_rocksdb-0.1.1rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyrex_rocksdb-0.1.1rc0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyrex_rocksdb-0.1.1rc0-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file pyrex_rocksdb-0.1.1rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyrex_rocksdb-0.1.1rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 03d399ef665d60e4990b8b7fb46a72eb134f1c6889924264629b30f7eca20cf9
MD5 dfa6070e288cb1712f846d90b1a32171
BLAKE2b-256 b0d2b4ca48a641b92b166a5fd30208a5d45f340f2314ed49049fe1ab86791245

See more details on using hashes here.

File details

Details for the file pyrex_rocksdb-0.1.1rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyrex_rocksdb-0.1.1rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7091f0a087c9c9e208575239da3c98dba5f2dcccb1f8bca33dfaf6d642b21c3c
MD5 46dec28d3104db0ee981bb998d6e8f3b
BLAKE2b-256 2a56162955b333c8b8e2c388a94d594d8922c8c7f16e90964da5834cccbbcac5

See more details on using hashes here.

File details

Details for the file pyrex_rocksdb-0.1.1rc0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyrex_rocksdb-0.1.1rc0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d26890ccd1744721ea8198220127929d9843b4a266e0594df312ae436dfa8374
MD5 6090d8a7fc855f9bfec715c93a7f340c
BLAKE2b-256 67dec58a8d400c10abb9c66cc3711d418baf98953f5351c5b962cc21489d17fc

See more details on using hashes here.

File details

Details for the file pyrex_rocksdb-0.1.1rc0-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyrex_rocksdb-0.1.1rc0-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a8d7f1242a3dbd754c6b6cb59d0de0f1291d21baa46eea9253f997aa40aa8d01
MD5 ef2e156cc5de450820fb5970947d2b8e
BLAKE2b-256 6b17499c12c3e4fdd4fcf66f33c83128f7555b0871e6faef5ed8615fb60db2ac

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