Python bindings for RocksDB
Project description
Python bindings for RocksDB.
See https://f321x.github.io/python-rocksdb/ for a more comprehensive install and usage description.
Quick install
$ pip install rocksdb-ng
The distribution is published to PyPI as rocksdb-ng (the plain rocksdb name belongs to the upstream project this is forked from). The import name is unchanged – after installing you still import rocksdb. Because it ships the same top-level rocksdb package, it cannot be co-installed with the original rocksdb distribution; uninstall that first (pip uninstall rocksdb).
Quick usage guide
>>> import rocksdb
>>> db = rocksdb.DB('test.db', rocksdb.Options(create_if_missing=True))
>>> db.put(b'a', b'data')
>>> print(db.get(b'a'))
b'data'
Acknowledgements
This project attempts to collect the efforts put into different forks of the pyrocksdb project that was originally written by stephan-hof, as sadly none seems to be actively maintained. In particular, the python-rocksdb fork created by twmht, but it also incorporates changes from other forks and unfinished pull requests.
Disclaimer
This python-rocksdb fork was developed mostly using LLM coding agents.
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 Distribution
File details
Details for the file rocksdb_ng-2.0.0.tar.gz.
File metadata
- Download URL: rocksdb_ng-2.0.0.tar.gz
- Upload date:
- Size: 347.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d683f9ac2c02f4a3e8be184bd4559b2c5a2f982272f06545a6ae20e2ffe1ac11
|
|
| MD5 |
3dfccf114ea54872276cbb0c2fd1c18f
|
|
| BLAKE2b-256 |
8d1a4e058451346ea2d0ec56ff4d1feab518493f2c09c81cc314e8bdd7b00111
|