# 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)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "cap-gen",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9.0",
"maintainer_email": null,
"keywords": "captcha, telegram, authentication, auth, python, bot, security, rust",
"author": null,
"author_email": "vffuunnyy <vffuunnyy@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/08/14/48909002372c6712b91b69455ba55d54bb98fe99f0708e6b89c3dcce741a/cap_gen-0.1.0.tar.gz",
"platform": null,
"description": "# Captcha Generator\n\n## Example\n\n```python\nfrom pathlib import Path\n\nfrom cap_gen import CaptchaGenerator\n\n\nemojis = Path(\"./emojis\")\ngenerator = CaptchaGenerator(emojis, \"png\")\nres = generator.generate(5, 10)\n\nprint(f\"Correct Emoji: {res.correct_emoji}\")\nprint(f\"Emojis on Image: {res.image_emojis}\")\nprint(f\"Emoji Options: {res.keyboard_emojis}\")\n\nPath(\"captcha.png\").write_bytes(res.image)\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "\ud83d\ude80 Lightweight Captcha Generator for \ud83d\udc0d Python",
"version": "0.1.0",
"project_urls": {
"Documentation": "https://github.com/vffuunnyy/captcha_generator/",
"Homepage": "https://github.com/vffuunnyy/captcha_generator/",
"Issues": "https://github.com/vffuunnyy/captcha_generator/issues",
"Repository": "https://github.com/vffuunnyy/captcha_generator.git"
},
"split_keywords": [
"captcha",
" telegram",
" authentication",
" auth",
" python",
" bot",
" security",
" rust"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "09833aeedc8f105367139f9e5d1bde9e454c6bf07cc7c95bbb2c500d29a41b74",
"md5": "1e990fca3b6c86ef1123b5baac177d3b",
"sha256": "d0c89f42b7c88fbece98e81f48df26d2d72cec732081a94a6fd610e6265f71cd"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp310-cp310-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "1e990fca3b6c86ef1123b5baac177d3b",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9.0",
"size": 683663,
"upload_time": "2024-09-23T15:09:39",
"upload_time_iso_8601": "2024-09-23T15:09:39.989939Z",
"url": "https://files.pythonhosted.org/packages/09/83/3aeedc8f105367139f9e5d1bde9e454c6bf07cc7c95bbb2c500d29a41b74/cap_gen-0.1.0-cp310-cp310-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e0a211d3e3aa3c7f672390c853723733c40490a8d2b1b733d1e17e2344f19a31",
"md5": "ca2296275046dba8e47a099ed775ace5",
"sha256": "5df29897935cede5e7bd7ca35581d5936091248fb8ec18bd6450a178574fa80b"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl",
"has_sig": false,
"md5_digest": "ca2296275046dba8e47a099ed775ace5",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9.0",
"size": 767975,
"upload_time": "2024-09-23T15:09:45",
"upload_time_iso_8601": "2024-09-23T15:09:45.811866Z",
"url": "https://files.pythonhosted.org/packages/e0/a2/11d3e3aa3c7f672390c853723733c40490a8d2b1b733d1e17e2344f19a31/cap_gen-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "18e3f62036ec564d413b921a085e5d17ac3d5019b6bec0ab5653aa80ff8e8bb3",
"md5": "2f8e5f87e1514e2c9f656f0d2b878024",
"sha256": "c024a087becc5944a446f24452e739512891e2a57c1b705f57e5406b68734fe1"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp310-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "2f8e5f87e1514e2c9f656f0d2b878024",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9.0",
"size": 652453,
"upload_time": "2024-09-23T15:09:51",
"upload_time_iso_8601": "2024-09-23T15:09:51.418273Z",
"url": "https://files.pythonhosted.org/packages/18/e3/f62036ec564d413b921a085e5d17ac3d5019b6bec0ab5653aa80ff8e8bb3/cap_gen-0.1.0-cp310-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d494a8a17edf8eaa4cc030a8fe20d21438ef5cd024fec23e62b726287e24556f",
"md5": "e639352212cd43f43bffdfbebe863796",
"sha256": "47f00c99702aad81cfb668b5347614c9895378f728817f87a19b87bbfda74843"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp311-cp311-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "e639352212cd43f43bffdfbebe863796",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9.0",
"size": 683641,
"upload_time": "2024-09-23T15:09:41",
"upload_time_iso_8601": "2024-09-23T15:09:41.723136Z",
"url": "https://files.pythonhosted.org/packages/d4/94/a8a17edf8eaa4cc030a8fe20d21438ef5cd024fec23e62b726287e24556f/cap_gen-0.1.0-cp311-cp311-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5a5397adb0a8796a058113f83489e81be027c5a9e6542bb67002a4af74ae2f40",
"md5": "6c8243eb370a1f058a3634af9e0a5a4d",
"sha256": "595783ac80d44c5a24e3dd082c8720796a1510c4eb213cc9498f660f06e08d45"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl",
"has_sig": false,
"md5_digest": "6c8243eb370a1f058a3634af9e0a5a4d",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9.0",
"size": 767778,
"upload_time": "2024-09-23T15:09:47",
"upload_time_iso_8601": "2024-09-23T15:09:47.600224Z",
"url": "https://files.pythonhosted.org/packages/5a/53/97adb0a8796a058113f83489e81be027c5a9e6542bb67002a4af74ae2f40/cap_gen-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "860c84b7d7b028007ecab9656cf0353bb3e6d438a1a9f0176de14fc944cf246e",
"md5": "02d58afb6aef7e24e139a237db3ac055",
"sha256": "3a0c4178d68d7618f17bdc9a6299b4934861557b3c02313ac8187c54d76b8512"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp311-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "02d58afb6aef7e24e139a237db3ac055",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9.0",
"size": 652329,
"upload_time": "2024-09-23T15:09:53",
"upload_time_iso_8601": "2024-09-23T15:09:53.150464Z",
"url": "https://files.pythonhosted.org/packages/86/0c/84b7d7b028007ecab9656cf0353bb3e6d438a1a9f0176de14fc944cf246e/cap_gen-0.1.0-cp311-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a1834948b28e88e0e08cfc519b4793c46118554e057a3534e7c7f455fa7231e6",
"md5": "8e8cac017acd8fb0ccd7ed32426dbfce",
"sha256": "be769a41b8f0dc6b1d868523f05f3a6e6e88510b4ee6d09a5101675c6511f629"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp312-cp312-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "8e8cac017acd8fb0ccd7ed32426dbfce",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9.0",
"size": 682682,
"upload_time": "2024-09-23T15:09:42",
"upload_time_iso_8601": "2024-09-23T15:09:42.840453Z",
"url": "https://files.pythonhosted.org/packages/a1/83/4948b28e88e0e08cfc519b4793c46118554e057a3534e7c7f455fa7231e6/cap_gen-0.1.0-cp312-cp312-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0b106476f54413464274d52942ea73ee7f078b3d8ffd18ac64ebba44dabaef85",
"md5": "006afbbfaf02a1874902c817ed68d932",
"sha256": "26f6998d65911d3dc9a2b2fea3942ff2bddaee135e240288c8e756075d2cbc95"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl",
"has_sig": false,
"md5_digest": "006afbbfaf02a1874902c817ed68d932",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9.0",
"size": 767062,
"upload_time": "2024-09-23T15:09:48",
"upload_time_iso_8601": "2024-09-23T15:09:48.953622Z",
"url": "https://files.pythonhosted.org/packages/0b/10/6476f54413464274d52942ea73ee7f078b3d8ffd18ac64ebba44dabaef85/cap_gen-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6039635db49851b37e9f2685f82f49649545166e40d69f693bf721e001d011ef",
"md5": "b01fca4b98178ac651e9e720a16131af",
"sha256": "cdc8ea89db84f9285ed8ab47d447e7cbcfecb034bd110c5ab1c9fa278568e9b5"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp312-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "b01fca4b98178ac651e9e720a16131af",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9.0",
"size": 651629,
"upload_time": "2024-09-23T15:09:55",
"upload_time_iso_8601": "2024-09-23T15:09:55.065705Z",
"url": "https://files.pythonhosted.org/packages/60/39/635db49851b37e9f2685f82f49649545166e40d69f693bf721e001d011ef/cap_gen-0.1.0-cp312-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "199d78af6ebb5b3b73ce851be1a2ed4a87adb25fe15198764d7174c3c9eecd41",
"md5": "d46b771c5f45c380e6f118de0ed9d814",
"sha256": "371fee17aa7717197ffbd5af86e19ebdd710ae9bfd247a7d146b5694fba972fc"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp39-cp39-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "d46b771c5f45c380e6f118de0ed9d814",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9.0",
"size": 683837,
"upload_time": "2024-09-23T15:09:44",
"upload_time_iso_8601": "2024-09-23T15:09:44.434253Z",
"url": "https://files.pythonhosted.org/packages/19/9d/78af6ebb5b3b73ce851be1a2ed4a87adb25fe15198764d7174c3c9eecd41/cap_gen-0.1.0-cp39-cp39-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "39335bcc44e5532cf146441b1b6e281000869258a4c5a37bcc2d5a31ba79d8f7",
"md5": "a69a0a3c78fe2c2fab21c9ea68181d57",
"sha256": "41c063e142ffa6cead97a5f3596b4a2b048bb8fa102c41d190e938e8bb4e39b9"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl",
"has_sig": false,
"md5_digest": "a69a0a3c78fe2c2fab21c9ea68181d57",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9.0",
"size": 768237,
"upload_time": "2024-09-23T15:09:50",
"upload_time_iso_8601": "2024-09-23T15:09:50.320307Z",
"url": "https://files.pythonhosted.org/packages/39/33/5bcc44e5532cf146441b1b6e281000869258a4c5a37bcc2d5a31ba79d8f7/cap_gen-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3197c5e2401007731ed9a45db2ec45ad4f5b2f09e7448ca71c682b8935081c4c",
"md5": "7024bc6593b2470b24ccf59b3eb50a6f",
"sha256": "a80a672f37707e36e10870fbcef2ff5257d7e298448ab747fc04ac13c1217b2c"
},
"downloads": -1,
"filename": "cap_gen-0.1.0-cp39-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "7024bc6593b2470b24ccf59b3eb50a6f",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9.0",
"size": 652726,
"upload_time": "2024-09-23T15:09:57",
"upload_time_iso_8601": "2024-09-23T15:09:57.371099Z",
"url": "https://files.pythonhosted.org/packages/31/97/c5e2401007731ed9a45db2ec45ad4f5b2f09e7448ca71c682b8935081c4c/cap_gen-0.1.0-cp39-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "081448909002372c6712b91b69455ba55d54bb98fe99f0708e6b89c3dcce741a",
"md5": "6f1fd525535aaba6e7a8548efeaa8984",
"sha256": "fc6ee576d4ec043453429000f32ed2fc7a88479fad708a3b2a85c7015f83ad59"
},
"downloads": -1,
"filename": "cap_gen-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "6f1fd525535aaba6e7a8548efeaa8984",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9.0",
"size": 40344,
"upload_time": "2024-09-23T15:09:58",
"upload_time_iso_8601": "2024-09-23T15:09:58.642551Z",
"url": "https://files.pythonhosted.org/packages/08/14/48909002372c6712b91b69455ba55d54bb98fe99f0708e6b89c3dcce741a/cap_gen-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-23 15:09:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "vffuunnyy",
"github_project": "captcha_generator",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cap-gen"
}