Skip to content

An efficient and easy-to-integrate rate limiter for FastAPI applications. Protect your API endpoints without compromising speed.

License

Notifications You must be signed in to change notification settings

osimuka/FastThrottle

Repository files navigation

FastThrottle

An efficient and easy-to-integrate rate limiter for FastAPI applications. Protect your API endpoints without compromising speed.

Applying Rate Limiting

An example of how to apply the throttle using the decorator, specify max_requests and window

@app.get("/some-path")
@rate_limit_async(max_rquests=50, window=60)
async def some_path(request: Request):
  return {"message": "Not throttled"}

About

An efficient and easy-to-integrate rate limiter for FastAPI applications. Protect your API endpoints without compromising speed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages