Metadata-Version: 2.4
Name: CodigoAS-librery
Version: 0.3.0
Summary: A Security First Python library to generate web components and security utilities with zero external dependencies
Author-email: Ahmed Smaili <codigoas0@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Ahmed Smaili
        
        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: Homepage, https://github.com/cd7396215-sys/CodigoAS-librery
Project-URL: Repository, https://github.com/cd7396215-sys/CodigoAS-librery
Project-URL: Issues, https://github.com/cd7396215-sys/CodigoAS-librery/issues
Keywords: security,web,html,components,hashing,validation,xss,tls
Classifier: Development Status :: 3 - Alpha
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.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 🛡️ CodigoAS-librery

A **"Security First" Python library** to generate web components and security utilities with **zero external dependencies**.

Designed for developers who want to build secure websites and validate data using **pure Python only**.

---

## ✨ Features

- 🎨 **HTML Generation** — Create divs, cards, navbars, forms, and complete pages from Python.
- 🔐 **Security** — Salted hashing, password generation, XSS sanitization, SQL cleaning, and header/TLS auditing.
- 📝 **Text Manipulation** — Slugs, reading time, email and URL extraction with regex.
- ✅ **Validation** — Phone numbers, currency, credit cards (Luhn), and relative dates.
- 🎨 **Data & Colors** — RGB/Hex conversion, JSON handling, and list flattening.
- 🚫 **Zero Dependencies** — Standard Python 3.7+ library only.

---

## 📦 Installation

```bash
pip install CodigoAS-librery
```

---

## 🚀 Quick Start

```python
from codigoas_librery import create_card, generate_password, create_html_page

# Generate a secure password
password = generate_password(20)
print(password)  # aK9$mP2xLq...

# Create web components with Python
card = create_card("Cybersecurity", "Security First protection")

# Create a complete HTML page
page = create_html_page("My Website", card)

with open("index.html", "w", encoding="utf-8") as f:
    f.write(page)

print("Website created!")
```

---

## 🔐 Security Example

```python
from codigoas_librery import scan_headers, verify_tls, sanitize_xss

# Audit security headers of a website
result = scan_headers("https://example.com")
print(result)

# Verify TLS certificate
tls = verify_tls("example.com")
print(tls)

# Sanitize input against XSS
safe = sanitize_xss("<script>alert('hack')</script>")
print(safe)
```

---

## 📚 Function Categories

| Category | Functions | Description |
|----------|-----------|-------------|
| HTML | 15 | Web component generation |
| Security | 15 | Hashing, XSS, auditing, TLS |
| Text | 12 | Slugs, regex, formatting |
| Validation | 10 | Phones, cards, currency |
| Data/Colors | 8 | JSON, RGB/Hex, lists |

**Total: 60 pure Python functions** 🐍

---

## 📄 License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

---

## 🤝 Contributing

Contributions are welcome! Feel free to open an *issue* or submit a *pull request*.

---

Made with 🛡️ by **Ahmed Smaili — Codigo AS**
