semvec/pypi-packages huggingface dataset:
throttling 1.2.0
Throttling system for Django views.
License: MIT

django-throttling
=================

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