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


Download files

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

Source Distribution

throttling-1.2.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

throttling-1.2.0-py2-none-any.whl (7.0 kB view details)

Uploaded Python 2

File details

Details for the file throttling-1.2.0.tar.gz.

File metadata

  • Download URL: throttling-1.2.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for throttling-1.2.0.tar.gz
Algorithm Hash digest
SHA256 4f333520a0a68dac102e193d0f515826c916f29b6e649a750bc1c037b0091462
MD5 097d3f23b5f460283ce00e15243d41cd
BLAKE2b-256 2885e8e0e2ec00ee3462289e7d073a27a38a5c1f2d269fd2d6c253432a83510e

See more details on using hashes here.

File details

Details for the file throttling-1.2.0-py2-none-any.whl.

File metadata

File hashes

Hashes for throttling-1.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 b55aebc72cad79a99eba7fc2748dc0b24882a9539e5d8d6f6d0cbe5fb614ec2b
MD5 70a1b2a1b8792e4c356e88f8973ef5c1
BLAKE2b-256 ecbde910ef6c597838207cab9a85c71fba19e6645196fcd0ae1f595944c2133c

See more details on using hashes here.

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