--- id: slowapi version: "0.1.10" license: MIT license_treatment: permissive maintenance: active --- # slowapi — A rate limiting extension for Starlette and Fastapi License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install slowapi uv add slowapi poetry add slowapi ## Description # SlowApi A rate limiting library for Starlette and FastAPI adapted from [flask-limiter](http://github.com/alisaifee/flask-limiter). This package is used in various production setups, handling millions of requests per month, and seems to behave as expected. There might be some API changes when changing the code to be fully `async`, but we will notify users via appropriate `semver` version changes. The documentation is on [read the docs](https://slowapi.readthedocs.io/en/latest/). # Quick start ## Installation `slowapi` is available from [pypi](https://pypi.org/project/slowapi/) so you can install it as usual: ``` $ pip install slowapi ``` # Features Most feature are coming from FlaskLimiter and the underlying [limits](https://limits.readthedocs.io/). Supported now: - Single and multiple `limit` decorator on endpoint functions to apply limits - redis, memcached and memory backends to track your limits (memory as a fallback) - support for sync and async HTTP endpoints - Support for shared limits across a set of routes - The library aims to support all [currently supported versions](https://devguide.python.org/versions/) of python # Limitations and known issues - The... ## AI interpretation — verify before relying SlowApi provides rate limiting for Starlette and FastAPI applications, wrapping the limits library to enforce request quotas on endpoints using decorators and configurable backends. Verdict: SlowApi is a well-maintained, production-ready rate limiter with low install friction, permissive MIT licensing, and no known vulnerabilities. The single dependency (limits) and active maintenance make it a solid choice for adding request throttling to async web applications. [View on SkillFed](https://skillfed.io/packages/slowapi) · [View on PyPI](https://pypi.org/project/slowapi/)