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.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
Close
Hashes for redis-throttled-queue-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 051c12719f6a568df069ad68c4a6e6a6c278ed3ac887e7376e846ee1163cfb6e |
|
MD5 | 0830b18fc72ee9e3eb012f7b9e59b906 |
|
BLAKE2b-256 | bff4b9d647a9a6c3652b84af1ea1b236983cb7e01ad6f2a404d48dc4dc02bb31 |
Close
Hashes for redis_throttled_queue-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fad8a6c0dfbef3508068569207517f7cc07ca3a90ffbf118a11f5983c422229f |
|
MD5 | cff7c2ea392747352af4ee0cceab5da8 |
|
BLAKE2b-256 | b4ea9c3e73ab2ce3b2a56e4700e45170d28b1bc12f7194b821087c59bd41af5b |