Skip to main content

Throttling system for Django views.

Project description

Throttling system for Django views.

Basic Usage

Add to settings


and in your views

from throttling.decorators import throttle

def view(request):
    return HttpResponse('success')


  • limit to a maximum number of requests for each view or for a group of views
    • each anonymous user
    • each user (anonymous or authenticated)
    • each authenticated user with a certain user role
    • each authenticated user that bellongs to a group
  • limit to a shared maximum number of requests for each view or for a group of views
    • all anonymous users
    • all users (anonymous or authenticated)
    • all authenticated users that bellong to a group

Project details

Download files

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

Files for throttling, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size throttling-1.2.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View
Filename, size throttling-1.2.0-py2-none-any.whl (7.0 kB) File type Wheel Python version py2 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page