Skip to main content

Rate limit extension for microhttp

Project description

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

Project details


Download files

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

Source Distribution

microhttp_ratelimit-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page