Captcha
A captcha library that generates audio and image CAPTCHAs.
a fork of <https://github.com/lepture/captcha> with support of a lot more data
Features
Audio CAPTCHAs
Image CAPTCHAs
Installation
Install captcha with pip:
$ pip install captcha
Usage
Audio and Image CAPTCHAs are in separated modules:
from captcha.audio import AudioCaptcha
from captcha.image import ImageCaptcha
audio = AudioCaptcha(voicedir='/path/to/voices')
image = ImageCaptcha(fonts=['/path/A.ttf', '/path/B.ttf'])
data = audio.generate('1234')
audio.write('1234', 'out.wav')
data = image.generate('1234')
image.write('1234', 'out.png')
This is the APIs for your daily works. We do have built-in voice data and font data. But it is suggested that you use your own voice and font data.
Useful Links
License
Licensed under BSD. Please see LICENSE for licensing details.
Metadata
Release files for more-captcha 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| more_captcha-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for more_captcha-1.1.0-py3-none-any.whl |
Release files / more_captcha-1.1.0-py3-none-any.whl
| Download URL | more_captcha-1.1.0-py3-none-any.whl |
|---|---|
| Size | 592.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41bfba7c0849846426d959ad2cbd7de2e19676bcba26a274843abb8d36903f99
|
|
BLAKE2b-256 checksum How to use checksums |
a62a0c21a82f6a5736b8dc713c21cc650e75587f17c5ef6f4110af5e8df5c977
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.9
|
Security for more-captcha 1.1.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.