aiolimiter
asyncio rate limiter, a leaky bucket implementation
Decision gist · record as of 2026-08-14
Yes. aiolimiter is a lightweight, actively maintained rate-limiting tool with no dependencies, permissive licensing, and broad Python version support. It solves a common problem in asyncio applications with a proven algorithm and straightforward API. Install it if you need to control concurrency or throughput in async code.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or newer.
- Low install friction with no runtime dependencies.
- Actively maintained with recent commits and broad Python version support from 3.8 through 3.13.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use this package freely in commercial and open-source projects with minimal restrictions.
last release 2024-12-08 (614 days) · last repo commit 2026-08-14 · 776 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 12,500,767 downloads/mo, #1,316 on PyPI
Alternatives
Verify before relying
pip install aiolimiter
from aiolimiter import AsyncLimiter
rate_limit = AsyncLimiter(100, 30)
async def some_coroutine():
async with rate_limit:
await do_something()What it is and what it does
aiolimiter provides a rate limiter for asyncio applications using the leaky bucket algorithm. It lets you specify a maximum number of concurrent entries into a code section within a given time window, which is useful for controlling how fast async operations execute—for example, limiting API calls, database queries, or other I/O-bound tasks.
The package is a pure Python implementation with no external runtime dependencies, making it lightweight and easy to integrate. It's designed for developers building asyncio applications who need fine-grained control over concurrency and throughput without adding complexity or external service dependencies.
Use it for
- Limit concurrent API requests to a third-party service to avoid hitting rate limits or overwhelming the server.
- Control database query concurrency to prevent connection pool exhaustion in async applications.
- Throttle background task execution to spread load evenly across a time window.
- Prevent resource exhaustion by capping how many async operations can run simultaneously.
- Implement fair-share scheduling for multiple concurrent coroutines competing for a shared resource.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
aiolimiter is a lightweight, actively maintained rate-limiting tool with no dependencies, permissive licensing, and broad Python version support. It solves a common problem in asyncio applications with a proven algorithm and straightforward API. Install it if you need to control concurrency or throughput in async code.
Install
aiolimiter on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained with recent commits and broad Python version support from 3.8 through 3.13.
Requires Python 3.8 or newer.
License in practice
MIT license is permissive; you can use this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install aiolimiter
from aiolimiter import AsyncLimiter
rate_limit = AsyncLimiter(100, 30)
async def some_coroutine():
async with rate_limit:
await do_something()
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 614 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 12,500,767 / month, #1,316 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Framework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: aiolimiter-1.2.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “concurrent request limiting”
- aiolimiterImplements a rate limiter for asyncio using the leaky bucket…
- httpx-limiterProvides rate-limited HTTP transports for httpx clients, supporting…
- asynciolimiterProvides rate limiting for async Python code by enforcing a maximum…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also asynciolimiter · throttled-py · pyrate-limiter · asyncio-throttle · rush · loop-rate-limiters · httpx-limiter · throttler · requests-ratelimiter · ratelimiter