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 | RSS feed
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.1.2.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for throttling-1.1.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7774e1f9ff411926a72a1b9037c0bfe2a13b7fc8560f8dd61a2d84529cceb02e |
|
MD5 | d6f746dbad36010279d3b8849187f543 |
|
BLAKE2b-256 | ec9d4ffa90833a3789926badf3f9f0678c1843ae926b0b03493afb8f4117fadf |