This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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
Release History

Release History

This version
History Node

1.2.0

History Node

1.1.2

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
throttling-1.2.0-py2-none-any.whl (7.0 kB) Copy SHA256 Checksum SHA256 py2 Wheel Jul 23, 2015
throttling-1.2.0.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256 Source Jul 23, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting