slowapi icon indicating copy to clipboard operation
slowapi copied to clipboard

A rate limiter for Starlette and FastAPI

Results 105 slowapi issues
Sort by recently updated
recently updated
newest added

The conflict is caused by: The user requested redis==4.2.0rc3 slowapi 0.1.5 depends on redis=3.4.1

Bumps [lxml](https://github.com/lxml/lxml) from 4.6.5 to 4.9.1. Changelog Sourced from lxml's changelog. 4.9.1 (2022-07-01) Bugs fixed A crash was resolved when using iterwalk() (or canonicalize()) after parsing certain incorrect input. Note...

dependencies

this allows users to use _ instead of request aswell which solves linter errors due the unused parameter I'm aware that this strays a bit away from the same convention...

There's been an uptick in issues ([1,](https://github.com/encode/starlette/issues/919) [2,](https://github.com/encode/starlette/issues/1029) [3, ](https://github.com/tiangolo/fastapi/issues/4719#issuecomment-1153568508)etc.) around Starlette's BaseHTTPMiddleware class, so much so that some are proposing to [deprecate it.](https://github.com/encode/starlette/issues/1678) Should we shift the implementation to...

In relation to example in issue #25 , ratelimit works without using Request in endpoint. I havenot used Request in any endpoint of my application but ratelimit works. But documentation...

In the 2.3 version of the limits the custom `cost` parameter was introduced: https://github.com/alisaifee/limits/releases/tag/2.3.0 Could you please update the code so it can be adjustable? E.g., it can be useful...

enhancement

Hello, This project is awesome thanks for all the work could the docs for fastapi be updated to this: ```python from fastapi import FastAPI, Request, Response from slowapi import Limiter,...

I need to implement the rate limitation based on JWT token. But in `utils.py` I can only see functions to get user's ip address. So is that possible to customize...

What an amazing, easy to use tool this is! **Is it possible to return the number of remaining API calls (per decorator) to the user of the API?** This way...

for some reason, I get half the rate specified. e.g 2/minute -> 1, 10/minute -> 5 This is my set up: ```python from fastapi import FastAPI, Request from slowapi import...