laurentS/slowapi
A rate limiter for Starlette and FastAPI observed · 2026-08-28
Health v2 · maintenance only
84/100
- Activity 99
- Release rhythm 56
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2385
- days_rel: 81
- days_push: 7
- n_releases_24m: 1
Adoption not part of the score
2052 stars · 129 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
SlowAPI is a rate limiting library for Starlette and FastAPI, adapted from flask-limiter and built on top of the limits package. It supports decorator-based limits on endpoints with redis, memcached, or in-memory backends for tracking.
Use cases
- rate limit fastapi endpoints
- throttle requests per minute in starlette
- add 429 responses to my api
- limit api usage with redis backend
- apply shared rate limits across multiple routes
- protect fastapi endpoints from abuse
When to choose
- you use FastAPI or Starlette and need per-endpoint rate limiting
- you want flask-limiter-style limits in an ASGI app
- you need redis, memcached, or memory-backed limit tracking
When to avoid
- you need websocket endpoint rate limiting
- you use Django or Flask (use flask-limiter or django-ratelimit instead)
- you need a fully async-native rate limiter without API change risk
Facets
library · maturity stable
rate-limiting middleware web-framework web-development backend apis security python cross-platform fastapi starlette asgi rate-limiter redis memcached web-server
3 sources
- readme: https://github.com/laurentS/slowapi · fetched 2026-08-28 · baf87b6d47d9
- homepage: https://pypi.org/project/slowapi/ · fetched 2026-08-29 · 4b4e8fead74a
- registry_pypi: https://pypi.org/pypi/slowapi/json · fetched 2026-08-29 · 669966da5df2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| laurentS/slowapi | main | 84 |
For agents
markdown · JSON · MCP: product_card(name="laurentS/slowapi")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem