semvec/pypi-packages huggingface dataset:
cap-gen 0.1.0
🚀 Lightweight Captcha Generator for 🐍 Python
License: MIT
Requires Python: >=3.9.0
Keywords: captcha, telegram, authentication, auth, python, bot, security, rust

# Captcha Generator

## Example

```python
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)
```