Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

remeq-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remeq-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for remeq-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ab600549a45c5eb5a641bb1532115d1a7cae4401d6098e465c287290d231825d
MD5 c20058a74ebd8350f3c63ebaaf90d238
BLAKE2b-256 564362b168ad40f85bb4272875f1869e2a525437ad581b66a8396d231ae0cdf0

See more details on using hashes here.

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

Hashes for remeq-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c68d2540232ed98c9ba7e7de1aed57b612e6f252c20eca9b6894bdaef113f750
MD5 627caa439d5b3024b198c4213391d656
BLAKE2b-256 0afaa102cd53018fa62670da68450317324af2c6d99911266648177187e8b651

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page