django-captcha
reCAPTCHA verification for Django — a verify_recaptcha view decorator backed by per-channel
Service configuration (site scope, secret key, active flag).
Installation
pip install entirius-django-captcha
Add the app to your project:
INSTALLED_APPS = [
...
"django_captcha",
]
Usage
from django_captcha.output.decorators import verify_recaptcha
@verify_recaptcha
def my_view(request):
...
The decorator reads the token from the X-Recaptcha-Token request header (configurable via
CAPTCHA_TOKEN_HEADER_NAME) and validates it against the Google reCAPTCHA API.
Development
make install # sync dependencies (uv)
make check # lint + format check (ruff)
make test # test suite (pytest + pytest-django)
Development and agent instructions: AGENTS.md.
License
Mozilla Public License 2.0 — see LICENSE.
Metadata
Release files for entirius-django-captcha 2.0.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 | |
|---|---|---|---|
| entirius_django_captcha-2.0.0.tar.gz | 64.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| entirius_django_captcha-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.8 kB
Release files / entirius_django_captcha-2.0.0.tar.gz
| Download URL | entirius_django_captcha-2.0.0.tar.gz |
|---|---|
| Size | 64.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
124c2baeb9fada8aff8e0df1f81a3e6e4135c74249d14ee2df0f299a50a6f9b3
|
|
BLAKE2b-256 checksum How to use checksums |
c0f960d2884155af7f6148eb4e36ac7f7448697762244a08ddffa559b1c4e94d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / entirius_django_captcha-2.0.0-py3-none-any.whl
| Download URL | entirius_django_captcha-2.0.0-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b1e6908452d31427e0fd0363ff25b5f7620f08a1ac69fedaa266d11fc29d829
|
|
BLAKE2b-256 checksum How to use checksums |
21b4e2a30b63922e4cd8566f995e317da2731361c8c18e0a3d2c94f7da763b81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|