Skip to main content

Throttling system for Django views.

Project description

Throttling system for Django views.

Basic Usage

Add to settings

INSTALLED_APPS = (
    ...
    'throttling',
)

and in your views

from throttling.decorators import throttle

@throttle(1000)
def view(request):
    return HttpResponse('success')

Features

  • 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


Release history Release notifications

This version
History Node

1.2.0

History Node

1.1.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
throttling-1.2.0-py2-none-any.whl (7.0 kB) Copy SHA256 hash SHA256 Wheel py2 Jul 23, 2015
throttling-1.2.0.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None Jul 23, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page