clockcaptcha
Dynamically generated, AI-resistant captcha images.
Can you tell what time it is? AI can't.
Features:
- dynamically generated images
- rgb and grayscale color mode
- 12-hour and 24-hour clock mode
- custom colors
Installation
pip install clockcaptcha
Usage
from clockcaptcha import ClockCaptcha
captcha = ClockCaptcha()
print(captcha.value)
captcha.verify('0645') # True/False
captcha.save_image('image.png')
# generate new captcha
captcha.generate_new()
Choose between color_mode='rgb' (color-captcha.png)
or 'grayscale' (grayscale-captcha.png).
Pick between a 12-hour or a 24-hour clock_mode.
from clockcaptcha import ClockCaptcha
captcha = ClockCaptcha(clock_mode=12)
Image size can be changed with relative size parameter. Here are corresponding pixel values.
| size | width | height |
|---|---|---|
| 1 | 190 | 65 |
| 2 | 380 | 130 |
| 3 | 570 | 195 |
| 4 | 760 | 260 |
| ... | ... | ... |
Change colors globally:
from clockcaptcha import ClockCaptcha
ClockCaptcha.set_colors([
'#FFFFFF',
'#000000',
'#999999'
])
Metadata
Release files for clockcaptcha 0.1.3
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 |
|---|---|---|---|---|
| clockcaptcha-0.1.3.tar.gz | 23.8 kB | Without provenance | Details for clockcaptcha-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clockcaptcha-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for clockcaptcha-0.1.3-py3-none-any.whl |
Total release size: 30.0 kB
Release files / clockcaptcha-0.1.3.tar.gz
| Download URL | clockcaptcha-0.1.3.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6eec9394086268c0d900fd804aea4d48e2443b749a30bf79b41cfed15d43b2b
|
|
BLAKE2b-256 checksum How to use checksums |
c20558bc580262d416b06f40cbf0cbaf5997dca48a50bd3f347d2e5d7ab59f1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / clockcaptcha-0.1.3-py3-none-any.whl
| Download URL | clockcaptcha-0.1.3-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a15f70b1941ef5aaf3cac2878e0947f3d35b26ddb6ecd25f7cbf8b635b893d5
|
|
BLAKE2b-256 checksum How to use checksums |
ec97763b26c15329b17a4b28d7e0979a2b9e4d99b829b5b2f8e94340eb3b951f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for clockcaptcha 0.1.3
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.