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.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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bcb560d78a87e90e6efafc4704402c8c36dbfc51d87fe2a0a10bf48a1a19282 |
|
MD5 | ff215f31780acbdeddbe9513f3f922e3 |
|
BLAKE2b-256 | 613fab87915c2de306ee3354404ed59413df153e54f23ad2bbc1f6a15bdc2bcf |
Hashes for redis_throttled_queue-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24b2b294422e0995ae597adba5409a3f15309ab223d209fa6d31472001861906 |
|
MD5 | 6e7ba52baf3a48b757ffb6c548b6a666 |
|
BLAKE2b-256 | f43444d4800cbb47bc1a9038d3fa02d2b089fd1ba8c41b45db791e3f80bc303d |