CaptchaGenerator 2.0.0
Fast, modular CAPTCHA generation for Python with 26 ready-to-use challenges.
Documentation · Examples · Release 2.0.0
Install
pip install CaptchaGenerator
Audio support:
pip install "CaptchaGenerator[audio]"
Quick Start
from CaptchaGenerator import CaptchaConfig, TextCaptcha
config = CaptchaConfig(width=720, height=240, random_seed=42)
answer = TextCaptcha(config).generate(
number_gen=6,
values_captcha="ABCDEFGHJKLMNPQRSTUVWXYZ23456789",
name_export="captcha",
path_export="./output",
fonts=[],
colors=["navy", "darkred"],
backgrounds=[],
difficulty="medium",
style="modern",
)
print(answer)
Included CAPTCHAs
- Text: text, random text, words and missing characters
- Logic: math, sequences, custom questions and visual logic
- Images: grids, rotation, direction, upside-down objects and click points
- Puzzles: sliders, irregular pieces, patterns and mazes
- Visual: clocks, colors, shapes, odd-one-out and 3D perspective
- Media: animated and audio CAPTCHA
All generators are available through CaptchaGenerator.SUPPORTED_CAPTCHAS.
Customization
Use CaptchaConfig to control dimensions, colors, fonts, output format,
quality, accessibility text, random seed and render hooks.
Visual challenges return a ChallengeResult containing:
path- generated imageanswer- expected answer; keep it server-sideprompt- user instructionmetadata- integration dataaccessibility_text- accessible description
Examples
Each CAPTCHA has standalone simple and Tkinter examples:
Examples/CaptchaExamples/<CaptchaName>/
simple.py
interactive.py
Security
Never expose answers, target coordinates or puzzle solutions to an untrusted client. Validate responses on the server.
License
MIT
Metadata
Release files for CaptchaGenerator 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| captchagenerator-2.0.0.tar.gz | 51.7 kB | Without provenance | Details for captchagenerator-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| captchagenerator-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for captchagenerator-2.0.0-py3-none-any.whl |
Total release size: 98.1 kB
Release files / captchagenerator-2.0.0.tar.gz
| Download URL | captchagenerator-2.0.0.tar.gz |
|---|---|
| Size | 51.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d8ae46ab2f242b6d06703c8c8e8610bff96a039582882b302258d9137d1511e
|
|
BLAKE2b-256 checksum How to use checksums |
187c757d7c143656a3d91c1cf6665a5a4388b957f63c6bbd39c19737efc30db2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / captchagenerator-2.0.0-py3-none-any.whl
| Download URL | captchagenerator-2.0.0-py3-none-any.whl |
|---|---|
| Size | 46.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e260f0a83a4b49ca923aa87e606bea9762c3f0d7cb0d33391877386f0d2a17c0
|
|
BLAKE2b-256 checksum How to use checksums |
5c82cea7c1c7d2af72c766c14602317a001782ad1f948370a212d49fe87cf308
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for CaptchaGenerator 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.