An aiohttp middleware for limiting connections
Project description
An aiohttp middleware for limiting connections. Python 3.5+ is required for usage, 3.7+ is required for tests.
Usage
Just add LimitMiddleware as a middleware:
from aiohttp import web
from aiohttp_limit import LimitMiddleware
app = web.Application(middlewares=[LimitMiddleware(requests=10)])
This sample usage will restrict requests to 10 per worker.
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
aiohttp-limit-0.1.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for aiohttp_limit-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8acca8df174f19d77e77ed2b04717b616192a961163fb2296a7bdc6602a4bcf |
|
MD5 | bd4cba50055509fdc38d99da140d29fd |
|
BLAKE2b-256 | f815de8e4d9f49adcfbc2a2ce0a56be321f905ca56135232736ac3f57c7a8099 |