BOOKPYTHON Telegram 3188
Библиотека captcha, генерирующая звуковые и графические CAPTCHA

Установка — pip install captcha


Аудио- и графические CAPTCHA находятся в отдельных модулях:


from captcha.audio import AudioCaptcha
from captcha.image import ImageCaptcha

audio = AudioCaptcha(voicedir='/path/to/voices')
image = ImageCaptcha(fonts=['/path/A.ttf', '/path/B.ttf'])

data = audio.generate('1234')
audio.write('1234', 'out.wav')

data = image.generate('1234')
image.write('1234', 'out.png')


https://github.com/lepture/captcha

👉@BookPython
👍3



tgoop.com/BookPython/3188
Create:
Last Update:

Библиотека captcha, генерирующая звуковые и графические CAPTCHA

Установка — pip install captcha


Аудио- и графические CAPTCHA находятся в отдельных модулях:


from captcha.audio import AudioCaptcha
from captcha.image import ImageCaptcha

audio = AudioCaptcha(voicedir='/path/to/voices')
image = ImageCaptcha(fonts=['/path/A.ttf', '/path/B.ttf'])

data = audio.generate('1234')
audio.write('1234', 'out.wav')

data = image.generate('1234')
image.write('1234', 'out.png')


https://github.com/lepture/captcha

👉@BookPython

BY Библиотека Python разработчика | Книги по питону




Share with your friend now:
tgoop.com/BookPython/3188

View MORE
Open in Telegram


Telegram News

Date: |

The Channel name and bio must be no more than 255 characters long 1What is Telegram Channels? Earlier, crypto enthusiasts had created a self-described “meme app” dubbed “gm” app wherein users would greet each other with “gm” or “good morning” messages. However, in September 2021, the gm app was down after a hacker reportedly gained access to the user data. 3How to create a Telegram channel? Channel login must contain 5-32 characters
from us


Telegram Библиотека Python разработчика | Книги по питону
FROM American