asyncio rate limiter, a leaky bucket implementation
aiolimiter
Introduction
An efficient implementation of a rate limiter for asyncio.
This project implements the Leaky bucket algorithm, giving you precise control over the rate a code section can be entered:
from aiolimiter import AsyncLimiter
rate_limit = AsyncLimiter(100, 30)
async def some_coroutine():
async with rate_limit:
await do_something()
It was first developed as an answer on Stack Overflow.
- RPM
- python3-aiolimiter-1.1.0-1.lbn36.noarch.rpm
- Summary
- asyncio rate limiter, a leaky bucket implementation
- URL
- https://pypi.org/project/aiolimiter
- Group
- Unspecified
- License
- ZPL
- Source
-
python-aiolimiter-1.1.0-1.lbn36.src.rpm
- Checksum
- 1c9d728301fa814477f302672b37d0df607a8d9ee28458f978e3a8cace6609c2
- Build Date
- 2024/11/23 15:30:42
- Requires
- Provides
-
python-aiolimiter = 1.1.0-1.lbn36
python3-aiolimiter = 1.1.0-1.lbn36
python3.10-aiolimiter = 1.1.0-1.lbn36
python3.10dist(aiolimiter) = 1.1
python3dist(aiolimiter) = 1.1
- Obsoletes