$npx skillfedfor your agent

throttled-py

🔧 High-performance Python rate limiting library with multiple algorithms (Fixed Window, Sliding Window, Token Bucket, Leaky Bucket & GCRA) and storage backends (Redis, In-Memory).

Worth itPyPI Python ModulesReleased Aug 2026188.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — throttled_py-3.4.1-py3-none-any.whl
v3.4.1 · released 2026-08-01 · Python >=3.10

Yes. The library is actively maintained, has no security vulnerabilities, installs with zero runtime dependencies by default, and supports modern Python versions (3.10+). It offers a mature feature set with multiple algorithms and backends, making it suitable for both simple single-process rate limiting and complex distributed systems. The MIT license imposes no restrictions. Install it if you need flexible, performant rate limiting; skip it only if your use case is trivial or you require Python 3.8/3.9 support.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; v3.x does not support Python 3.8 or 3.9.
  • Low friction: pure Python wheel with no runtime dependencies by default.
  • Active maintenance with recent release (13 days ago) and 643 repository stars.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) allows unrestricted use, modification, and distribution with minimal obligations—suitable for commercial and proprietary projects.

last release 2026-08-01 (13 days) · last repo commit 2026-08-01 · 643 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 188,692 downloads/mo, #9,940 on PyPI

Verify before relying

pip install throttled-py

from throttled import Throttled

throttle = Throttled(quota="1000/s burst 1000")
result = throttle.limit("key", cost=1)
print(result.limited)
  • Whether Redis backend requires additional system setup or network configuration beyond the optional dependency.
  • Performance characteristics of the Leaky Bucket and GCRA algorithms relative to Token Bucket in real-world workloads.
  • Thread-safety guarantees for the In-Memory backend under high concurrency.
Same gist for agents: .md · .json

What it is and what it does

throttled-py is a rate-limiting library that enforces quotas on request or operation rates using pluggable algorithms and storage backends. It provides five rate-limiting strategies—Fixed Window, Sliding Window, Token Bucket, Leaky Bucket, and GCRA—allowing you to choose the right algorithm for your use case. The library supports both synchronous and asynchronous code, and can store state in Redis (for distributed systems) or in-memory (for single-process applications).

You can apply rate limits via direct function calls, decorators, or context managers. The library returns detailed state information (remaining quota, reset time, retry-after) and can operate in immediate-response mode (reject when over quota) or wait-retry mode (pause until quota is available). Optional integrations include FastAPI middleware with IETF-compliant RateLimit headers, OpenTelemetry hooks, and MCP SDK support for AI model interactions.

Use it for

  • Protect API endpoints from abuse by enforcing per-user or per-IP request quotas with automatic 429 responses.
  • Implement fair-share resource allocation in multi-tenant systems using Redis as a distributed quota store.
  • Rate-limit background job workers or batch processes to prevent resource exhaustion.
  • Add request throttling to async web scraping or API client code to respect rate limits.
  • Enforce token budgets in AI model interactions via MCP SDK integration.
  • Decorate database query functions to prevent query storms during traffic spikes.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The library is actively maintained, has no security vulnerabilities, installs with zero runtime dependencies by default, and supports modern Python versions (3.10+). It offers a mature feature set with multiple algorithms and backends, making it suitable for both simple single-process rate limiting and complex distributed systems. The MIT license imposes no restrictions. Install it if you need flexible, performant rate limiting; skip it only if your use case is trivial or you require Python 3.8/3.9 support.

Install

throttled-py on PyPI

Before you install

Low friction: pure Python wheel with no runtime dependencies by default. Active maintenance with recent release (13 days ago) and 643 repository stars. Requires Python 3.10 or later.

Requires Python 3.10 or later; v3.x does not support Python 3.8 or 3.9.

License in practice

MIT license (permissive) allows unrestricted use, modification, and distribution with minimal obligations—suitable for commercial and proprietary projects.

Quickstart

pip install throttled-py

from throttled import Throttled

throttle = Throttled(quota="1000/s burst 1000")
result = throttle.limit("key", cost=1)
print(result.limited)

Verify before relying

  • Whether Redis backend requires additional system setup or network configuration beyond the optional dependency.
  • Performance characteristics of the Leaky Bucket and GCRA algorithms relative to Token Bucket in real-world workloads.
  • Thread-safety guarantees for the In-Memory backend under high concurrency.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 13 days since the last release
Last repo commit
First released
Downloads188,692 / month, #9,940 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: OS IndependentOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules

Evidence: throttled_py-3.4.1-py3-none-any.whl

Tags

Capabilities
rate limiting librarytoken bucket algorithmredis rate limiterasync rate limitingrequest throttlingquota managementsliding window rate limitleaky bucket algorithm
Topics
rate-limitingquota-managementasync-support

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 › “token bucket algorithm”

  • throttled-pyImplements rate limiting with multiple algorithms (Fixed Window,…
  • token-throttlerToken throttler implements rate limiting using a token bucket…
  • upstash-ratelimitProvides connectionless rate limiting for Python applications in…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also limits · rush · token-throttler · slowapi · pyrate-limiter · aiolimiter · meraki · asynciolimiter · Flask-Limiter · ratelimit