# lepture/captcha

A captcha library that generates audio and image CAPTCHAs.

Repository: https://github.com/lepture/captcha
Canonical: https://ross.abutalabs.com/products/lepture-captcha
Homepage: https://captcha.lepture.com/
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: captcha
Last push: 2025-10-21T06:24:16+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 48, release rhythm 40, longevity 100
- inputs: {"age_days": 4299, "days_push": 316, "days_rel": 550, "gap_med": 8, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1102, forks 188 (observed 2026-08-28T04:03:35.919506+00:00)

## What it is
A Python library that generates image and audio CAPTCHAs with customizable fonts, colors, and voice data. It provides simple APIs (ImageCaptcha and AudioCaptcha) to generate and write CAPTCHA challenges as PNG and WAV files.

## Use cases
- generate image captchas for a web form
- generate audio captchas for accessibility
- create captcha challenges with custom fonts
- add bot protection to a signup page
- generate captcha images with custom colors
- generate wav audio captcha from custom voice data

## When to choose
- you need a lightweight Python library to generate image or audio CAPTCHAs
- you want customizable fonts, colors, or voice data for CAPTCHAs
- you need an accessible audio CAPTCHA option

## When to avoid
- you need a full anti-bot service with behavioral analysis or managed challenges
- you want modern alternatives like hCaptcha, reCAPTCHA, or proof-of-work challenges
- your stack is not Python

## Facets
- artifact type: library
- maturity: stable
- function: security, image-processing, audio-processing
- domain: security, web-development
- platform: python, cross-platform
- tags: captcha, captcha-generation, bot-protection, audio-captcha, image-captcha

## Member repositories
- lepture/captcha (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:35.919506+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:45:38.577120+00:00, confidence not recorded.
  - readme: https://github.com/lepture/captcha (fetched 2026-08-28T04:03:35.919506+00:00, sha 34dd7fe4d95b)
  - homepage: https://captcha.lepture.com/ (fetched 2026-08-29T12:48:48.738833+00:00, sha cf49c0bb8677)
  - registry_pypi: https://pypi.org/pypi/captcha/json (fetched 2026-08-29T12:48:48.749490+00:00, sha 38fe16ccaa4b)
  - site_page: https://captcha.lepture.com/changelog (fetched 2026-08-29T12:48:48.747726+00:00, sha af1ab1498c60)
- Data as of 2026-08-30T08:39:29.467469+00:00.
