A simple library for creating message queue based on Redis and its channels
Project description
REMEQ
It is a simple library for creating a message queue based on Redis and its channels
How can I use it?
First of all import MessageQueue object into your code.
from remeq import MessageQueue
and create a new queue
redis_message_queue = MessageQueue(
queue_name='YOUR_CHANNEL_NAME',
queue_method='FIFO',
host='REDIS_HOST',
port=6379,
decode_responses=True
)
where
- queue_name - is the name of your channel where you want to store messages
- queue_method - is how the message will be added to the channel and how its message will be taken from the channel, FIFO or LIFO
- host, port, decode_response - are standard settings of Redis object
So, to send a message into the channel use send_massage method
redis_message_queue.send_message("YOUR_MESSAGE_TEXT")
And if you want to get the message from the channel, use get_message method
redis_message_queue.get_message()
That's all. Good luck :)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file remeq-1.0.0.tar.gz.
File metadata
- Download URL: remeq-1.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab600549a45c5eb5a641bb1532115d1a7cae4401d6098e465c287290d231825d
|
|
| MD5 |
c20058a74ebd8350f3c63ebaaf90d238
|
|
| BLAKE2b-256 |
564362b168ad40f85bb4272875f1869e2a525437ad581b66a8396d231ae0cdf0
|
File details
Details for the file remeq-1.0.0-py3-none-any.whl.
File metadata
- Download URL: remeq-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c68d2540232ed98c9ba7e7de1aed57b612e6f252c20eca9b6894bdaef113f750
|
|
| MD5 |
627caa439d5b3024b198c4213391d656
|
|
| BLAKE2b-256 |
0afaa102cd53018fa62670da68450317324af2c6d99911266648177187e8b651
|