A captcha library that generates audio and image CAPTCHAs.
Project description
A captcha library that generates audio and image CAPTCHAs.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file captcha-0.7.1.tar.gz.
File metadata
- Download URL: captcha-0.7.1.tar.gz
- Upload date:
- Size: 226.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1b462bcc633a64d8db5efa7754548a877c698d98f87716c620a707364cabd6b
|
|
| MD5 |
f890dcca752b1baa0c3d22c4d15e10a9
|
|
| BLAKE2b-256 |
b4658e186bb798f33ba390eab897c995b0fcee92bc030e0f40cb8ea01f34dd07
|
Provenance
The following attestation bundles were made for captcha-0.7.1.tar.gz:
Publisher:
pypi.yml on lepture/captcha
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
captcha-0.7.1.tar.gz -
Subject digest:
a1b462bcc633a64d8db5efa7754548a877c698d98f87716c620a707364cabd6b - Sigstore transparency entry: 175675517
- Sigstore integration time:
-
Permalink:
lepture/captcha@6920752465227e38a52c10d74502e1dd1287cbcc -
Branch / Tag:
refs/tags/v0.7.1 - Owner: https://github.com/lepture
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@6920752465227e38a52c10d74502e1dd1287cbcc -
Trigger Event:
push
-
Statement type:
File details
Details for the file captcha-0.7.1-py3-none-any.whl.
File metadata
- Download URL: captcha-0.7.1-py3-none-any.whl
- Upload date:
- Size: 147.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b73b5aba841ad1e5bdb856205bf5f09560b728ee890eb9dae42901219c8c599
|
|
| MD5 |
e66b8c1222705b7eb029080a397b637b
|
|
| BLAKE2b-256 |
daff3f0982ecd37c2d6a7266c22e7ea2e47d0773fe449984184c5316459d2776
|
Provenance
The following attestation bundles were made for captcha-0.7.1-py3-none-any.whl:
Publisher:
pypi.yml on lepture/captcha
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
captcha-0.7.1-py3-none-any.whl -
Subject digest:
8b73b5aba841ad1e5bdb856205bf5f09560b728ee890eb9dae42901219c8c599 - Sigstore transparency entry: 175675520
- Sigstore integration time:
-
Permalink:
lepture/captcha@6920752465227e38a52c10d74502e1dd1287cbcc -
Branch / Tag:
refs/tags/v0.7.1 - Owner: https://github.com/lepture
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@6920752465227e38a52c10d74502e1dd1287cbcc -
Trigger Event:
push
-
Statement type: