Skip to content

Migration to 2.0

Sepehr0Day edited this page Jun 13, 2026 · 1 revision

Migration to 2.0

Version 2.0 replaces the legacy single-module package with modular generators.

Imports

Use:

from CaptchaGenerator import CaptchaConfig, TextCaptcha

Do not import from the removed legacy CaptchaGenerator.CaptchaGenerator module.

Results

Visual challenges return ChallengeResult instead of unrelated tuples. Access result.path, result.answer, result.prompt and result.metadata.

Resources

The old resource pack is no longer distributed. Supply your own fonts, backgrounds, image sets and word lists, or use generator defaults.

Examples

Telegram-specific examples were replaced by framework-neutral simple and Tkinter examples under Examples/CaptchaExamples.

Clone this wiki locally