Simple, flexible rate limits for Starlette and FastAPI
Project description
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
limitslibrary 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_limitby default)
Examples
Check the examples directory for how to integrate this into your app.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fourtwonine-0.1.0.tar.gz
(8.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fourtwonine-0.1.0.tar.gz.
File metadata
- Download URL: fourtwonine-0.1.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb5ae1542cdbd28a0fec6181ff1fffb6cdd4cb4e636532d589e1545517230a92
|
|
| MD5 |
2319b1399556d1b1929f7ed3c1762346
|
|
| BLAKE2b-256 |
2621fd5e6d15d4bbca20dfc42d38583323b3aaef094569555ad4dfbdf2328d76
|
File details
Details for the file fourtwonine-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fourtwonine-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
983418213ef3b2c675e0fe68b8820001eb21b1b01d323152303d4e51d9fa9a7e
|
|
| MD5 |
21d59b5f855d9d72e3ff43332e676191
|
|
| BLAKE2b-256 |
bd873dc488fd08f665e1a53661c85d73853bddf06323706f3fcbc0b91f268fea
|