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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file demure_captcha-0.8.2.tar.gz.

File metadata

  • Download URL: demure_captcha-0.8.2.tar.gz
  • Upload date:
  • Size: 535.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.1

File hashes

Hashes for demure_captcha-0.8.2.tar.gz
Algorithm Hash digest
SHA256 a97790be2d07c94531eeeae5a3b5ebdc8a66ebe4cf895241820ec49317ca92b0
MD5 f32e61a826366c3adaf2977c5db75bd1
BLAKE2b-256 1f11fba57c7d28dae930bea152990c0878abd83f8649ce0eb051b5db245fbeb8

See more details on using hashes here.

File details

Details for the file demure_captcha-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: demure_captcha-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.1

File hashes

Hashes for demure_captcha-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 00c81a1444e941d4fc94f2ffbc2951a662c698e5569b3a1565ae09102803ccb6
MD5 9a0519f906c3a23690f36f3fe85dce53
BLAKE2b-256 f7f255e0ed1b04348c99cf2edee63d2eebbc1adb4480f37650d8890278aea8ce

See more details on using hashes here.

Supported by

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