{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/3"}],"enrichment":{"capability":"Adds request rate limiting to FastAPI routes using configurable per-second or per-interval limits, with support for custom request identifiers and callback handlers.","skillfed_tags":["rate-limiting","api-protection"],"use_cases":["Protect public API endpoints from abuse by limiting requests per IP to a fixed number per time window.","Implement tiered rate limits on a single route (e.g., 1 request per 5 seconds, then 2 per 15 seconds).","Rate-limit WebSocket connections by checking limits on each incoming message.","Skip rate limiting on specific routes using the skip_limiter decorator for whitelisted endpoints.","Customize rate limit identification by user ID, API key, or other request attributes instead of IP."],"what_it_does":"fastapi-limiter wraps pyrate-limiter to provide a FastAPI dependency that enforces request rate limits on individual routes. It identifies requests by IP and path by default, but supports custom identifiers like user ID. When a limit is exceeded, it raises an HTTP 429 response by default, though you can provide a custom callback. The package works with both REST endpoints and WebSocket connections, and allows stacking multiple limiters on a single route with different thresholds.\n\nThe package integrates directly into FastAPI's dependency injection system, so rate limiting is declared as a route parameter rather than middleware. It supports Python 3.9 through 3.14 and has no known security vulnerabilities. The aging maintenance status reflects infrequent releases, but the repository remains public and the dependency surface is minimal.","worth_installing":"Yes, if you need straightforward per-route rate limiting in FastAPI. The low install friction, permissive license, and zero known vulnerabilities make it a safe choice. The aging maintenance status (189 days since last release) is a minor concern but not a blocker\u2014the package is stable and the dependency chain is minimal. Install it if your use case fits the built-in features; consider alternatives if you need distributed rate limiting across multiple instances."},"id":"fastapi-limiter","links":{"html":"https://skillfed.io/packages/fastapi-limiter","md":"https://skillfed.io/packages/fastapi-limiter.md","pypi":"https://pypi.org/project/fastapi-limiter/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2026-02-06","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"fastapi-limiter","python_support":"supports_current","summary":"A request rate limiter for fastapi"},"popularity":{"monthly_downloads":942954,"position":4673,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.2.0"}
