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

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

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.3.0.tar.gz (7.5 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.3.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for prune_captcha-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e2a8953f26cc48710dbb02fac115208b45a9192613aa8a917716166ec1b072b7
MD5 527865690a2b2ea31afb3deafc7c6098
BLAKE2b-256 d8cf6c9bf495bf476370664f5989349447a2b4bda8d707ae82e964141ecdfa87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prune_captcha-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a27b04bbb7264edd964d7e80d4e3052d40ac6ff51084195151c1560efc391c7
MD5 94b38809ec870c13f80c97d0c72dfc27
BLAKE2b-256 1ef7cfa3b7ca351c7d48d4792f8bf9f65fcff4b970cc5165b86711eb3b7aa3c2

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