
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
redis-throttled-queue
Advanced tools
Queue system with key-based throttling implemented over Redis.
::
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
https://python-redis-throttled-queue.readthedocs.io/
To run all the tests run::
tox
Note, to combine the coverage data from all the tox environments run:
.. list-table:: :widths: 10 90 :stub-columns: 1
- - Windows
- ::
set PYTEST_ADDOPTS=--cov-append
tox
- - Other
- ::
PYTEST_ADDOPTS=--cov-append tox
pop()
code to avoid the expensive scan operations.
The '...:names
key is now a sorted set and will be used as a template for the usage keys ('...:usage:<window>'
).Added support in a AsyncThrottledQueue
class that only differs a bit from the regular ThrottledQueue
:
__len__
is removed, instead a awaitable size()
method is available.__init__
doesn't validate version anymore, instead you can await on validate_version()
.push()
, pull()
and cleanup()
are awaitable.Added a validate_version
argument to ThrottledQueue
(default: True
).
pop
script.cleanup()
when db is completely empty.last_activity
and idle_seconds
attributes.cleanup()
method.Renamed attributes (should be safe to mess with):
_limit
becomes limit
._resolution
becomes resolution
.pop(window)
using any window value (str/bytes/int recommended tho).__len__
(was returning a string).FAQs
Queue system with key-based throttling implemented over Redis.
We found that redis-throttled-queue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.