ASGI middleware for rate limiting requests using a token bucket algorithm. Current version 0.10.0, requires Python >=3.6,<4.0. Release cadence is irregular.
pip install asgi-ratelimitVerified import paths — ran on the pinned version, not inferred.
Basic rate limiting middleware wrapping an ASGI app.
Ensure auth_func returns a string, e.g., lambda scope: scope['client'][0].
For distributed apps, pass a Redis backend: from asgi_ratelimit import RedisBackend; RateLimitMiddleware(..., backend=RedisBackend('redis://localhost')).Use correct top-level import: `from asgi_ratelimit import RedisBackend` or check version for exact path.
No dependency data recorded yet.