Skip to main content

kuqueue

Build Status codecov Code style: black PyPI version

A lightweight, pythonic wrapper around pyrsmq to expose MQ semantics over vanilla redis

Continuously tested against a recent redis instance and python>=3.8

Install

pip install kuqueue

For development, clone this repo and run make install.

Usage example

from redis import StrictRedis
from kuqueue import create_kuqueue

redis: StrictRedis
kq = create_kuqueue(redis, namespace="your-app-name", qname="name-of-your-queue", default_job_timeout=30)
kq.create()          # ensures the queue exists in your redis
kq.push(b"message")  # push message with raw bytes data
msg = kq.pull()      # pull a message from the queue, blocking
...                  # do some some work
kq.ack(msg.id)       # acknowledge the message, delete it from the queue

Metadata

Release files for kuqueue 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kuqueue 0.1.2
File Size Uploaded
kuqueue-0.1.2.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kuqueue 0.1.2
File Interpreter ABI Platform
kuqueue-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / kuqueue-0.1.2.tar.gz

Download URL kuqueue-0.1.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6c6bfff998f0c334bbb99a25854e37dc02b48e80b94be4a81ba2aff5088cf29c
BLAKE2b-256 checksum
How to use checksums
dd3ffb3d28f4a41d8b7d2180936ed16c6d40dd901183397ebde46c68726187cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.0

Release files / kuqueue-0.1.2-py3-none-any.whl

Download URL kuqueue-0.1.2-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
152a618ceaee8ec22c561c5ca2c19871c6cb4d50e70b8101471dacfc2c6c22c8
BLAKE2b-256 checksum
How to use checksums
0b1cba795cc8c3d63bc80505d3fc38e18175b728cc0654cc322b68abbd712976
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page