Yet Another python queue backed by redis; but modern and compliant
Project description
Yet Another python queue backed by redis; but modern and compliant
Free software: MIT license
Documentation: https://yarqueue.readthedocs.io.
Heavily inspired by hotqueue.
Features
Compatible with the API of multiprocessing.Queue
LIFO, FIFO and Double-Ended variants
Each has a non-joinable and a joinable form (compatible with multiprocessing.JoinableQueue)
Additional convenience methods:
get_many(), put_many(), clear() for all queues
n_tasks() and n_in_progress() for joinable queues
Can be used as a context manager
Deletes the queue on exit
For Joinable variants, first waits for all tasks to be done
Can use custom serializers, or none at all
By default, uses the highest pickle protocol available, using the pickle5 backport if possible.
As thread-safe as the underlying Redis client instance
Simple queue watchers
yarqwatch: command-line progress bars for given queues
yarqserve: simple REST API and browser page for given queues
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
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
Built Distribution
Hashes for yarqueue-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b43be3803f3f4623a80f8faa52ec73f4f2eadf3bc8807ba572c96960131dc9b1 |
|
MD5 | 60e07073cd2b03c42f059c4f40c32305 |
|
BLAKE2b-256 | 32b78a6ae17b941dd67529b5de4c4a5ca2e5b507dd68438bc9ce43c495f2424f |