{"id":27440282,"url":"https://github.com/glef1x/fastapi-ratelimiter","last_synced_at":"2025-07-19T20:36:44.609Z","repository":{"id":57428501,"uuid":"458617286","full_name":"GLEF1X/fastapi-ratelimiter","owner":"GLEF1X","description":"🏄🏼‍♂️ Redis-based rate-limiting for FastAPI","archived":false,"fork":false,"pushed_at":"2024-04-25T06:14:19.000Z","size":60,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T03:17:49.175Z","etag":null,"topics":["asgi","asgi-middleware","asyncio","fastapi","ratelimit","redis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GLEF1X.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-12T19:19:07.000Z","updated_at":"2024-11-06T21:19:01.000Z","dependencies_parsed_at":"2022-09-02T15:31:56.036Z","dependency_job_id":null,"html_url":"https://github.com/GLEF1X/fastapi-ratelimiter","commit_stats":null,"previous_names":["glef1x/fastapi-ratelimit"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLEF1X%2Ffastapi-ratelimiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLEF1X%2Ffastapi-ratelimiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLEF1X%2Ffastapi-ratelimiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLEF1X%2Ffastapi-ratelimiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GLEF1X","download_url":"https://codeload.github.com/GLEF1X/fastapi-ratelimiter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975309,"owners_count":21192198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asgi","asgi-middleware","asyncio","fastapi","ratelimit","redis"],"created_at":"2025-04-14T22:39:42.361Z","updated_at":"2025-04-14T22:39:43.017Z","avatar_url":"https://github.com/GLEF1X.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Ratelimiter\n\n[![PyPI version](https://img.shields.io/pypi/v/fastapi-ratelimiter.svg)]\n\n**Documentation**: https://fastapi-ratelimit.readthedocs.io/en/latest/\n\n## Quick start:\n\n```python\n\nimport asyncio\n\nimport aioredis\nimport uvicorn\nfrom fastapi import FastAPI, Depends\nfrom starlette.responses import JSONResponse\n\nfrom fastapi_ratelimiter import RateLimited, RedisDependencyMarker\nfrom fastapi_ratelimiter.strategies import BucketingRateLimitStrategy\n\napp = FastAPI()\nredis = aioredis.from_url(\"redis://localhost\")\n\n\n@app.get(\n    \"/some_expensive_call\", response_class=JSONResponse,\n    dependencies=[\n        Depends(RateLimited(BucketingRateLimitStrategy(rate=\"10/60s\")))\n    ]\n)\nasync def handle_test_endpoint():\n    await asyncio.sleep(5)\n    return {\"hello\": \"world\"}\n\n\napp.dependency_overrides[RedisDependencyMarker] = lambda: redis\n\nif __name__ == '__main__':\n    uvicorn.run(app)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglef1x%2Ffastapi-ratelimiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglef1x%2Ffastapi-ratelimiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglef1x%2Ffastapi-ratelimiter/lists"}