A fast RocksDB wrapper for Python using pybind11.
Project description
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 librocksdbmay 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
- Download URL: pyrex_rocksdb-0.1.1rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 6.0 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03d399ef665d60e4990b8b7fb46a72eb134f1c6889924264629b30f7eca20cf9
|
|
| MD5 |
dfa6070e288cb1712f846d90b1a32171
|
|
| BLAKE2b-256 |
b0d2b4ca48a641b92b166a5fd30208a5d45f340f2314ed49049fe1ab86791245
|
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
- Download URL: pyrex_rocksdb-0.1.1rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 6.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7091f0a087c9c9e208575239da3c98dba5f2dcccb1f8bca33dfaf6d642b21c3c
|
|
| MD5 |
46dec28d3104db0ee981bb998d6e8f3b
|
|
| BLAKE2b-256 |
2a56162955b333c8b8e2c388a94d594d8922c8c7f16e90964da5834cccbbcac5
|
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
- Download URL: pyrex_rocksdb-0.1.1rc0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 6.0 MB
- Tags: CPython 3.9, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d26890ccd1744721ea8198220127929d9843b4a266e0594df312ae436dfa8374
|
|
| MD5 |
6090d8a7fc855f9bfec715c93a7f340c
|
|
| BLAKE2b-256 |
67dec58a8d400c10abb9c66cc3711d418baf98953f5351c5b962cc21489d17fc
|
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
- Download URL: pyrex_rocksdb-0.1.1rc0-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 6.0 MB
- Tags: CPython 3.8, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8d7f1242a3dbd754c6b6cb59d0de0f1291d21baa46eea9253f997aa40aa8d01
|
|
| MD5 |
ef2e156cc5de450820fb5970947d2b8e
|
|
| BLAKE2b-256 |
6b17499c12c3e4fdd4fcf66f33c83128f7555b0871e6faef5ed8615fb60db2ac
|