Skip to main content

An aiohttp middleware for limiting connections

Project description

CI Status

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


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 details)

Uploaded Source

Built Distribution

aiohttp_limit-0.1.0-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file aiohttp-limit-0.1.0.tar.gz.

File metadata

  • Download URL: aiohttp-limit-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for aiohttp-limit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f231e3eaf4ec80f69838a5d1ca86b4e7c74624d69bc5dc145043dcccc63afcc6
MD5 5eea6db53d9a59826703d1e36a492529
BLAKE2b-256 69079ef7e4a25671b9255607f6a0f9bd72c46e15478625e4e9c973a7b68abf63

See more details on using hashes here.

File details

Details for the file aiohttp_limit-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for aiohttp_limit-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a8acca8df174f19d77e77ed2b04717b616192a961163fb2296a7bdc6602a4bcf
MD5 bd4cba50055509fdc38d99da140d29fd
BLAKE2b-256 f815de8e4d9f49adcfbc2a2ce0a56be321f905ca56135232736ac3f57c7a8099

See more details on using hashes here.

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