Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 776 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 776 Bytes

fourtwonine

Yet another rate limiter for Starlette and FastAPI.

This is simply a thin layer over the limits library, making it easy to define flexible rate limits.

Features

  • Fully async and typed
  • Supports any data store the limits library supports: redis, mongodb, memcached, etc.
  • Supports legacy rate limit headers, as well as IETF draft 06 and draft 07 headers.
  • Exposes rate limit state (under request.state.rate_limit by default)

Examples

Check the examples directory for how to integrate this into your app.