Skip to main content

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)

Uploaded Source

Built Distribution

queue_kv-0.1.6-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page