MyGit

lepture/captcha

Fork: 185 Star: 1001 (更新于 2024-08-30 16:00:48)

license: BSD-3-Clause

Language: Python .

A captcha library that generates audio and image CAPTCHAs.

最后发布版本: v0.6.0 ( 2024-07-18 21:40:52)

官方网址 GitHub网址

Captcha

A captcha library that generates audio and image CAPTCHAs.

Features

  1. Audio CAPTCHAs
  2. Image CAPTCHAs

Installation

Install captcha with pip::

$ pip install captcha

Usage

Audio and Image CAPTCHAs are in separated modules:

.. code-block:: python

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

This is the APIs for your daily works. We do have built-in voice data and font data. But it is suggested that you use your own voice and font data.

Useful Links

  1. GitHub: https://github.com/lepture/captcha
  2. Docs: https://captcha.lepture.com/

License

Licensed under BSD. Please see LICENSE for licensing details.

最近版本更新:(数据更新于 2024-08-04 18:20:28)

2024-07-18 21:40:52 v0.6.0

2023-07-29 09:47:38 v0.5.0

2014-11-27 15:59:23 v0.1-beta

主题(topics):

captcha

lepture/captcha同语言 Python最近更新仓库

2024-09-18 18:07:12 jxxghp/MoviePilot

2024-09-18 17:54:43 ultralytics/ultralytics

2024-09-18 08:08:50 mvdctop/Movie_Data_Capture

2024-09-17 21:01:45 Zipstack/unstract

2024-09-17 20:13:22 linruowuyin/Fhoe-Rail

2024-09-17 15:04:22 mikumifa/biliTickerBuy