Skip to main content

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.

Metadata

Release files for litepolis-middleware-rate-limiter 0.0.1

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

Source distribution (sdist)

Source distribution for litepolis-middleware-rate-limiter 0.0.1
File Size Uploaded
litepolis_middleware_rate_limiter-0.0.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for litepolis-middleware-rate-limiter 0.0.1
File Interpreter ABI Platform
litepolis_middleware_rate_limiter-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / litepolis_middleware_rate_limiter-0.0.1.tar.gz

Download URL litepolis_middleware_rate_limiter-0.0.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
50b52abc1d254e882f242559b27a36dcb67c099a50891a7400cd3f3e939c99d5
BLAKE2b-256 checksum
How to use checksums
456d4c6314dc23071c4dd057dd154c1015ec7300a881322ab9cec5938d9527a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 2, 2025.

Transparency log

Release files / litepolis_middleware_rate_limiter-0.0.1-py3-none-any.whl

Download URL litepolis_middleware_rate_limiter-0.0.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25f34f1359b4194f06c23759ff638f3684481686f0acb279a34ba9e986294803
BLAKE2b-256 checksum
How to use checksums
140619b01bd1ddf1db9fde9aefb6171a04f273c9f811ba521d5ec9f3c5e4b2dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 2, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 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