rdbpy
Python bindings for RocksDB with Cython - batteries included!
No RocksDB installation required - everything is bundled in the wheel for Linux and macOS (Intel + Apple Silicon).
Installation
pip install rdbpython
That's it! No need to install RocksDB or any compression libraries manually.
Usage
import rdbpy
# Open database
options = rdbpy.Options(create_if_missing=True)
db = rdbpy.DB('/path/to/db', options)
# Put/Get
db.put(b'key', b'value')
value = db.get(b'key')
# Iterate
it = db.iterkeys()
it.seek_to_first()
while it.valid():
print(it.key())
it.next()
Lifetimes and threads
Iterators, snapshots and transactions point into native state owned by their parent:
Transaction.commit(),rollback(),close()and a successfulrollback_to_save_point()invalidate every iterator created from that transaction. So doesTransactionDB.begin_transaction(reuse=txn).DB.close()/TransactionDB.close()invalidate every iterator and snapshot of the DB and roll back any transaction that is still open.- Using an invalidated iterator, or a DB after
close(), raisesRuntimeError. Dropping an invalidated object is safe, in any order, including when gc frees it.
Threads: a transaction and its iterators belong to one thread and must not be shared between threads. rdbpy does no locking of its own and releases the GIL inside RocksDB calls, so ending a transaction, or closing a DB, while another thread is still inside a call on it or on its iterators is undefined behaviour and can crash. Close a DB only after every thread is done with it. A finalizer (a generator's finally, __del__) that ends a transaction runs on whichever thread triggers gc, so it counts as using the transaction from that thread. gc merely freeing objects on another thread is safe.
Development
# Setup
make install
# Build
make build
# Test
make test
License
Apache-2.0
Metadata
Release files for rdbpython 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rdbpython-0.2.7.tar.gz | 68.3 kB | Details |
Built distributions (wheels)
Total release size: 83.9 MB
Release files / rdbpython-0.2.7.tar.gz
| Download URL | rdbpython-0.2.7.tar.gz |
|---|---|
| Size | 68.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2bbc68b1bfa49b4954d566e347db79726da9207eb1d888bbbcb83348d94b70d6
|
|
BLAKE2b-256 checksum How to use checksums |
c7cd337ea1fe5b83c0026cf02cad0e5d11a431c776f8a9ce513d5dd52b406722
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | rdbpython-0.2.7-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e988f7618d858a99158885270081af549d278ead376195bae49340d37f45222a
|
|
BLAKE2b-256 checksum How to use checksums |
8748a488741203df85f5751b4057104bb5b19779b566f35b7f86559dcf4440e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | rdbpython-0.2.7-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a164bebb5951f50c3352fef92b93ac9e8dbaa885eaa0fb381c5f2935d9c3fb9f
|
|
BLAKE2b-256 checksum How to use checksums |
3c37872711c4c3b48977768211b06ef57388be4d290ecb53152c516a902b3d1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp314-cp314-macosx_10_15_x86_64.whl
| Download URL | rdbpython-0.2.7-cp314-cp314-macosx_10_15_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.14 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
4a8d1b442a5c32cedb85955979bc2aeed19a9fea38ac928ba06da04ef35c26e7
|
|
BLAKE2b-256 checksum How to use checksums |
7316a4684173ef53b2584d48e86a4fef45dc601972df6cff5386f81d9cdfa110
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | rdbpython-0.2.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 7.3 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
896fcd80893f45f016d4ffc3c072473ccc2a7010515944ac482b18255605cd63
|
|
BLAKE2b-256 checksum How to use checksums |
0c63b18edc0915729b3f7de951e20bac90fdc7c043a4d1e398264c1926d5b638
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | rdbpython-0.2.7-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ac093a954b4297867c5cfd2872fef18640022e647bc0c020afef71c3e5101467
|
|
BLAKE2b-256 checksum How to use checksums |
c71fcfc5f9ff8820b86326f6d81b199a44b9dad247eb505a83bcf68d9bee1674
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp313-cp313-macosx_10_14_x86_64.whl
| Download URL | rdbpython-0.2.7-cp313-cp313-macosx_10_14_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.13 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
e7ab443833770646cdfb5ec986fcc2bb433d6730133ddb9d47b0682e46637d6c
|
|
BLAKE2b-256 checksum How to use checksums |
5c4a76fce5d0c559624629f0b354209cf4edb27461a3d1d134c6b148f22bcbad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | rdbpython-0.2.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 7.3 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b461d0921407f5f3e00f4ce7fb14fbec34b6e976e06fcd7fd41da861f609a867
|
|
BLAKE2b-256 checksum How to use checksums |
4e397f07903ba75fcba62c8b546df5cd7d63b3d445f0fb49f4b5bd1673f39ced
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | rdbpython-0.2.7-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cf47c4b138f3cb0dd5f48946e8417764c350e57b8e4803885adf3d636d37504a
|
|
BLAKE2b-256 checksum How to use checksums |
db985a7368ea7b370d12b68ef0bb2067e61f1b863a19ff6a66452ae2ef85e219
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp312-cp312-macosx_10_14_x86_64.whl
| Download URL | rdbpython-0.2.7-cp312-cp312-macosx_10_14_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.12 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
2d1a34d9856a74d5bf87efbf126b86a324bff8876a90fd693bdf3eb7709ac665
|
|
BLAKE2b-256 checksum How to use checksums |
e6ef4f86b2c0dde71bf4d304c45d2541ed59bf59e27b6ba3f7a56b9c7ecd3d9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | rdbpython-0.2.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
985ecb65eeb8c3a1aeca2ae1daff64763b6e60623dfbed94d5744c1992483c48
|
|
BLAKE2b-256 checksum How to use checksums |
4a4c9d23f9f8b9d07636e811d2bd729e066359a5774cc7916172d663163eada1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | rdbpython-0.2.7-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d09b583cdaf0f9379bf4045486950be63937c59217ed3609c3154ee96724f4f7
|
|
BLAKE2b-256 checksum How to use checksums |
1a2c6de96654e0446fae5feb2465107f75d23ad5a16e899a79d6a0a5888bacbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp311-cp311-macosx_10_14_x86_64.whl
| Download URL | rdbpython-0.2.7-cp311-cp311-macosx_10_14_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.11 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
4c1de8a963c4306d371d00b470c4eb3f5ddb1bb3cdf4fb89a5d87706d12467d0
|
|
BLAKE2b-256 checksum How to use checksums |
694b06da60f096ca6bc444cd23b8d2e9450a7a5824cf90b1857ebe67de029c97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | rdbpython-0.2.7-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 7.3 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
66040661d40aecba55dd70a380dbf8075e17f561c699d961a0ad64b7a3308fc1
|
|
BLAKE2b-256 checksum How to use checksums |
0e28eef68a8832c2da7b8ce11a4fef8d95f04907fd30cdceeb2e135c485bfb86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | rdbpython-0.2.7-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2134b282f7c9560efa65e121427ea10bb3596131814bbaeb64ceda1d0e1629ac
|
|
BLAKE2b-256 checksum How to use checksums |
3b0478b829e39caa51d6c3d9e9cc54591540166b6557605701dac246b363848d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp310-cp310-macosx_10_14_x86_64.whl
| Download URL | rdbpython-0.2.7-cp310-cp310-macosx_10_14_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.10 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
7e4d9c4fb9b57b7538ba6a3669194944af290ca11b1988cc5992c7b6a9bcacae
|
|
BLAKE2b-256 checksum How to use checksums |
149d7101d773a00e4b4e401eceb028ac948bc1d68b0464ba14c24c403e90f0c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | rdbpython-0.2.7-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 7.3 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
0e6e7fe18f889c6b9614871da1a60c5a7d1076a54b6392b80e3df1a9d4a2264e
|
|
BLAKE2b-256 checksum How to use checksums |
cc98bbdf3b4f127cb16df6f04e7b781a9f1426bc6ce5828c94711427d4239e51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | rdbpython-0.2.7-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
781e71aebf0ea7ef99c98438fcfe0461655eba4b8bb15ab323976632afe5178d
|
|
BLAKE2b-256 checksum How to use checksums |
86b9e565240bc7e936bdd32b668e01b39d6220e78c371dba3540414b3dd461a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / rdbpython-0.2.7-cp39-cp39-macosx_10_14_x86_64.whl
| Download URL | rdbpython-0.2.7-cp39-cp39-macosx_10_14_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.9 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
35f4795b31de2e25a84e65680e32463fe5bdf490023ebe14a3f5641f890ce776
|
|
BLAKE2b-256 checksum How to use checksums |
23b63b0abb73dc2fb494939eac795815ab23a39b0437a4bbb132a76ebf20ecad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency log