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.0.0.tar.gz (7.6 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.0.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for prune_captcha-1.0.0.tar.gz
Algorithm Hash digest
SHA256 74293ba3c675dfcb7f202d0ac84ab5f464a3a7c8b8b660730a7e32d967b01621
MD5 48ebb345d0a237146f2ab32b295ed75d
BLAKE2b-256 62d7145075d94605ad676e787a9b18a0b7b63112497faaf37c2b793f4255ea58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prune_captcha-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b19182fd9a476076af77bdc02346c27f547c2a3cf7c0045f6ab3c1ad6a3093c
MD5 50202891dfee302fd37888ea729beed8
BLAKE2b-256 9807aed6132da9c0b716884fe64a8c90a05c6c902e8e847b6092e80b5618c53a

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