Skip to content
/ aimrocks Public
forked from aimhubio/aimrocks

🎯 aimrocks 🎸 β€” python & cython bindings for RocksDB. Batteries included! πŸ”‹

License

Notifications You must be signed in to change notification settings

aroig/aimrocks

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

aimrocks: python wrapper for rocksdb

aimrocks is a python package written in Cython, similar to python-rocksdb.

It uses statically linked libraries for rocksdb (version 6.29.5) and compression libraries it depends on, so aimrocks can be used out of the box (without requiring additional installation of any of those).

Example usage

import aimrocks

db_options = dict(
  create_if_missing=True,
  paranoid_checks=False,
)

db_path = '/tmp/example_db'
rocks_db = aimrocks.DB(db_path, aimrocks.Options(**db_options), read_only=False)

batch = aimrocks.WriteBatch()
batch.put(b'key_1', b'value_1')
batch.put(b'key_1', b'value_1')
...

rocks_db.write(batch)

About

🎯 aimrocks 🎸 β€” python & cython bindings for RocksDB. Batteries included! πŸ”‹

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Cython 56.6%
  • Python 35.2%
  • C++ 6.1%
  • Shell 1.7%
  • Dockerfile 0.4%