Cache-based rate-limiting for Django and Django REST Framework
Project description
Django REST Framework Ratelimit
Django REST Framework Ratelimit is a fork of Django Ratelimit that adds support for rate limiting on Django REST Framework's Request.data
Usage
Refer to the Django Ratelimit v4.1.0 documentation.
This fork simply adds support for the extra ratelimit key data
. Example:
from django_ratelimit.decorators import ratelimit
ratelimit(key="data:username", rate="5/m", method="POST")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file djangorestframework_ratelimit-1.0.0.tar.gz
.
File metadata
- Download URL: djangorestframework_ratelimit-1.0.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce0a77409d67ca7f07c8cb724fbc476121c766b172c17469f0bd40058438ca30 |
|
MD5 | 46d0e108ad588fe410f730b16e0b1ee9 |
|
BLAKE2b-256 | b68de6ab3a12554df38fa731333a55d4086bf4c4817a7378013b2f2da518964b |
File details
Details for the file djangorestframework_ratelimit-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: djangorestframework_ratelimit-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81cbd9a87e8c2eeedb433ac45999336cb918c0804f8c9a714c1a666c1bc35f59 |
|
MD5 | 1dad24befef9fc8592824e5ae736644f |
|
BLAKE2b-256 | fe91b1c4ceb4dc3c1541d437cd069f0df2ac6946f2017964943ff87ca8cb7b2f |