Skip to main content

Simple but customize captcha generator( image + voice )

Project description

DEMURE_CAPTCHA

Simple liight-weight package for generate image and auidio captcha

SUMMARY

Install

python3 -m pip install demure_captcha

Console

python3 -m demure_captcha --length 10 --useIntegers True --width 300 --height 300 --format file
# Created files with audio and video
>>> %AppData%\Local\Temp\0c7e4ddf-885b-4651-905e-b7efd758fc8d.png
>>> %AppData%\Local\Temp\0c7e4ddf-885b-4651-905e-b7efd758fc8d.mp3

python3 -m demure_captcha --length 10 --useIntegers True --width 300 --height 300 --format json
# Base64 strings
>>>{ "mp3": "rewwgwrrrwggrwrg...", "png": "wfweewggewegwg..." }

Pakage

from demure_captcha import generate

captcha = generate( width=300, height=300 )

captcha.image.show( )
print( captcha.save( ) )
print( captcha.save( 'tmp/captcha' ) )

Example captcha

mp3 png

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

demure_captcha-0.8.2.tar.gz (535.3 kB view hashes)

Uploaded Source

Built Distribution

demure_captcha-0.8.2-py3-none-any.whl (1.1 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page