reCAPTCHA verification Django module
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file entirius_django_captcha-2.0.0.tar.gz.
File metadata
- Download URL: entirius_django_captcha-2.0.0.tar.gz
- Upload date:
- Size: 64.2 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
124c2baeb9fada8aff8e0df1f81a3e6e4135c74249d14ee2df0f299a50a6f9b3
|
|
| MD5 |
44a4dc9d54ea6861ba13e686a15d896f
|
|
| BLAKE2b-256 |
c0f960d2884155af7f6148eb4e36ac7f7448697762244a08ddffa559b1c4e94d
|
File details
Details for the file entirius_django_captcha-2.0.0-py3-none-any.whl.
File metadata
- Download URL: entirius_django_captcha-2.0.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b1e6908452d31427e0fd0363ff25b5f7620f08a1ac69fedaa266d11fc29d829
|
|
| MD5 |
961ae1d6e3a9b7195b13e8fcbc9d220e
|
|
| BLAKE2b-256 |
21b4e2a30b63922e4cd8566f995e317da2731361c8c18e0a3d2c94f7da763b81
|