Skip to main content

🚀 Lightweight Captcha Generator for 🐍 Python

Project description

Captcha Generator

Example

from pathlib import Path

from cap_gen import CaptchaGenerator


emojis = Path("./emojis")
generator = CaptchaGenerator(emojis, "png")
res = generator.generate(5, 10)

print(f"Correct Emoji: {res.correct_emoji}")
print(f"Emojis on Image: {res.image_emojis}")
print(f"Emoji Options: {res.keyboard_emojis}")

Path("captcha.png").write_bytes(res.image)

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

cap_gen-0.1.0.tar.gz (40.3 kB view hashes)

Uploaded Source

Built Distributions

cap_gen-0.1.0-cp312-none-win_amd64.whl (651.6 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

cap_gen-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl (767.1 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

cap_gen-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (682.7 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

cap_gen-0.1.0-cp311-none-win_amd64.whl (652.3 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

cap_gen-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl (767.8 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

cap_gen-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (683.6 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

cap_gen-0.1.0-cp310-none-win_amd64.whl (652.5 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

cap_gen-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl (768.0 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

cap_gen-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (683.7 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

cap_gen-0.1.0-cp39-none-win_amd64.whl (652.7 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

cap_gen-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl (768.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.34+ x86-64

cap_gen-0.1.0-cp39-cp39-macosx_11_0_arm64.whl (683.8 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

Supported by

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