Lightweight, cache-backed rate limiting for Django (new package)

I built a small decorator-based rate limiter for Django that uses Django’s cache abstraction (Redis / TTL-backed cache required).

It’s intentionally minimal — no middleware, no DRF dependency, no extra configuration — and meant for small apps, internal APIs, or admin views where heavier solutions are overkill.

Sharing in case someone is looking for something lightweight.

Feedback welcome.

GitHub: https://github.com/VazgenAyv/lightweight_ratelimit_django

1 Like