$npx skillfedfor your agent

ratelimit

API rate limit decorator

Worth itPyPI Software DevelopmentReleased Dec 201812.7M downloads / moMITSource build

Decision gist · record as of 2026-08-14

sdist only — ratelimit-2.2.1.tar.gz · builds from source
v2.2.1 · released 2018-12-17

Yes, with caution. The package is simple, stable, and solves a real problem for API-heavy applications. However, the lack of updates since 2018-12-17 is a significant concern—verify compatibility with your Python version before relying on it in production. For straightforward rate-limiting needs, this remains functional.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • No runtime dependencies, but requires an external HTTP library (e.g.
  • requests) for the decorated function to work.
  • High install friction; the package has not been updated since 2018-12-17, over 2797 days ago.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions, though you must include the license notice.

last release 2018-12-17 (2797 days) · last repo commit 2026-04-13 · 831 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 12,749,177 downloads/mo, #1,307 on PyPI

Verify before relying

pip install ratelimit

from ratelimit import limits

FIFTEEN_MINUTES = 900

@limits(calls=15, period=FIFTEEN_MINUTES)
def call_api(url):
    response = requests.get(url)
    return response
  • Compatibility with current Python versions (requires_python is unspecified)
  • Whether the package works correctly with modern async frameworks
  • Active community support or response time for bug reports given the 2018 release date
Same gist for agents: .md · .json

What it is and what it does

ratelimit is a simple decorator-based rate limiter for Python functions that make API calls. It enforces a maximum number of function invocations within a specified time period (defaulting to 15 minutes), raising a RateLimitException when the quota is exceeded. This helps prevent applications from violating API provider rate limits and getting banned.

The package provides two strategies for handling rate-limit violations: raising an exception (which you can catch and retry), or using the sleep_and_retry decorator to automatically pause the current thread until the time window resets before retrying. It has no runtime dependencies and works by wrapping any function with a simple @limits(calls=N, period=seconds) decorator.

Use it for

  • Wrap API client functions to enforce a 15 minute rate limit or any custom quota without manual tracking
  • Combine with retry logic to implement automatic retry when rate limits are hit
  • Ensure background jobs or data-sync tasks respect API provider rate limits without explicit delay management
  • Protect against accidental API abuse by adding a decorator to functions that call rate-limited endpoints

Worth the install?

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

Worth it

Yes, with caution.

The package is simple, stable, and solves a real problem for API-heavy applications. However, the lack of updates since 2018-12-17 is a significant concern—verify compatibility with your Python version before relying on it in production. For straightforward rate-limiting needs, this remains functional.

Install

ratelimit on PyPI

Before you install

High install friction; the package has not been updated since 2018-12-17, over 2797 days ago. While the repository remains active and marked stable, the age of the latest release may indicate limited responsiveness to compatibility issues.

No runtime dependencies, but requires an external HTTP library (e.g. requests) for the decorated function to work.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions, though you must include the license notice.

Quickstart

pip install ratelimit

from ratelimit import limits

FIFTEEN_MINUTES = 900

@limits(calls=15, period=FIFTEEN_MINUTES)
def call_api(url):
    response = requests.get(url)
    return response

Verify before relying

  • Compatibility with current Python versions (requires_python is unspecified)
  • Whether the package works correctly with modern async frameworks
  • Active community support or response time for bug reports given the 2018 release date

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionHigh. Source build required
Runtime dependenciesNone
MaintenanceActively maintained 2,797 days since the last release
Last repo commit
First released
Downloads12,749,177 / month, #1,307 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 LicenseNatural Language :: EnglishProgramming Language :: PythonTopic :: Software Development

Evidence: ratelimit-2.2.1.tar.gz

Tags

Capabilities
rate limit decoratorapi call throttlingprevent rate limit violationsfunction call frequency limiterapi quota enforcementthrottle function callsrate limiting decorator python
Topics
api-throttlingdecoratorlegacy-stable
PyPI keywords
ratelimitapidecorator

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 limit decorator”

  • ratelimitA function decorator that enforces rate limits on API calls, raising…
  • ratelimRatelim enforces rate limits on function calls by decorating them to…
  • django-ratelimitProvides a Django decorator to rate-limit views based on IP address…

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

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also django-ratelimit · ratelim · python-redis-rate-limit · ratelimiter · throttled-py · slowapi · upstash-ratelimit · throttler · asynciolimiter · Flask-Limiter