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
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
File details
Details for the file microhttp_ratelimit-0.1.0.tar.gz.
File metadata
- Download URL: microhttp_ratelimit-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1d904de03b9f6466e8c4352a324c136d32ba4f6dd4219ea28c73af8bda58312
|
|
| MD5 |
a49ed82858e5391b8dce8815b1e79a42
|
|
| BLAKE2b-256 |
ec607f1df9766b84f3a2f1e79cde411450868ccb6b7a7644ed77d09ae65d6773
|