rocksdict
Rocksdb Python Binding
What it is and what it does
RocksDict is a Python wrapper around RocksDB and Speedb, two high-performance embedded key-value storage engines. It exposes RocksDB as a dictionary-like interface, allowing you to store and retrieve data persistently on disk. In default mode, it accepts Python objects (int, float, bool, str, bytes, and arbitrary objects via pickle); in raw mode, it restricts keys and values to bytes for lower overhead. The package also supports advanced RocksDB features like column families, batch writes, snapshots, and options configuration.
It is designed both as a standalone persistent storage solution for Python applications and as a bridge for inspecting or interacting with RocksDB databases created by other languages (C++, Java, etc.). The library handles automatic option loading and column family detection when reopening existing databases, making it practical for cross-language workflows.
Use it for:
- Building a persistent cache or session store for a Python application without external database dependencies.
- Inspecting or reading RocksDB databases created by C++ or Java applications from Python code.
- Storing large volumes of structured data (numpy arrays, pandas DataFrames) on disk with dictionary-like access patterns.
- Implementing a high-performance embedded key-value store for data-intensive Python services.
- Prototyping or migrating from in-memory dictionaries to persistent storage with minimal code changes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
RocksDict provides a Python interface to RocksDB and Speedb, enabling persistent key-value storage on disk with support for multiple data types including Python objects via serialization.
Yes, if you need embedded persistent key-value storage and your platform matches the available wheels (macOS, Linux, or Windows on amd64/arm64). The permissive MIT license, zero runtime dependencies, and Production/Stable status make it low-risk. However, the aging maintenance status (256 days since last release) and lack of recent activity mean you should verify ongoing compatibility with your Python version and monitor the repository for security updates.
Install
rocksdict on PyPI
pip
pip install rocksdictuv
uv add rocksdictpoetry
poetry add rocksdictInstalling rocksdict
Before you install
Medium install friction due to compiled wheels; prebuilt binaries available for macOS (amd64/arm64), Linux (amd64/arm64), and Windows (amd64). Package is aging—last release was 256 days ago—but carries Production/Stable classification.
License in practice
Licensed under MIT (permissive), allowing use in commercial and proprietary projects without significant restrictions.
Quickstart
pip install rocksdict
from rocksdict import Rdict
db = Rdict("./test_dict")
db["key"] = "value"
print(db["key"])
db.close()
Requires a platform with prebuilt wheels (macOS amd64/arm64, Linux amd64/arm64, or Windows amd64); no source distribution fallback mentioned.
Verify before relying
- Whether the package actively maintains compatibility with Python 3.13 and 3.14 (listed in classifiers but no recent release history provided).
- Performance characteristics and scalability limits for typical workloads.
- Whether PyPy support (listed in classifiers) is actively tested or merely declared.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | aging — 256 days since the last release |
| First released | |
| Downloads | 673,591/month — #5,394 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rocksdict-0.3.29-cp310-cp310-macosx_10_14_x86_64.whl; rocksdict-0.3.29-cp310-cp310-macosx_11_0_arm64.whl; rocksdict-0.3.29-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; rocksdict-0.3.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rocksdict-0.3.29-cp310-cp310-manylinux_2_28_aarch64.whl; rocksdict-0.3.29-cp310-cp310-manylinux_2_28_x86_64.whl; rocksdict-0.3.29-cp310-cp310-musllinux_1_2_aarch64.whl; rocksdict-0.3.29-cp310-cp310-musllinux_1_2_x86_64.whl; rocksdict-0.3.29-cp310-cp310-win_amd64.whl; rocksdict-0.3.29-cp311-cp311-macosx_10_14_x86_64.whl; rocksdict-0.3.29-cp311-cp311-macosx_11_0_arm64.whl; rocksdict-0.3.29-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; rocksdict-0.3.29-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rocksdict-0.3.29-cp311-cp311-manylinux_2_28_aarch64.whl; rocksdict-0.3.29-cp311-cp311-manylinux_2_28_x86_64.whl; rocksdict-0.3.29-cp311-cp311-musllinux_1_2_aarch64.whl; rocksdict-0.3.29-cp311-cp311-musllinux_1_2_x86_64.whl; rocksdict-0.3.29-cp311-cp311-win_amd64.whl; rocksdict-0.3.29-cp312-cp312-macosx_10_14_x86_64.whl; rocksdict-0.3.29-cp312-cp312-macosx_11_0_arm64.whl
Keywords: rocksdb, dbm, dict, key-value
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
speedictSpeeDict is a Python key-value storage library…
permissive · top 15,000 on PyPI
sqlitedictProvides a dict-like interface to SQLite…
permissive · top 5,000 on PyPI
amulet-leveldbProvides a Cython wrapper around Mojang's…
unclear · top 15,000 on PyPI
lmdbProvides a Python binding to LMDB (Lightning…
unclear · top 5,000 on PyPI
historydictHistoryDict provides a persistent dictionary…
unclear · top 15,000 on PyPI
picklesharePickleShare provides a dictionary-like…
permissive · top 5,000 on PyPI
plyvelPlyvel is a Python interface to LevelDB, a fast…
permissive · top 5,000 on PyPI
diskcacheDiskCache provides a pure-Python disk-backed…
permissive · top 1,000 on PyPI
valkeyPython client library for connecting to and…
permissive · top 5,000 on PyPI