Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangorestframework_ratelimit-1.0.0.tar.gz (10.9 kB view hashes)

Uploaded Source

Built Distribution

djangorestframework_ratelimit-1.0.0-py2.py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page