python-redis-rate-limit
Python Rate Limiter based on Redis.
Decision gist · record as of 2026-08-14
Yes, if you already run Redis and need straightforward per-client rate limiting. The package is stable, has no external Python dependencies, and the MIT license is unrestricted. The main trade-off is dormant maintenance—no active development, so expect to fork or patch if you need new features or encounter bugs. High install friction due to the Redis dependency is acceptable for projects that already use Redis.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running Redis server (>= 2.6.0) accessible from the application; no built-in fallback or in-memory alternative.
- High install friction: no runtime dependencies declared, but requires an external Redis server (>= 2.6.0) to function.
- Maintenance is dormant—last commit was 2024-10-23 but preceded by a 660-day gap, suggesting the package is stable but not actively developed.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2024-10-23 (660 days) · last repo commit 2024-10-23 · 133 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 108,702 downloads/mo, #12,544 on PyPI
Alternatives
Verify before relying
pip install python-redis-rate-limit
from redis_rate_limit import RateLimit, TooManyRequests
try:
with RateLimit(resource='users_list', client='192.168.0.10', max_requests=10):
return '200 OK'
except TooManyRequests:
return '429 Too Many Requests'- Whether the package works with modern Redis versions beyond 2.6.0 or has compatibility limits.
- Performance characteristics under high concurrency or large numbers of tracked clients.
- Whether Python 2.7 support is still functional or if it has bitrotted.
What it is and what it does
python-redis-rate-limit provides a simple abstraction for rate limiting on top of Redis, allowing you to enforce request quotas per client or resource. It works as a context manager or decorator, raising TooManyRequests when a limit is exceeded. You define a resource name, client identifier, maximum requests, and optional time window (expire), and the package tracks request counts in Redis, automatically resetting them when the window expires.
The package is designed for distributed systems where multiple application instances need to share rate-limit state. It has no runtime dependencies—you supply your own Redis connection or pool—and supports both simple one-off limits and a factory pattern for reusable limiters. Maintenance is dormant but the codebase is stable; the last commit was 2024-10-23 but preceded by a long gap, indicating the package is mature and not under active development.
Use it for
- Protect API endpoints from abuse by limiting requests per IP address or user ID to a fixed quota per second, minute, or hour.
- Enforce fair-use quotas in multi-tenant systems where each tenant has a separate rate limit tracked across distributed servers.
- Implement sliding-window rate limiting for background job workers or scheduled tasks that consume shared resources.
- Add rate limiting to individual functions or methods without rewriting core logic using the decorator pattern.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you already run Redis and need straightforward per-client rate limiting.
The package is stable, has no external Python dependencies, and the MIT license is unrestricted. The main trade-off is dormant maintenance—no active development, so expect to fork or patch if you need new features or encounter bugs. High install friction due to the Redis dependency is acceptable for projects that already use Redis.
Install
python-redis-rate-limit on PyPI
Before you install
High install friction: no runtime dependencies declared, but requires an external Redis server (>= 2.6.0) to function. Maintenance is dormant—last commit was 2024-10-23 but preceded by a 660-day gap, suggesting the package is stable but not actively developed.
Requires a running Redis server (>= 2.6.0) accessible from the application; no built-in fallback or in-memory alternative.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install python-redis-rate-limit
from redis_rate_limit import RateLimit, TooManyRequests
try:
with RateLimit(resource='users_list', client='192.168.0.10', max_requests=10):
return '200 OK'
except TooManyRequests:
return '429 Too Many Requests'
Verify before relying
- Whether the package works with modern Redis versions beyond 2.6.0 or has compatibility limits.
- Performance characteristics under high concurrency or large numbers of tracked clients.
- Whether Python 2.7 support is still functional or if it has bitrotted.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 660 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 108,702 / month, #12,544 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: python-redis-rate-limit-0.0.10.tar.gz
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 › “redis rate limiting”
- python-redis-rate-limitImplements rate limiting for requests or operations using Redis as…
- upstash-ratelimitProvides connectionless rate limiting for Python applications in…
- limitsImplements rate limiting with multiple strategies (fixed window,…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also asgi-ratelimit · upstash-ratelimit · ratelimiter · ratelimit · fastapi-limiter · requests-ratelimiter · loop-rate-limiters · Flask-Limiter · rush · pyrate-limiter