# jsocol/django-ratelimit

Cache-based rate-limiting for Django

Repository: https://github.com/jsocol/django-ratelimit
Canonical: https://ross.abutalabs.com/products/django-ratelimit
Homepage: https://django-ratelimit.readthedocs.io/en/latest/
Language: Python
License: NOASSERTION
License Family: other
Last push: 2024-07-11T18:32:53+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5584, "days_push": 783, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1146, forks 199 (observed 2026-08-28T04:03:45.870620+00:00)

## What it is
A Django library providing a decorator to rate-limit views based on IP address or request fields, using Django's cache backend. It is a lightweight, cache-based rate-limiting solution for Django applications.

## Use cases
- rate limit django views by ip address
- prevent brute force login attempts in django
- throttle api endpoints in django
- limit form submissions per user
- add rate limiting to django without extra infrastructure

## When to choose
- you use Django and want simple decorator-based rate limiting
- you already have a cache backend (Redis, Memcached) configured
- you need per-request-field or IP-based limits on views

## When to avoid
- you need distributed rate limiting beyond your cache backend's guarantees
- you're not using Django
- you need advanced algorithms like token bucket or sliding window logs

## Facets
- artifact type: library
- maturity: stable
- function: rate-limiting, caching, middleware
- domain: web-development, backend, security
- platform: python
- tags: django, decorator, rate-limit, cache-based, web-server

## Member repositories
- jsocol/django-ratelimit (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:45.870620+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:34:11.126884+00:00, confidence not recorded.
  - readme: https://github.com/jsocol/django-ratelimit (fetched 2026-08-28T04:03:45.870620+00:00, sha 03af21d073ec)
  - registry_pypi: https://pypi.org/pypi/django-ratelimit/json (fetched 2026-08-29T12:40:00.766548+00:00, sha 971650bc61a8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
