django-ratelimit9
django-ratelimit9 combines django-recaptcha and django-ratelimit into a single app.
Each time when a limit is exceeded a reCAPTCHA field is dynamically appended to a Form.
Make sure you have read the docs of these two requirements in order to learn how to set up limits and customize the reCAPTCHA.
Requirements
Installation
Install via pip:
pip install django-ratelimit9
Add ratelimit9 to your INSTALLED_APPS
Usage
Let’s say you want to use view MyView along with MyForm form.
Code for your forms.py:
from django.forms import Form
from ratelimit9.forms import Ratelimit9Form
class MyForm(Ratelimit9Form, ModelForm):
# ...
Code for your views.py:
from django.views.generic import CreateView
from ratelimit9.mixins import Ratelimit9Mixin
class MyView(Ratelimit9Mixin, CreateView):
ratelimit_key = 'ip'
ratelimit_rate = '5/m'
# ...
Metadata
Release files for django-ratelimit9 0.1
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 | |
|---|---|---|---|---|
| django-ratelimit9-0.1.tar.gz | 3.2 kB | Without provenance | Details |
Release files / django-ratelimit9-0.1.tar.gz
| Download URL | django-ratelimit9-0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9a9475407251755a2b2f46523780898b1b34660f3ecb5049e48bb5f369d609d
|
|
BLAKE2b-256 checksum How to use checksums |
b7642f96168242381abd5d832511a3641e85d06869f3313c112a4d21ca49c184
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-ratelimit9 0.1
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.