Yet another rate limiter for Starlette and FastAPI.
This is simply a thin layer over the limits library, making it easy to define flexible rate limits.
- Fully async and typed
- Supports any data store the
limits
library supports:redis
,mongodb
,memcached
, etc. - Supports legacy rate limit headers, as well as IETF draft 06 and draft 07 headers.
- Exposes rate limit state (under
request.state.rate_limit
by default)
Check the examples
directory for how to integrate this into your app.