rush
A library for throttling algorithms
Decision gist · record as of 2026-08-14
Yes, if you need a simple, well-typed rate-limiting library and can accept that it will not receive updates. The code is stable and production-ready (Development Status 5), has no known vulnerabilities, and low install friction. However, do not use it if you require active maintenance, security patches, or support for Python versions beyond 3.7.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later.
- Redis backend requires additional redis and rfc3986 dependencies if using Redis storage instead of in-memory.
- Low install friction with a single runtime dependency (attrs).
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions, making it safe from a licensing perspective for most projects.
last release 2021-04-01 (1961 days) · last repo commit 2023-03-27 · 65 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 299,368 downloads/mo, #7,860 on PyPI
Alternatives
Verify before relying
pip install rush
from rush.limiters import Limiter
from rush.stores import MemoryStore
store = MemoryStore()
limiter = Limiter(store, max_attempts=5)
if limiter.try_acquire('user_id'):
# Allow request
pass- Whether the package works reliably with Python versions beyond 3.7 (classifiers only list 3.6 and 3.7, but requires_python says >=3.6)
- Whether abandonment and lack of maintenance since 2021 poses compatibility risks with modern Python or dependency ecosystems
- Specific rate-limit interval values and configuration defaults for the periodic interval and GCRA limiters
What it is and what it does
rush is a small, focused library for implementing rate-limiting and throttling logic in Python applications. It provides two main algorithms—a basic periodic interval limiter and a leaky bucket rate limiter based on GCRA—along with pluggable storage backends so you can choose between Redis for distributed state or an in-memory dictionary for testing and prototyping. The library is fully typed, well-tested, and documented.
The package is designed to be algorithm-agnostic and storage-agnostic, meaning you can mix and match limiters and backends without worrying about compatibility. It's useful when you need to enforce rate limits on API calls, user interactions, or other resource access patterns. However, the project has been abandoned since early 2021 with no active maintenance, so it will not receive bug fixes, security patches, or updates for newer Python versions.
Use it for
- Enforce rate limits on outbound API calls to third-party services.
- Throttle user requests in a web application to prevent abuse or resource exhaustion.
- Implement distributed rate limiting across multiple application instances using a Redis backend.
- Prototype and test rate-limiting logic quickly using the in-memory storage backend.
- Add request throttling to a CLI tool or batch job that interacts with rate-limited APIs.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a simple, well-typed rate-limiting library and can accept that it will not receive updates.
The code is stable and production-ready (Development Status 5), has no known vulnerabilities, and low install friction. However, do not use it if you require active maintenance, security patches, or support for Python versions beyond 3.7.
Install
rush on PyPI
Before you install
Low install friction with a single runtime dependency (attrs). However, the package is abandoned—last release was 2021-04-01 and last commit 2023-03-27—so no maintenance or security updates are forthcoming.
Requires Python 3.6 or later. Redis backend requires additional redis and rfc3986 dependencies if using Redis storage instead of in-memory.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions, making it safe from a licensing perspective for most projects.
Quickstart
pip install rush
from rush.limiters import Limiter
from rush.stores import MemoryStore
store = MemoryStore()
limiter = Limiter(store, max_attempts=5)
if limiter.try_acquire('user_id'):
# Allow request
pass
Verify before relying
- Whether the package works reliably with Python versions beyond 3.7 (classifiers only list 3.6 and 3.7, but requires_python says >=3.6)
- Whether abandonment and lack of maintenance since 2021 poses compatibility risks with modern Python or dependency ecosystems
- Specific rate-limit interval values and configuration defaults for the periodic interval and GCRA limiters
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageattrs |
| Maintenance | Abandoned 1,961 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 299,368 / month, #7,860 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/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7 |
Evidence: rush-2021.4.0-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 › “throttle algorithm”
- rushrush provides rate-limiting algorithms (periodic interval and leaky…
- requests-ratelimiterAdds rate-limiting to the requests library by wrapping…
- 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 Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also pyrate-limiter · throttled-py · token-throttler · limits · httpx-limiter · upstash-ratelimit · requests-ratelimiter · aiolimiter · asynciolimiter · drain3