Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aimhubio/aimrocks
🎯 aimrocks 🎸 — python & cython bindings for RocksDB. Batteries included! 🔋
https://github.com/aimhubio/aimrocks
embedded-database rocksdb
Last synced: 13 days ago
JSON representation
🎯 aimrocks 🎸 — python & cython bindings for RocksDB. Batteries included! 🔋
- Host: GitHub
- URL: https://github.com/aimhubio/aimrocks
- Owner: aimhubio
- License: apache-2.0
- Created: 2021-07-20T19:05:06.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T15:26:26.000Z (9 months ago)
- Last Synced: 2024-12-17T19:58:02.990Z (19 days ago)
- Topics: embedded-database, rocksdb
- Language: Cython
- Homepage:
- Size: 1.4 MB
- Stars: 30
- Watchers: 7
- Forks: 7
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aimrocks: python wrapper for rocksdb
`aimrocks` is a python package written in Cython, similar to [python-rocksdb](https://python-rocksdb.readthedocs.io/en/latest/).
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
```python
import aimrocksdb_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)
```