Queue system with key-based throttling implemented over Redis.
Project description
Queue system with key-based throttling implemented over Redis.
Free software: BSD 2-Clause License
Installation
pip install redis-throttled-queue
You can also install the in-development version with:
pip install https://github.com/ionelmc/python-redis-throttled-queue/archive/main.zip
Documentation
Development
To run all the tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
0.4.2 (2022-04-02)
Refactor some duplicated code in the pop script.
0.4.1 (2022-03-31)
Fix bogus error in cleanup() when db is completely empty.
0.4.0 (2022-03-31)
Add last_activity and idle_seconds attributes.
Add a cleanup() method.
0.3.1 (2022-03-31)
Rename attributes (should be safe to mess with):
_limit becomes limit.
_resolution becomes resolution.
0.3.0 (2022-03-31)
Allow pop(window) using any window value (str/bytes/int recommended tho).
0.2.0 (2022-03-31)
Fix __len__ (was returning a string).
0.1.0 (2022-03-30)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
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 redis-throttled-queue-0.4.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8a8729a808f61896ab6421a70d1ac4142b8d9606de8ec3d00705a6982159601 |
|
MD5 | fb7c55899293c259a2dd91dcd69e2e0f |
|
BLAKE2b-256 | ea3773cd2a419e7ef6de6d8491886ad1e55cfab888c3d7117583fd273e61fdac |
Hashes for redis_throttled_queue-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be6b79cead2abff81d2bbf3b65d4ec2926ec059d401d21b94dce0c42784988a6 |
|
MD5 | 8ac891f7734142fe260e752113b255c8 |
|
BLAKE2b-256 | 0db9425de97f289a3e9a7a8ce364dfb2da97373f02d55fda2981ea857cc001dd |