Skip to content

ronanboiteau/djangorestframework-ratelimit

 
 

Repository files navigation

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")

About

Cache-based rate-limiting for Django and Django REST Framework

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 97.1%
  • Shell 2.9%