The rate limit middleware module for LitePolis
Project description
LitePolis Rate Limiter Middleware
Installation
litepolis-cli add-deps litepolis-middleware-rate-limiter
The RateLimiterMiddleware implements a token bucket algorithm to control the rate of requests.
Configuration
capacity and refill_rate in ~/.litepolis/config.conf:
[litepolis_middleware_rate_limiter]
capacity = 4
refill_rate = 2
Citation
The code for this rate limiter is from fastapi-rate-limiter.
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
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 litepolis_middleware_rate_limiter-0.0.1.tar.gz.
File metadata
- Download URL: litepolis_middleware_rate_limiter-0.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50b52abc1d254e882f242559b27a36dcb67c099a50891a7400cd3f3e939c99d5
|
|
| MD5 |
fc85f12f7c4b728a387e4a4b4d9c9d68
|
|
| BLAKE2b-256 |
456d4c6314dc23071c4dd057dd154c1015ec7300a881322ab9cec5938d9527a0
|
Provenance
The following attestation bundles were made for litepolis_middleware_rate_limiter-0.0.1.tar.gz:
Publisher:
python-publish.yml on NewJerseyStyle/LitePolis-middleware-rate-limiter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
litepolis_middleware_rate_limiter-0.0.1.tar.gz -
Subject digest:
50b52abc1d254e882f242559b27a36dcb67c099a50891a7400cd3f3e939c99d5 - Sigstore transparency entry: 191672887
- Sigstore integration time:
-
Permalink:
NewJerseyStyle/LitePolis-middleware-rate-limiter@f39b07328a41e8231b609ea4f4acb32560e6bc90 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/NewJerseyStyle
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f39b07328a41e8231b609ea4f4acb32560e6bc90 -
Trigger Event:
release
-
Statement type:
File details
Details for the file litepolis_middleware_rate_limiter-0.0.1-py3-none-any.whl.
File metadata
- Download URL: litepolis_middleware_rate_limiter-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25f34f1359b4194f06c23759ff638f3684481686f0acb279a34ba9e986294803
|
|
| MD5 |
6db8bd830b2ae1265c1235baa74fa3a0
|
|
| BLAKE2b-256 |
140619b01bd1ddf1db9fde9aefb6171a04f273c9f811ba521d5ec9f3c5e4b2dd
|
Provenance
The following attestation bundles were made for litepolis_middleware_rate_limiter-0.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on NewJerseyStyle/LitePolis-middleware-rate-limiter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
litepolis_middleware_rate_limiter-0.0.1-py3-none-any.whl -
Subject digest:
25f34f1359b4194f06c23759ff638f3684481686f0acb279a34ba9e986294803 - Sigstore transparency entry: 191672888
- Sigstore integration time:
-
Permalink:
NewJerseyStyle/LitePolis-middleware-rate-limiter@f39b07328a41e8231b609ea4f4acb32560e6bc90 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/NewJerseyStyle
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f39b07328a41e8231b609ea4f4acb32560e6bc90 -
Trigger Event:
release
-
Statement type: