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.1.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.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prune_captcha-1.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 7585c3ea5b321b97603866b492186a538be5b2f1cf715509039e875f5ce7db62
MD5 c3189e69f0a1eb4100c0b10f7b4bfa63
BLAKE2b-256 59824a95051c41985c933b3944dabc1c1efa15e9d741847c62126ccffc1759de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prune_captcha-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b23065ac4ad395043316bf5aaef178568250fbffa4c690d79f8494e4c0c5fd56
MD5 96e402eed6ce6b6b1b895b7fac261189
BLAKE2b-256 9164c3100b78314bdc3738131682e0f2f4d7c0bab7fd055680b6bb3ce8345261

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