Metadata-Version: 2.4
Name: python-input-validation
Version: 0.1.0
Summary: Business-level input validation and sanitization for Python applications
Author-email: GridFlow Team <vialogue@proton.me>
License: MIT
Project-URL: Homepage, https://github.com/firstunicorn/python-web-toolkit
Project-URL: Repository, https://github.com/firstunicorn/python-web-toolkit
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: hypothesis>=6.92.0; extra == "dev"

# python-input-validation

Business-level input validation and sanitization for Python applications.

## Installation

```bash
pip install python-input-validation
```

## Usage

```python
from python_input_validation import (
    validate_email_format,
    validate_string_length,
    sanitize_email,
    sanitize_text_input
)

# Validate email
is_valid = validate_email_format("user@example.com")  # True

# Validate length
is_valid = validate_string_length("hello", min_length=3, max_length=10)  # True

# Sanitize email
clean_email = sanitize_email("  USER@EXAMPLE.COM  ")  # "user@example.com"

# Sanitize text
clean_text = sanitize_text_input("  hello world  ", max_length=10)  # "hello worl"
```

## Features

- ✅ Email validation
- ✅ Length validation
- ✅ Email sanitization
- ✅ Text sanitization
- ✅ Zero dependencies
- ✅ Framework-agnostic

## License

MIT






