Registry / database / redis-simple-mq

redis-simple-mq

JSON →
library1.1.0pypypi✓ verified 85d ago

A simple message queue library built on top of Redis. Current version 1.1.0, release cadence infrequent. Requires Python >=3.8.

pip install redis-simple-mq
INSTALL
IMPORT
SIG · REDIS-SIMPLE-MQ
R
redis-simple-mq
databasepythonv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SimpleMQ
from simple_mq import SimpleMQ
from redis_simple_mq import Queue
core
from simple_mq import core

Basic usage: producer puts a dict onto a queue, consumer retrieves it.

import os from redis_simple_mq import Queue mq = Queue(host=os.environ.get('REDIS_HOST', 'localhost'), port=6379) # Producer mq.put('myqueue', {'message': 'hello'}) # Consumer message = mq.get('myqueue') print(message)
Debug
Known issues
gotchaThe library does not support automatic Redis connection pooling; each Queue instance creates its own connection. For high throughput, reuse the same Queue instance.
fix
Use a single global Queue instance or manually manage a Redis connection pool.
affects: <=1.1.0
deprecatedThe method 'pop' is deprecated in favor of 'get' to align with common queue semantics.
fix
Use mq.get() instead of mq.pop().
affects: >=1.0.0
Upgrade
Version history
1.1.0latest on PyPI · released Nov 11, 2025
Audit
Dependencies
redisrequiredCore dependency for Redis connectivity.
Agent activity
35 hits · last 30 days
node
32
OpenAI (training)
1
Resources
redis-simple-mq — pip install redis-simple-mq · libregistry