Skip to content

Simple but customize captcha generator( image + voice )

License

Notifications You must be signed in to change notification settings

grdvsng/demure_captcha

Repository files navigation

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

About

Simple but customize captcha generator( image + voice )

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages