Metadata-Version: 2.4
Name: pyfjall
Version: 0.1.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Database
Summary: Python bindings for fjall, an LSM-tree based embeddable key-value storage engine
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Upstream, https://github.com/fjall-rs/fjall

# pyfjall

Python bindings for [fjall](https://github.com/fjall-rs/fjall).

```python
from pyfjall import Database

db = Database("./my.db")
items = db.keyspace("items")

items[b"a"] = b"hello"
items.insert(b"b", b"world")
assert items[b"a"] == b"hello"
assert items.get(b"missing") is None

for key, value in items.prefix(b"a"):
    ...
for key in items.range(b"a", b"c", keys_only=True, reverse=True):
    ...

with db.batch() as batch:
    batch.insert(items, b"c", b"1")
    batch.remove(items, b"a")

db.persist("sync_all")
```
