
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.