redis-simple-mq


Nameredis-simple-mq JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummarySimple message queue based on Redis.
upload_time2023-07-17 19:42:02
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords queue redis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # redis-simple-mq

A simple message queue for Redis.

[![release](https://img.shields.io/pypi/v/redis-simple-mq?label=release)](https://pypi.org/project/redis-simple-mq/)
[![python](https://img.shields.io/pypi/pyversions/redis-simple-mq)](https://pypi.org/project/redis-simple-mq/)
[![pipeline](https://gitlab.com/ErikKalkoken/redis-simple-mq/badges/master/pipeline.svg)](https://gitlab.com/ErikKalkoken/redis-simple-mq/-/pipelines)
[![codecov](https://codecov.io/gl/ErikKalkoken/redis-simple-mq/branch/master/graph/badge.svg?token=M1IBQV97BE)](https://codecov.io/gl/ErikKalkoken/redis-simple-mq)
[![Documentation Status](https://readthedocs.org/projects/redis-simple-mq/badge/?version=latest)](https://redis-simple-mq.readthedocs.io/en/latest/?badge=latest)
[![license](https://img.shields.io/badge/license-MIT-green)](https://gitlab.com/ErikKalkoken/redis-simple-mq/-/blob/master/LICENSE)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![chat](https://img.shields.io/discord/790364535294132234)](https://discord.gg/zmh52wnfvM)

## 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

```python
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.


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "redis-simple-mq",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "queue,redis",
    "author": "",
    "author_email": "Erik Kalkoken <kalkoken87@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ff/b0/78f93a4b7050293761bac96ab77ae0da1ab3267bb7c2f827a5e043d94738/redis_simple_mq-1.0.0.tar.gz",
    "platform": null,
    "description": "# redis-simple-mq\n\nA simple message queue for Redis.\n\n[![release](https://img.shields.io/pypi/v/redis-simple-mq?label=release)](https://pypi.org/project/redis-simple-mq/)\n[![python](https://img.shields.io/pypi/pyversions/redis-simple-mq)](https://pypi.org/project/redis-simple-mq/)\n[![pipeline](https://gitlab.com/ErikKalkoken/redis-simple-mq/badges/master/pipeline.svg)](https://gitlab.com/ErikKalkoken/redis-simple-mq/-/pipelines)\n[![codecov](https://codecov.io/gl/ErikKalkoken/redis-simple-mq/branch/master/graph/badge.svg?token=M1IBQV97BE)](https://codecov.io/gl/ErikKalkoken/redis-simple-mq)\n[![Documentation Status](https://readthedocs.org/projects/redis-simple-mq/badge/?version=latest)](https://redis-simple-mq.readthedocs.io/en/latest/?badge=latest)\n[![license](https://img.shields.io/badge/license-MIT-green)](https://gitlab.com/ErikKalkoken/redis-simple-mq/-/blob/master/LICENSE)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![chat](https://img.shields.io/discord/790364535294132234)](https://discord.gg/zmh52wnfvM)\n\n## Description\n\nThis is a light-weight message queue based on Redis.\n\nKey features:\n\n- Class based API to the queue with all basic queue functions\n- Queue is implement as FIFO\n- All messages are stored and retrieved as UTF-8 strings\n- Bulk methods for enqueue and dequeue\n- No limit on the number of parallel queues\n- Fully tested\n\n## Basic example\n\n```python\nfrom redis import Redis\nfrom simple_mq import SimpleMQ\n\nconn = Redis()\nq = SimpleMQ(conn)\nq.enqueue('Hello, World!')\nmessage = q.dequeue()\nprint(message)\n```\n\nSee also the examples folder for examples.\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Simple message queue based on Redis.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://gitlab.com/ErikKalkoken/redis-simple-mq"
    },
    "split_keywords": [
        "queue",
        "redis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de3f694b1fb297179652ea02457a5fe08eba0a60051771e9c98b62416dfed225",
                "md5": "8bbfdad70489a14dba587b61a92633d6",
                "sha256": "d2b7b2603ca0523650b8b1db4f53c9da4d59426a8b4e899cb9aab1cf28ca2042"
            },
            "downloads": -1,
            "filename": "redis_simple_mq-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8bbfdad70489a14dba587b61a92633d6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4173,
            "upload_time": "2023-07-17T19:42:01",
            "upload_time_iso_8601": "2023-07-17T19:42:01.158521Z",
            "url": "https://files.pythonhosted.org/packages/de/3f/694b1fb297179652ea02457a5fe08eba0a60051771e9c98b62416dfed225/redis_simple_mq-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ffb078f93a4b7050293761bac96ab77ae0da1ab3267bb7c2f827a5e043d94738",
                "md5": "0f5b7f399b4dd5d40bd6a73cf2954372",
                "sha256": "b0040bd2d4ed54b498028788feb7d0f7d7764d6db1ff53ecb03eaa2d0170b954"
            },
            "downloads": -1,
            "filename": "redis_simple_mq-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0f5b7f399b4dd5d40bd6a73cf2954372",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3740,
            "upload_time": "2023-07-17T19:42:02",
            "upload_time_iso_8601": "2023-07-17T19:42:02.799463Z",
            "url": "https://files.pythonhosted.org/packages/ff/b0/78f93a4b7050293761bac96ab77ae0da1ab3267bb7c2f827a5e043d94738/redis_simple_mq-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-17 19:42:02",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "ErikKalkoken",
    "gitlab_project": "redis-simple-mq",
    "lcname": "redis-simple-mq"
}
        
Elapsed time: 2.05834s