Simple, framework-agnostic rate limiting for Python — sliding window, token bucket, leaky bucket, fixed window, memory and Redis backends
Project description
Limitra
Simple, framework-agnostic rate limiting for Python.
Install
pip install limitra
Quick start
from limitra import LimitraConfig, rate_limit
LimitraConfig(redis_url="redis://localhost:6379", project="my-service")
@rate_limit(requests=10, window=60, key="user_id")
def create_post(user_id: str, content: str):
...
→ Full documentation: limitra.leok.dev
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
limitra-0.0.1.tar.gz
(4.4 MB
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
limitra-0.0.1-py3-none-any.whl
(17.5 kB
view details)
File details
Details for the file limitra-0.0.1.tar.gz.
File metadata
- Download URL: limitra-0.0.1.tar.gz
- Upload date:
- Size: 4.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b707f9b2cbaec97a03b2c6a07494b97734116caa05c9b4111257f2ecb8b690a
|
|
| MD5 |
d70fe0ffcde5a1075db5dfa9e2376636
|
|
| BLAKE2b-256 |
b376def74a5b6197456458db0ddc5b9d0937de7cc1a8abef40d733e641a13c24
|
File details
Details for the file limitra-0.0.1-py3-none-any.whl.
File metadata
- Download URL: limitra-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0687d86a39e7d1307c82b52295986007149fea9de4da77da0db1eb9b979087fc
|
|
| MD5 |
5e397cca31c2e042637a0edee10a8d39
|
|
| BLAKE2b-256 |
b68c17a7b17b15b714625ae768e173120f829af3e32f65991f67555afb83b3b7
|