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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

litepolis_middleware_rate_limiter-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file litepolis_middleware_rate_limiter-0.0.1.tar.gz.

File metadata

File hashes

Hashes for litepolis_middleware_rate_limiter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 50b52abc1d254e882f242559b27a36dcb67c099a50891a7400cd3f3e939c99d5
MD5 fc85f12f7c4b728a387e4a4b4d9c9d68
BLAKE2b-256 456d4c6314dc23071c4dd057dd154c1015ec7300a881322ab9cec5938d9527a0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file litepolis_middleware_rate_limiter-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for litepolis_middleware_rate_limiter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 25f34f1359b4194f06c23759ff638f3684481686f0acb279a34ba9e986294803
MD5 6db8bd830b2ae1265c1235baa74fa3a0
BLAKE2b-256 140619b01bd1ddf1db9fde9aefb6171a04f273c9f811ba521d5ec9f3c5e4b2dd

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page