throttler
Zero-dependency Python package for easy throttling with asyncio support
Decision gist · record as of 2026-08-14
Yes. Zero dependencies, active maintenance, MIT license, and broad Python version support (3.8–3.14) make it a low-risk choice. Install friction is minimal and the API is straightforward. Use it when you need rate limiting, concurrency control, or execution timing in asyncio code.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later; async context managers must run within an event loop.
- Low friction: pure Python wheel with zero runtime dependencies and active maintenance (last commit 2026-05-19, 199 days since release).
License · maintenance · safety
permissive license (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal attribution requirements.
last release 2026-01-27 (199 days) · last repo commit 2026-05-19 · 107 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,333,594 downloads/mo, #4,039 on PyPI
Alternatives
Verify before relying
pip install throttler
from throttler import Throttler
import asyncio
async def example():
t = Throttler(rate_limit=3, period=1.0)
async with t:
pass
asyncio.run(example())What it is and what it does
Throttler is a zero-dependency Python package that provides four complementary tools for controlling execution timing and concurrency in asyncio programs. It exposes both context managers and decorators: Throttler enforces rate limits (e.g., 10 requests per second), ThrottlerSimultaneous caps concurrent tasks (e.g., at most 5 in-flight calls), ExecutionTimer enforces fixed spacing between iterations with optional wall-clock alignment, and Timer logs timing statistics across repeated operations.
The package is designed for scenarios where you need to respect API rate limits, prevent resource exhaustion from too many concurrent operations, or maintain consistent execution intervals. Throttler and ThrottlerSimultaneous are async-only and must run within an event loop, while ExecutionTimer and Timer support both sync and async usage. The implementation uses a sliding window for rate limiting and an async semaphore for concurrency control.
Use it for
- Rate-limit API calls to respect external service quotas (e.g., 10 requests per 3 seconds).
- Cap concurrent async tasks to prevent overwhelming a resource pool (e.g., max 5 simultaneous HTTP requests).
- Enforce fixed-interval execution for periodic jobs (e.g., run a task once per minute, aligned to wall-clock).
- Measure and log timing statistics for repeated operations to identify performance regressions.
- Combine rate and concurrency limits for APIs that enforce both constraints simultaneously.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Zero dependencies, active maintenance, MIT license, and broad Python version support (3.8–3.14) make it a low-risk choice. Install friction is minimal and the API is straightforward. Use it when you need rate limiting, concurrency control, or execution timing in asyncio code.
Install
throttler on PyPI
Before you install
Low friction: pure Python wheel with zero runtime dependencies and active maintenance (last commit 2026-05-19, 199 days since release).
Requires Python 3.8 or later; async context managers must run within an event loop.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal attribution requirements.
Quickstart
pip install throttler
from throttler import Throttler
import asyncio
async def example():
t = Throttler(rate_limit=3, period=1.0)
async with t:
pass
asyncio.run(example())
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 199 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,333,594 / month, #4,039 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: AsyncIOIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: 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.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed |
Evidence: throttler-1.2.3-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 › “asyncio rate limiting”
- throttlerProvides rate limiting, concurrency limiting, execution timing, and…
- asynciolimiterProvides rate limiting for async Python code by enforcing a maximum…
- aiolimiterImplements a rate limiter for asyncio using the leaky bucket…
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 asyncio-throttle · ratelimiter · token-throttler · asynciolimiter · ratelimit · aiolimiter · throttled-py · ratelim · stopwatch.py · codetiming