[](https://github.com/mylonasc/pyrex/actions/workflows/build_wheels.yml)
# 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:
```Bash
python setup.py install
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pyrex-rocksdb",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "rocksdb, database, key-value, pybind11",
"author": null,
"author_email": "Charilaos Mylonas <mylonas.charilaos@gmail.com>",
"download_url": null,
"platform": null,
"description": "[](https://github.com/mylonasc/pyrex/actions/workflows/build_wheels.yml)\n\n# pyrex\na python rocksdb wrapper\n\n## Motivation\nrocksdb python wrappers are broken. This is yet another attempt to create a working python wrapper for rocksdb.\n\n## Example usage:\nCheck the `test.py` file.\n\n## Installation\n\nOn Linux/macOS: Open your terminal, navigate to the parent directory of my_rocksdb_wrapper, and run:\n\n\nBuild and Use the Wrapper:\nAfter saving the files, follow these steps to build and use your Python wrapper:\n\n### Prerequisites:\n\n* RocksDB C++ Library Installed (headers and libraries accessible). (in Ubuntu `sudo apt-get install librocksdb` may suffice)\n* C++11 compatible compiler (e.g., g++ or clang++).\n* Python 3.7+ and its development headers. \n\n* Python pybind11 package: `pip install pybind11`\n\nPython setuptools package: `pip install --upgrade setuptools`\n\n### Adjust setup.py (if needed):\n\nOpen setup.py and verify that `include_dirs` and `library_dirs` correctly point to your RocksDB installation paths. \nIf RocksDB is not in `/usr/local/include` or `/usr/local/lib`, update these paths.\n\nIf RocksDB was built with specific compression libraries (like Snappy, Zlib, LZ4, Zstandard), add their corresponding names (e.g., 'snappy', 'z') to the libraries list.\n\nCompile the Wrapper:\nNavigate to the directory containing rocksdb_wrapper.cpp and setup.py in your terminal, and run:\n\n```Bash\n\npython setup.py install\n```\n\n",
"bugtrack_url": null,
"license": null,
"summary": "A fast RocksDB wrapper for Python using pybind11.",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/mylonasc/pyrex",
"Repository": "https://github.com/mylonasc/pyrex"
},
"split_keywords": [
"rocksdb",
" database",
" key-value",
" pybind11"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "b655eae36d7f8026fc2042761f7711572297602c10e3ded1d6cd0978f993d16c",
"md5": "ad0a0e385ddb361ec9f504c8b6fc3a59",
"sha256": "914f12f38f6d1c914d33a603e1501e0029f64e978ff80b41ec5f52e182f5e20a"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp310-cp310-macosx_14_0_arm64.whl",
"has_sig": false,
"md5_digest": "ad0a0e385ddb361ec9f504c8b6fc3a59",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.8",
"size": 3845924,
"upload_time": "2025-07-28T22:15:16",
"upload_time_iso_8601": "2025-07-28T22:15:16.284307Z",
"url": "https://files.pythonhosted.org/packages/b6/55/eae36d7f8026fc2042761f7711572297602c10e3ded1d6cd0978f993d16c/pyrex_rocksdb-0.1.0-cp310-cp310-macosx_14_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "db929329a105157c605eaf74f7ac9a9c8a17e89a17de760f8316a69fd0fa398b",
"md5": "0c34a60d580d84bdb22a69fa17f67534",
"sha256": "c121926fd24e318095def7418569b2e412a948e6771519e227ce3db755e89b11"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "0c34a60d580d84bdb22a69fa17f67534",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.8",
"size": 5962082,
"upload_time": "2025-07-28T22:15:23",
"upload_time_iso_8601": "2025-07-28T22:15:23.965025Z",
"url": "https://files.pythonhosted.org/packages/db/92/9329a105157c605eaf74f7ac9a9c8a17e89a17de760f8316a69fd0fa398b/pyrex_rocksdb-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7c615137eb90150b45fda30ec89489d482025c05f1482ec90d7cd033f3998eea",
"md5": "6543bf45d5cfbacdc88d38a2982b6d3b",
"sha256": "02edb5b40edcc50e2c034231624102f2aee936e1abeb866b9ba5b55545d6b4bb"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp311-cp311-macosx_14_0_arm64.whl",
"has_sig": false,
"md5_digest": "6543bf45d5cfbacdc88d38a2982b6d3b",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.8",
"size": 3847594,
"upload_time": "2025-07-28T22:15:17",
"upload_time_iso_8601": "2025-07-28T22:15:17.774753Z",
"url": "https://files.pythonhosted.org/packages/7c/61/5137eb90150b45fda30ec89489d482025c05f1482ec90d7cd033f3998eea/pyrex_rocksdb-0.1.0-cp311-cp311-macosx_14_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "897d33f17afc47f5ea0cfc41e4bcdd2134f76fcb1cdb9725d6e1df3e89925583",
"md5": "ab95fd68995a8be31cf0f6ba7d6bb024",
"sha256": "4b0cea5c3ca30c969ddd63883ab691200ae845c7c459d6611055674c2b61f9cf"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "ab95fd68995a8be31cf0f6ba7d6bb024",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.8",
"size": 5984320,
"upload_time": "2025-07-28T22:15:25",
"upload_time_iso_8601": "2025-07-28T22:15:25.490364Z",
"url": "https://files.pythonhosted.org/packages/89/7d/33f17afc47f5ea0cfc41e4bcdd2134f76fcb1cdb9725d6e1df3e89925583/pyrex_rocksdb-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "28b675ec3d6dbaafd8052576238f680535852a915fb274b90529cfe459429105",
"md5": "433a50af26827aa6937dcc7399ea7563",
"sha256": "cb0141cf38547bc4376e4e6cef5fc3d26682e693cb1ea8e48ebf6d8ea266e81f"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp312-cp312-macosx_14_0_arm64.whl",
"has_sig": false,
"md5_digest": "433a50af26827aa6937dcc7399ea7563",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.8",
"size": 3850091,
"upload_time": "2025-07-28T22:15:19",
"upload_time_iso_8601": "2025-07-28T22:15:19.185480Z",
"url": "https://files.pythonhosted.org/packages/28/b6/75ec3d6dbaafd8052576238f680535852a915fb274b90529cfe459429105/pyrex_rocksdb-0.1.0-cp312-cp312-macosx_14_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f823c359d25ed22e26b2ec4ba752d0127d7c06fd89314f49da4c1fbd21f47f94",
"md5": "e65890b450edf124b0bf0a5cc0aee474",
"sha256": "abf6e6a89a483be40cd929c869119aa0f57d0e4ffc05f4aac05b6fdf87e60a97"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "e65890b450edf124b0bf0a5cc0aee474",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.8",
"size": 6020116,
"upload_time": "2025-07-28T22:15:27",
"upload_time_iso_8601": "2025-07-28T22:15:27.067470Z",
"url": "https://files.pythonhosted.org/packages/f8/23/c359d25ed22e26b2ec4ba752d0127d7c06fd89314f49da4c1fbd21f47f94/pyrex_rocksdb-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "2999c2c287a7ab53b82dafbf5a545e24946620aa12982ef076a25883513957bc",
"md5": "3958d2b7a37fdc301e463ba41dd5c31c",
"sha256": "0e75f40d5d7fbee65579f4a8fc4f2caabca65a1a38baca312ea9151e37c45e34"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp38-cp38-macosx_14_0_arm64.whl",
"has_sig": false,
"md5_digest": "3958d2b7a37fdc301e463ba41dd5c31c",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 3845597,
"upload_time": "2025-07-28T22:15:20",
"upload_time_iso_8601": "2025-07-28T22:15:20.915158Z",
"url": "https://files.pythonhosted.org/packages/29/99/c2c287a7ab53b82dafbf5a545e24946620aa12982ef076a25883513957bc/pyrex_rocksdb-0.1.0-cp38-cp38-macosx_14_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d5ca445082e8af30596ccdb5291b21788fbc33f468ad16f7e3c7192c580a50b6",
"md5": "909e199f0b31a0d5e45c876976852aa3",
"sha256": "6d185f7050e40b82d39c59a7e838d44d2339eb4b9e6d39f5fc6979201a364cbb"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "909e199f0b31a0d5e45c876976852aa3",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 5966968,
"upload_time": "2025-07-28T22:15:28",
"upload_time_iso_8601": "2025-07-28T22:15:28.463018Z",
"url": "https://files.pythonhosted.org/packages/d5/ca/445082e8af30596ccdb5291b21788fbc33f468ad16f7e3c7192c580a50b6/pyrex_rocksdb-0.1.0-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "cece35d13a1efa4355d184463fbcaa503a18eddf4e7a8fb9b29abab0e9ecf5e6",
"md5": "98926e57e2ea650c5afc56f20b460103",
"sha256": "85318110b0f58fe201defc750c8ea14c742fa062632a8b82ff55e36146a948d8"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp39-cp39-macosx_14_0_arm64.whl",
"has_sig": false,
"md5_digest": "98926e57e2ea650c5afc56f20b460103",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.8",
"size": 3846100,
"upload_time": "2025-07-28T22:15:22",
"upload_time_iso_8601": "2025-07-28T22:15:22.430000Z",
"url": "https://files.pythonhosted.org/packages/ce/ce/35d13a1efa4355d184463fbcaa503a18eddf4e7a8fb9b29abab0e9ecf5e6/pyrex_rocksdb-0.1.0-cp39-cp39-macosx_14_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "99e1495bec13c883aa665562139b2b448784d326527944ed6b8473b826ca7800",
"md5": "31bfd78d7565591993a61196f64d0661",
"sha256": "338a931db600ab4583220bd2985b27e07be4677a75a48cb3f1d2a546c769c5f9"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "31bfd78d7565591993a61196f64d0661",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.8",
"size": 5961025,
"upload_time": "2025-07-28T22:15:29",
"upload_time_iso_8601": "2025-07-28T22:15:29.983712Z",
"url": "https://files.pythonhosted.org/packages/99/e1/495bec13c883aa665562139b2b448784d326527944ed6b8473b826ca7800/pyrex_rocksdb-0.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5abe5e5a794112b6c3dd2288b04b5a080fdd95accf7aae2717163ea2bb37ae34",
"md5": "341815364ccd742ec0651f43395f8781",
"sha256": "b5ae02e97a294ba98488c18ab97973ec6ea62326a4e0b781c7e63b677fee39c9"
},
"downloads": -1,
"filename": "pyrex_rocksdb-0.1.0-cp39-cp39-win_amd64.whl",
"has_sig": false,
"md5_digest": "341815364ccd742ec0651f43395f8781",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.8",
"size": 2339832,
"upload_time": "2025-07-28T22:15:31",
"upload_time_iso_8601": "2025-07-28T22:15:31.673636Z",
"url": "https://files.pythonhosted.org/packages/5a/be/5e5a794112b6c3dd2288b04b5a080fdd95accf7aae2717163ea2bb37ae34/pyrex_rocksdb-0.1.0-cp39-cp39-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-28 22:15:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mylonasc",
"github_project": "pyrex",
"github_not_found": true,
"lcname": "pyrex-rocksdb"
}