
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.