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 details)
Built Distribution
File details
Details for the file queue_kv-0.1.6.tar.gz
.
File metadata
- Download URL: queue_kv-0.1.6.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 076eb105d65ce39b4d147da88298295face66d43d6377716632cfe42a7ef8182 |
|
MD5 | 89b242e01546b76253d013fb13875620 |
|
BLAKE2b-256 | edc4072b7dd362ab98cd9be056768b16970576d68a18b22ae47df9dc23942dce |
File details
Details for the file queue_kv-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: queue_kv-0.1.6-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aca2a7bf6af86fe07807f720b76e61221cebe346c5d3cbdc553d3e55718eedb2 |
|
MD5 | ba057b2f4de44ccb132cb700e559ef2c |
|
BLAKE2b-256 | d89fba1d1615c0d11624e3131182fe79cc864d95bdb9b2f2e5ee72b0d44f1a51 |