Metadata-Version: 2.4
Name: InnoCaptcha
Version: 1.0.0
Summary: A professional, pluggable CAPTCHA library with image, math, and custom challenge types, token-based security, and multiple storage backends.
Home-page: https://www.midoghanam.site/
Author: InnoSoft Company
Author-email: InnoSoft Company <midoghanam@hotmail.com>
License: MIT License
        
        Copyright (c) 2026 InnoSoft
        CEO & Founder: Mohamed Ahmed Ghanam
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Source Code, https://github.com/InnoSoft-Company/InnoCaptcha
Project-URL: Bug Tracker, https://github.com/InnoSoft-Company/InnoCaptcha/issues
Project-URL: Documentation, https://github.com/InnoSoft-Company/InnoCaptcha#readme
Keywords: captcha,image,security,bot-protection,text-captcha,math-captcha,plugin
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Multimedia :: Graphics
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Pillow>=10.0.0
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# InnoCaptcha

---

## 🚀 Project Identity & Versioning
| Badge Type | Markdown Code |
| :--- | :--- |
| **PyPI Version** | [![PyPI Version](https://img.shields.io/pypi/v/InnoCaptcha.svg)](https://pypi.org/project/InnoCaptcha/) |
| **GitHub Release** | [![GitHub Release](https://img.shields.io/github/v/release/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/releases) |
| **GitHub Tag** | [![GitHub Tag](https://img.shields.io/github/v/tag/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/tags) |
| **License** | [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/InnoSoft-Company/InnoCaptcha/blob/main/LICENSE) |
| **PyPI Status** | [![PyPI Status](https://img.shields.io/pypi/status/InnoCaptcha.svg)](https://pypi.org/project/InnoCaptcha/)
---

## 📊 Stats & Downloads
| Badge Type | Markdown Code |
| :--- | :--- |
| **Total Downloads (Pepy)** | [![Total Downloads](https://static.pepy.tech/personalized-badge/InnoCaptcha?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/InnoCaptcha) |
| **Monthly Downloads (Pepy)** | [![Monthly Downloads](https://static.pepy.tech/personalized-badge/InnoCaptcha?period=monthly&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/project/InnoCaptcha) |
| **Weekly Downloads (Pepy)** | [![Weekly Downloads](https://static.pepy.tech/personalized-badge/InnoCaptcha?period=weekly&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/project/InnoCaptcha) |
| **PyPI Downloads (Daily)** | [![PyPI Downloads](https://img.shields.io/pypi/dd/InnoCaptcha)](https://pypi.org/project/InnoCaptcha/) |
| **PyPI Downloads (Weekly)** | [![PyPI Downloads](https://img.shields.io/pypi/dw/InnoCaptcha)](https://pypi.org/project/InnoCaptcha/) |
| **PyPI Downloads (Monthly)** | [![PyPI Downloads](https://img.shields.io/pypi/dm/InnoCaptcha)](https://pypi.org/project/InnoCaptcha/) |

---

## 🛠️ Activity & Development
| Badge Type | Markdown Code |
| :--- | :--- |
| **Last Commit** | [![GitHub last commit](https://img.shields.io/github/last-commit/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/commits/main) |
| **Commit Activity (Yearly)** | [![GitHub commit activity](https://img.shields.io/github/commit-activity/y/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/graphs/commit-activity) |
| **Contributors** | [![GitHub contributors](https://img.shields.io/github/contributors/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/graphs/contributors) |
| **Repo Size** | [![GitHub repo size](https://img.shields.io/github/repo-size/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha) |
| **Code Size** | [![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha) |
| **Top Language** | [![GitHub top language](https://img.shields.io/github/languages/top/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha) |
| **Language Count** | [![GitHub language count](https://img.shields.io/github/languages/count/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha) |

---

## ✨ Quality & Testing
| Badge Type | Markdown Code |
| :--- | :--- |
| **Build Status** | [![Build Status](https://github.com/InnoSoft-Company/InnoCaptcha/actions/workflows/python-package.yml/badge.svg)](https://github.com/InnoSoft-Company/InnoCaptcha/actions) |
| **Coverage** | [![Coverage](https://img.shields.io/codecov/c/github/InnoSoft-Company/InnoCaptcha)](https://codecov.io/gh/InnoSoft-Company/InnoCaptcha) |
| **Code Quality** | [![Code Quality](https://img.shields.io/lgtm/grade/python/g/InnoSoft-Company/InnoCaptcha)](https://lgtm.com/projects/g/InnoSoft-Company/InnoCaptcha) |
| **Typing** | [![Typing](https://img.shields.io/badge/typing-strict-brightgreen)](https://github.com/InnoSoft-Company/InnoCaptcha) |
| **PyPI Types** | [![PyPI - Types](https://img.shields.io/pypi/types/InnoCaptcha)](https://pypi.org/project/InnoCaptcha/) |

---

## 🐍 Environment & Compatibility
| Badge Type | Markdown Code |
| :--- | :--- |
| **Python Versions** | [![Python Versions](https://img.shields.io/pypi/pyversions/InnoCaptcha.svg)](https://pypi.org/project/InnoCaptcha/) |
| **PyPI Implementation** | [![PyPI Implementation](https://img.shields.io/pypi/implementation/InnoCaptcha)](https://pypi.org/project/InnoCaptcha/) |
| **PyPI Wheel** | [![PyPI Wheel](https://img.shields.io/pypi/wheel/InnoCaptcha)](https://pypi.org/project/InnoCaptcha/) |
| **PyPI Format** | [![PyPI Format](https://img.shields.io/pypi/format/InnoCaptcha)](https://pypi.org/project/InnoCaptcha/) |

---

## 🤝 Community & Social
| Badge Type | Markdown Code |
| :--- | :--- |
| **GitHub Stars** | [![GitHub stars](https://img.shields.io/github/stars/InnoSoft-Company/InnoCaptcha?style=social)](https://github.com/InnoSoft-Company/InnoCaptcha) |
| **GitHub Forks** | [![GitHub forks](https://img.shields.io/github/forks/InnoSoft-Company/InnoCaptcha?style=social)](https://github.com/InnoSoft-Company/InnoCaptcha) |
| **GitHub Watchers** | [![GitHub watchers](https://img.shields.io/github/watchers/InnoSoft-Company/InnoCaptcha?style=social)](https://github.com/InnoSoft-Company/InnoCaptcha) |
| **GitHub Followers** | [![GitHub followers](https://img.shields.io/github/followers/InnoSoft-Company?style=social)](https://github.com/InnoSoft-Company) |
| **GitHub Discussions** | [![GitHub Discussions](https://img.shields.io/github/discussions/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/discussions) |

---

## 🛠️ Support & Maintenance
| Badge Type | Markdown Code |
| :--- | :--- |
| **Open Issues** | [![GitHub issues](https://img.shields.io/github/issues/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/issues) |
| **Closed Issues** | [![GitHub issues-closed](https://img.shields.io/github/issues-closed/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/issues?q=is%3Aissue+is%3Aclosed) |
| **Open PRs** | [![GitHub pull requests](https://img.shields.io/github/issues-pr/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/pulls) |
| **Closed PRs** | [![GitHub pull requests-closed](https://img.shields.io/github/issues-pr-closed/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/pulls?q=is%3Apr+is%3Aclosed) |
| **Milestones** | [![GitHub milestones](https://img.shields.io/github/milestones/open/InnoSoft-Company/InnoCaptcha)](https://github.com/InnoSoft-Company/InnoCaptcha/milestones) |

Structured Egyptian geographical and timezone data for Python.

Provides a complete, offline dataset of Egyptian governorates, cities, landline and mobile area codes, and timezone utilities — with zero dependencies (uses Python standard library only).

[View on GitHub](https://github.com/InnoSoft-Company/InnoCaptcha) | [View on PyPI](https://pypi.org/project/InnoCaptcha/)

---

## Installation

```bash
pip install InnoCaptcha
```

Quick Start

Image CAPTCHA Generation

Generate custom image-based CAPTCHA with configurable text, colors, and image dimensions.

```python
from InnoCaptcha.image import ImageCaptcha

# Generate a simple CAPTCHA and save it to the current directory
img = ImageCaptcha()
img.create("abs")
print(img.verify("abs"))  # True
img.save(r"C:\path\to\image\captcha.png")

# Use custom attributes
img = ImageCaptcha(
    width=350, 
    height=100, 
    color=(255, 137, 6), 
    background=(15, 14, 23)
)
img.create("abc123")
print(img.verify("asd"))  # False
img.save(r"C:\path\to\image\captcha.jpg")
```

---

ImageCaptcha()

Parameter Type Default Description:
- chars str required The text to render in the CAPTCHA image.
- path str Directory where the image will be saved. If None, returns an error.
- format str 'png' Image format (default).
- background tuple of 3 int (RGB) or None white color Background color.
- color tuple of 3 int (RGB) or None black color Foreground (text) color.
- width int or None 300 Image width in pixels. If None, uses default (300).
- height int or None 80 Image height in pixels. If None, uses default (80).

---

Notes

· All CAPTCHA images include random distortions (curve, dots) and anti‑aliasing for better security.
· The module uses secrets for cryptographically strong randomness.
· For advanced customization, you can fine‑tune the rendering behavior using module-level constants such as `CHARACTER_OFFSET_DX`, `WORD_SPACE_PROBABILITY`, and others.
---

Requirements

· Python 3.9 or later.
· Pillow >= 10.0.0

---

License

MIT - InnoSoft Company

```
