remeq


Nameremeq JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/AndrewLt/remeq
SummaryA simple library for creating message queue based on Redis and its channels
upload_time2024-02-19 14:21:10
maintainer
docs_urlNone
authorAndrewLt
requires_python>=3.9
licenseMIT
keywords redis queue message
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.
```python
from remeq import MessageQueue
```
and create a new queue
```python
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
```python
redis_message_queue.send_message("YOUR_MESSAGE_TEXT")
```
And if you want to get the message from the channel, use _get_message_ method
```python
redis_message_queue.get_message()
```
That's all. Good luck :)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AndrewLt/remeq",
    "name": "remeq",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "redis,queue,message",
    "author": "AndrewLt",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/56/43/62b168ad40f85bb4272875f1869e2a525437ad581b66a8396d231ae0cdf0/remeq-1.0.0.tar.gz",
    "platform": null,
    "description": "# REMEQ\r\nIt is a simple library for creating a message queue based on Redis and its channels\r\n\r\n# How can I use it?\r\nFirst of all import MessageQueue object into your code.\r\n```python\r\nfrom remeq import MessageQueue\r\n```\r\nand create a new queue\r\n```python\r\nredis_message_queue = MessageQueue(\r\n    queue_name='YOUR_CHANNEL_NAME',\r\n    queue_method='FIFO',\r\n    host='REDIS_HOST',\r\n    port=6379,\r\n    decode_responses=True\r\n)\r\n```\r\nwhere\r\n* _queue_name_ - is the name of your channel where you want to store messages\r\n* _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\r\n* _host, port, decode_response_ - are standard settings of Redis object \r\n\r\nSo, to send a message into the channel use _send_massage_ method\r\n```python\r\nredis_message_queue.send_message(\"YOUR_MESSAGE_TEXT\")\r\n```\r\nAnd if you want to get the message from the channel, use _get_message_ method\r\n```python\r\nredis_message_queue.get_message()\r\n```\r\nThat's all. Good luck :)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple library for creating message queue based on Redis and its channels",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/AndrewLt/remeq"
    },
    "split_keywords": [
        "redis",
        "queue",
        "message"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0afaa102cd53018fa62670da68450317324af2c6d99911266648177187e8b651",
                "md5": "627caa439d5b3024b198c4213391d656",
                "sha256": "c68d2540232ed98c9ba7e7de1aed57b612e6f252c20eca9b6894bdaef113f750"
            },
            "downloads": -1,
            "filename": "remeq-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "627caa439d5b3024b198c4213391d656",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 3248,
            "upload_time": "2024-02-19T14:21:08",
            "upload_time_iso_8601": "2024-02-19T14:21:08.194439Z",
            "url": "https://files.pythonhosted.org/packages/0a/fa/a102cd53018fa62670da68450317324af2c6d99911266648177187e8b651/remeq-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "564362b168ad40f85bb4272875f1869e2a525437ad581b66a8396d231ae0cdf0",
                "md5": "c20058a74ebd8350f3c63ebaaf90d238",
                "sha256": "ab600549a45c5eb5a641bb1532115d1a7cae4401d6098e465c287290d231825d"
            },
            "downloads": -1,
            "filename": "remeq-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c20058a74ebd8350f3c63ebaaf90d238",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 2833,
            "upload_time": "2024-02-19T14:21:10",
            "upload_time_iso_8601": "2024-02-19T14:21:10.184888Z",
            "url": "https://files.pythonhosted.org/packages/56/43/62b168ad40f85bb4272875f1869e2a525437ad581b66a8396d231ae0cdf0/remeq-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-19 14:21:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AndrewLt",
    "github_project": "remeq",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "remeq"
}
        
Elapsed time: 0.19619s