Skip to main content

microhttp-ratelimit

Rate limit extension for microhttp

  • Based LeakyBucket method on Redis

  • IP throttler decorator

Install

pip install microhttp-ratelimit

Note: required to install Redis.

Configuration

rate_limit:
  namespace_prefix: myApp
  redis:
    host: localhost
    port: 6379
  ip_rules:
    default:
      period: 900 # 15 Minutes
      limit: 180
    slow:
      period: 86400 # 24 Hours
      limit: 50
    very_slow:
      period: 86400
      limit: 10

Metadata

Release files for microhttp_ratelimit 0.1.0

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

Source distribution (sdist)

Source distribution for microhttp_ratelimit 0.1.0
File Size Uploaded Provenance Actions
microhttp_ratelimit-0.1.0.tar.gz 3.4 kB Without provenance Details for microhttp_ratelimit-0.1.0.tar.gz

Release files / microhttp_ratelimit-0.1.0.tar.gz

Download URL microhttp_ratelimit-0.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a1d904de03b9f6466e8c4352a324c136d32ba4f6dd4219ea28c73af8bda58312
BLAKE2b-256 checksum
How to use checksums
ec607f1df9766b84f3a2f1e79cde411450868ccb6b7a7644ed77d09ae65d6773
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for microhttp_ratelimit 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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