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

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()

Development

# Setup
make install

# Build
make build

# Test
make test

License

Apache-2.0

About

Python bindings for RocksDB (including TransactionalDB)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages