An easy pythonic redis-based MQ
Project description
kuqueue
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kuqueue-0.1.2.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file kuqueue-0.1.2.tar.gz
.
File metadata
- Download URL: kuqueue-0.1.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c6bfff998f0c334bbb99a25854e37dc02b48e80b94be4a81ba2aff5088cf29c |
|
MD5 | a68430d84c0b0ada8d6dafac5032f0d5 |
|
BLAKE2b-256 | dd3ffb3d28f4a41d8b7d2180936ed16c6d40dd901183397ebde46c68726187cb |
File details
Details for the file kuqueue-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: kuqueue-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 152a618ceaee8ec22c561c5ca2c19871c6cb4d50e70b8101471dacfc2c6c22c8 |
|
MD5 | aa8d883316fe825b9aeac8798c577cdf |
|
BLAKE2b-256 | 0b1cba795cc8c3d63bc80505d3fc38e18175b728cc0654cc322b68abbd712976 |