Skip to main content

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.

Release files for fourtwonine 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fourtwonine 0.1.0
File Size Uploaded
fourtwonine-0.1.0.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fourtwonine 0.1.0
File Interpreter ABI Platform
fourtwonine-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / fourtwonine-0.1.0.tar.gz

Download URL fourtwonine-0.1.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb5ae1542cdbd28a0fec6181ff1fffb6cdd4cb4e636532d589e1545517230a92
BLAKE2b-256 checksum
How to use checksums
2621fd5e6d15d4bbca20dfc42d38583323b3aaef094569555ad4dfbdf2328d76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release files / fourtwonine-0.1.0-py3-none-any.whl

Download URL fourtwonine-0.1.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
983418213ef3b2c675e0fe68b8820001eb21b1b01d323152303d4e51d9fa9a7e
BLAKE2b-256 checksum
How to use checksums
bd873dc488fd08f665e1a53661c85d73853bddf06323706f3fcbc0b91f268fea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page