Skip to main content

A tool to protect formulaire from spam.

Project description

Prune's Captcha

What is it for?

Captcha helps prevent robots from spamming using your forms.

Prerequisites

  • To be installed on a Prune Django project that uses poetry or UV

UV project

Installation

Run the following command in the console:

uv add captcha_prune

Running the captcha

To run the package, simply enter in the console:

captcha_prune

Updating the captcha

Don't hesitate to regularly run uv sync --upgrade, as the captcha evolves with time and our practices!

Poetry project

Installation

Run the following command:

poetry add prune_captcha

Running the captcha

poetry run prune_captcha

Updating the captcha

Don't hesitate to regularly run poetry update, as the captcha evolves with time and our practices!

Captcha Integration

Once the project is launched, the application's URLs need to be linked to the form.

  • When making a GET request to the form page, the API must be called via the creation endpoint. The response will contain the necessary information to display the captcha.
  • When submitting the form via POST, the API must be called via the verification endpoint. The response will indicate whether the captcha is valid or not.

Captcha Display

To display the captcha correctly, use the data received in the response from the creation request. This data includes:

  • the captcha's width and height,
  • the piece's width and height,
  • the current position of the piece,
  • the target position (where the piece should be placed),
  • the expected precision (captcha difficulty level).

Available Versions

Version Date Notes
1.0.0 2025-03-14 First version of the captcha package

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prune_captcha-1.2.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prune_captcha-1.2.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file prune_captcha-1.2.0.tar.gz.

File metadata

  • Download URL: prune_captcha-1.2.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.31

File hashes

Hashes for prune_captcha-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a250202f404687815f2b725e6f1efd8e61dd3e3ff799d8c1577d019b4c436261
MD5 0dd0f1893171b7fe64fcea2bf5d8de06
BLAKE2b-256 0215f967209ff7020a42df4515ddab0285f7aa40d781e3a5cf8a233e648676a8

See more details on using hashes here.

File details

Details for the file prune_captcha-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for prune_captcha-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce29b8e9e4f50c1f1427792d69e27b13c43da06e68112b884542dd740a612e9f
MD5 d1951cd0d134732c7bdae4f8da328163
BLAKE2b-256 8f44c7b4008ffbc6cc6716f24b0a06f54af3c8c755b1230726f3c8ff463d6fab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page