Skip to content

Repository files navigation

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

importrdbpy# Open databaseoptions=rdbpy.Options(create_if_missing=True)
db=rdbpy.DB('/path/to/db', options)
# Put/Getdb.put(b'key', b'value')
value=db.get(b'key')
# Iterateit=db.iterkeys()
it.seek_to_first()
whileit.valid():
print(it.key())
it.next()

Development

# Setup
make install
# Build
make build
# Test
make test

License

Apache-2.0

About

Python bindings for RocksDB (including TransactionalDB)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages