Skip to content

About

Python bindings for RocksDB (LLM maintained fork)

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

 
 

Repository files navigation

python-rocksdb

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.

About

Python bindings for RocksDB (LLM maintained fork)

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages