{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/5"}],"enrichment":{"capability":"Provides a Django decorator to rate-limit views based on IP address or request fields (GET/POST variables).","skillfed_tags":["rate-limiting","django-middleware","api-protection"],"use_cases":["Protect API endpoints from brute-force attacks by limiting requests per IP address","Throttle user-submitted form submissions to prevent spam or resource exhaustion","Enforce fair-use policies on public endpoints by rate-limiting per authenticated user or session","Prevent scraping or automated access to sensitive views by capping request frequency","Implement tiered access control where different endpoints have different rate limits"],"what_it_does":"Django Ratelimit is a lightweight decorator-based rate-limiting library for Django views. It enforces request limits by tracking access patterns in Django's cache backend, allowing you to throttle views based on IP address or custom request fields. The library is designed to protect views from abuse by rejecting requests that exceed a specified rate.\n\nThe package has been stable since its initial release and supports Python 3.7, 3.8, 3.9, 3.10, and 3.11. It carries no external runtime dependencies beyond Django itself, making it straightforward to integrate into existing projects. Maintenance is dormant but the codebase is marked Production/Stable and sees substantial real-world use.","worth_installing":"Yes. The package is production-stable, dependency-free, and widely used. Dormant maintenance is not a blocker for a mature, single-purpose tool with no known vulnerabilities. Install if you need straightforward IP- or field-based rate-limiting in Django; consider alternatives only if you need advanced features like distributed rate-limiting across multiple servers or async view support."},"id":"django-ratelimit","links":{"html":"https://skillfed.io/packages/django-ratelimit","md":"https://skillfed.io/packages/django-ratelimit.md","pypi":"https://pypi.org/project/django-ratelimit/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-07-24","license_spdx":null,"license_treatment":"permissive","name":"django-ratelimit","python_support":"supports_current","summary":"Cache-based rate-limiting for Django."},"popularity":{"monthly_downloads":2711339,"position":2926,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"4.1.0"}
