$npx skillfedfor your agent

limits

Rate limiting utilities

Worth itPyPI Python ModulesReleased Feb 202645.7M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — limits-5.8.0-py3-none-any.whl
v5.8.0 · released 2026-02-05 · Python >=3.10 · 3 runtime deps: deprecated, packaging, typing-extensions

Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a common problem with well-documented, proven strategies. Install it if you need rate limiting with flexible storage and strategy choices; skip it only if your use case is trivial enough for a simple counter or if you are locked into a framework with built-in rate limiting.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low install friction with a pure-Python wheel and only three runtime dependencies (deprecated, packaging, typing-extensions).
  • Actively maintained with a recent release and no known vulnerabilities.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) allows unrestricted use, modification, and distribution with minimal attribution requirements.

last release 2026-02-05 (190 days) · last repo commit 2026-08-05 · 642 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 45,697,217 downloads/mo, #619 on PyPI

Verify before relying

from limits import storage, strategies, parse
backend = storage.MemoryStorage()
strategy = strategies.MovingWindowRateLimiter(backend)
one_per_minute = parse("1/minute")
assert strategy.hit(one_per_minute, "namespace", "key")
assert not strategy.hit(one_per_minute, "namespace", "key")
  • Whether in-memory storage is suitable for production multi-process deployments without data loss.
  • Performance characteristics and memory overhead of each strategy under high concurrency.
  • Whether async support covers all three strategies equally or has limitations.
Same gist for agents: .md · .json

What it is and what it does

limits is a Python rate-limiting library that enforces request quotas using pluggable strategies and storage backends. It lets you define rate limits (e.g., '1/minute'), check whether incoming requests should be allowed, and query remaining quota and reset times. The library supports three algorithmic strategies—fixed window (memory-efficient but prone to burst at boundaries), moving window (precise but memory-intensive), and sliding window counter (a middle ground)—and can store state in Redis, Memcached, MongoDB, or in-memory. Both sync and async APIs are provided with identical method signatures.

You initialize a storage backend, wrap it in a strategy, define a rate limit, then call hit() to consume a request or test() to check without consuming. The library is designed for API gateways, web frameworks, and any service needing per-user or per-resource quotas. It has no compiled dependencies.

Use it for

  • Enforce per-user API request limits in a web service using Redis as the shared backend.
  • Implement sliding window rate limiting in an async application with identical sync/async APIs.
  • Protect a backend service from burst traffic by testing limits before processing expensive operations.
  • Track and reset quota windows for multiple namespaces (e.g., per-user, per-IP, per-endpoint).
  • Use in-memory storage for rate limiting in development or single-process applications.

Worth the install?

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

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a common problem with well-documented, proven strategies. Install it if you need rate limiting with flexible storage and strategy choices; skip it only if your use case is trivial enough for a simple counter or if you are locked into a framework with built-in rate limiting.

Install

limits on PyPI

Before you install

Low install friction with a pure-Python wheel and only three runtime dependencies (deprecated, packaging, typing-extensions). Actively maintained with a recent release and no known vulnerabilities.

Requires Python 3.10 or later.

License in practice

MIT license (permissive) allows unrestricted use, modification, and distribution with minimal attribution requirements.

Quickstart

from limits import storage, strategies, parse
backend = storage.MemoryStorage()
strategy = strategies.MovingWindowRateLimiter(backend)
one_per_minute = parse("1/minute")
assert strategy.hit(one_per_minute, "namespace", "key")
assert not strategy.hit(one_per_minute, "namespace", "key")

Verify before relying

  • Whether in-memory storage is suitable for production multi-process deployments without data loss.
  • Performance characteristics and memory overhead of each strategy under high concurrency.
  • Whether async support covers all three strategies equally or has limitations.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
deprecatedpackagingtyping-extensions
MaintenanceActively maintained 190 days since the last release
Last repo commit
First released
Downloads45,697,217 / month, #619 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 LicenseOperating System :: MacOSOperating System :: OS IndependentOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules

Evidence: limits-5.8.0-py3-none-any.whl

Tags

Capabilities
rate limiting libraryrequest throttlingapi rate limiterredis rate limitingdistributed rate limitingsliding window countermoving window rate limit
Topics
rate-limitingasync-supportdistributed-state

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 library”

  • limitsImplements rate limiting with multiple strategies (fixed window,…
  • slowapiAdds rate limiting to Starlette and FastAPI endpoints using…
  • token-throttlerToken throttler implements rate limiting using a token bucket…

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

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also throttled-py · upstash-ratelimit · rush · slowapi · Flask-Limiter · ratelim · asynciolimiter · requests-ratelimiter · pyrate-limiter · ratelimit