Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 738 Bytes

File metadata and controls

51 lines (35 loc) · 738 Bytes

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