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.3 (2022-04-09)
Fix buggy counts when duplicate values are pushed. For now the highest priority will be used when two identical values would be pushed.
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e53927bda9875cfd6495d16bba42af525fab37a27a1ea83fb34cb961fafa4302 |
|
MD5 | ce6c14a1c0896d23422e6e0417a94463 |
|
BLAKE2b-256 | a487dcf3a510409a39be463c1d7f2c2d67e44ae230adb6559339c27590b5d858 |
Hashes for redis_throttled_queue-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74760c6f16c169d7564e9e337232510e9a407a73bd89b4dfe49485612f5cf75f |
|
MD5 | 3b711805db25cd5058b00ad143dd25cb |
|
BLAKE2b-256 | 06861bc176f11dec06ed8a7bbd6354eeb56770e97c0b6562607e6513c11e436e |