Python bindings for RocksDB.
See https://f321x.github.io/python-rocksdb/ for a more comprehensive install and usage description.
$ pip install rocksdb-ngThe 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).
>>> 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'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.
This python-rocksdb fork was developed mostly using LLM coding agents.