ratelim
Makes it easy to respect rate limits.
Decision gist · record as of 2026-08-14
Yes, if you need simple rate limiting for legacy Python code or a straightforward API throttling decorator and can tolerate no ongoing maintenance. The low install friction and permissive license make it a minimal risk, but the codebase has not been updated since 2015-02-27, so verify compatibility with your Python version and consider whether a maintained alternative better suits new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with no complex dependencies—only decorator is required.
- However, the package has been abandoned since its latest release on 2015-02-27 with no updates since, so it receives no maintenance or security patches.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions, making it safe to adopt from a licensing standpoint.
last release 2015-02-27 (4186 days) · last repo commit 2017-01-10 · 96 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,124,515 downloads/mo, #2,739 on PyPI
Alternatives
Verify before relying
pip install ratelim
import ratelim
@ratelim.greedy(10, 5)
def hello():
print("hello")- Whether the package remains compatible with current Python versions despite no recent releases
- Whether greedy vs. patient rate limiting strategies meet specific API throttling requirements in modern use cases
What it is and what it does
Ratelim is a lightweight decorator library that restricts how often a function can be called within a given time interval. It provides two strategies: greedy rate limiting, which delays calls only when necessary, and patient rate limiting, which distributes calls evenly across the time window. The library is designed primarily for API interactions where rate limits are enforced by the service provider.
The package depends only on decorator and installs as a pure Python wheel with no compiled dependencies. It preserves the decorated function's signature, making it transparent to call. The project has not been updated since 2015-02-27, so it will not receive updates for Python language changes or new best practices.
Use it for
- Throttle API calls to a web service that enforces rate limits on requests per second or minute
- Distribute database queries evenly over time to avoid overwhelming a backend service
- Limit function execution frequency in web scrapers to respect server policies and avoid IP bans
- Enforce call quotas on internal functions to prevent resource exhaustion in multi-threaded applications
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need simple rate limiting for legacy Python code or a straightforward API throttling decorator and can tolerate no ongoing maintenance.
The low install friction and permissive license make it a minimal risk, but the codebase has not been updated since 2015-02-27, so verify compatibility with your Python version and consider whether a maintained alternative better suits new projects.
Install
ratelim on PyPI
Before you install
Installation is straightforward with no complex dependencies—only decorator is required. However, the package has been abandoned since its latest release on 2015-02-27 with no updates since, so it receives no maintenance or security patches.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions, making it safe to adopt from a licensing standpoint.
Quickstart
pip install ratelim
import ratelim
@ratelim.greedy(10, 5)
def hello():
print("hello")
Verify before relying
- Whether the package remains compatible with current Python versions despite no recent releases
- Whether greedy vs. patient rate limiting strategies meet specific API throttling requirements in modern use cases
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedecorator |
| Maintenance | Abandoned 4,186 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,124,515 / month, #2,739 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: ratelim-0.1.6-py2.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 › “rate limiting decorator”
- ratelimRatelim enforces rate limits on function calls by decorating them to…
- ratelimiterEnforces rate limiting on function calls and operations, supporting…
- slowapiAdds rate limiting to Starlette and FastAPI endpoints using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
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.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
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.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also ratelimit · ratelimiter · asynciolimiter · limits · loop-rate-limiters · django-ratelimit · requests-ratelimiter · fastapi-limiter · upstash-ratelimit · marketorestpython