Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 896 Bytes

File metadata and controls

32 lines (28 loc) · 896 Bytes

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