Skip to main content

Simple message queue based on Redis.

Project description

redis-simple-mq

A simple message queue for Redis.

release python pipeline codecov Documentation Status license pre-commit Code style: black chat

Description

This is a light-weight message queue based on Redis.

Key features:

  • Class based API to the queue with all basic queue functions
  • Queue is implement as FIFO
  • All messages are stored and retrieved as UTF-8 strings
  • Bulk methods for enqueue and dequeue
  • No limit on the number of parallel queues
  • Fully tested

Basic example

from redis import Redis
from simple_mq import SimpleMQ

conn = Redis()
q = SimpleMQ(conn)
q.enqueue('Hello, World!')
message = q.dequeue()
print(message)

See also the examples folder for examples.

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

redis_simple_mq-1.0.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

redis_simple_mq-1.0.0-py3-none-any.whl (4.2 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