Skip to main content

priority_redis_queue

Project description

Sentieo Redis Queue

Python Version

pre-commit Black

Installation

You can install SentieoRedisQueue via [pip] from [PyPI]:

$ pip install --extra-index-url https://api.packagr.app/PLesWotlL redis-queue==0.0.2

Documentation

SentieoRedisQueue is a queueing system implemented using Redis Sorted Sets

Usage

from priority_redis_queue.queue import RedisQueue
queue = RedisQueue("queue_name", "redis_host", "port")
queue.push_to_pipeline("item_1") # push to queue
queue.consumer_pipeline() # process the queue

Development

  • Clone this repository
  • Requirements:
  • Create a virtual environment and install the dependencies
make poetry-download
  • Activate the virtual environment
make env

Testing

make test

Pre-commit

Pre-commit hooks run all the auto-formatters (e.g. black, isort), linters (e.g. mypy, flake8), and other quality checks to make sure the changeset is in good shape before a commit/push happens.

You can install the hooks with (runs for each commit):

pre-commit install

Or if you want them to run only for each push:

pre-commit install -t pre-push

Or if you want e.g. want to run all checks manually for all files:

pre-commit run --all-files

Contributing

Contributions are very welcome.

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

priority_redis_queue-0.0.4.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

priority_redis_queue-0.0.4-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

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