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
Metadata
Release files for throttling 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| throttling-1.2.0.tar.gz | 4.1 kB | Without provenance | Details for throttling-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| throttling-1.2.0-py2-none-any.whl | Python 2 | none | any | Details for throttling-1.2.0-py2-none-any.whl |
Total release size: 11.0 kB
Release files / throttling-1.2.0.tar.gz
| Download URL | throttling-1.2.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f333520a0a68dac102e193d0f515826c916f29b6e649a750bc1c037b0091462
|
|
BLAKE2b-256 checksum How to use checksums |
2885e8e0e2ec00ee3462289e7d073a27a38a5c1f2d269fd2d6c253432a83510e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / throttling-1.2.0-py2-none-any.whl
| Download URL | throttling-1.2.0-py2-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
b55aebc72cad79a99eba7fc2748dc0b24882a9539e5d8d6f6d0cbe5fb614ec2b
|
|
BLAKE2b-256 checksum How to use checksums |
ecbde910ef6c597838207cab9a85c71fba19e6645196fcd0ae1f595944c2133c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for throttling 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.