{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/16"}],"enrichment":{"capability":"Implements rate limiting with multiple algorithms (Fixed Window, Sliding Window, Token Bucket, Leaky Bucket, GCRA) and storage backends (Redis, In-Memory), supporting both sync and async code.","skillfed_tags":["rate-limiting","quota-management","async-support"],"use_cases":["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."],"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\u2014Fixed Window, Sliding Window, Token Bucket, Leaky Bucket, and GCRA\u2014allowing 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).\n\nYou 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.","worth_installing":"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."},"id":"throttled-py","links":{"html":"https://skillfed.io/packages/throttled-py","md":"https://skillfed.io/packages/throttled-py.md","pypi":"https://pypi.org/project/throttled-py/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-01","license_spdx":null,"license_treatment":"permissive","name":"throttled-py","python_support":"supports_current","summary":"\ud83d\udd27 High-performance Python rate limiting library with multiple algorithms (Fixed Window, Sliding Window, Token Bucket, Leaky Bucket & GCRA) and storage backends (Redis, In-Memory)."},"popularity":{"monthly_downloads":188692,"position":9940,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.4.1"}
