Queue implementation based on `kv.api`
Project description
Queue: Key-Value
Queue implementation based on
kv.api
pip install queue-kv
from q.kv import QueueKV
Usage
- Use an arbitrary
KV
implementation:
from kv.api import KV
from q.kv import QueueKV
kv: KV[tuple[str, int]] = ...
queue = QueueKV(kv)
- Or some of the predefined ones:
q = QueueKV.fs(dict[str, tuple[float, str]], 'path/to/data')
q = QueueKV.sqlite(MyDataclass, 'path/to/db.sqlite')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
queue_kv-0.1.6.tar.gz
(3.0 kB
view hashes)