Metadata-Version: 2.2
Name: vtb-object-bleach
Version: 0.6.0
Summary: A Python package for validating structured objects with security scanning
Home-page: https://github.com/vtb-wanderers63/py-object-bleach
Author: VTB Wanderer DG
Author-email: vtb.wanderers63@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-python
Dynamic: summary

# MyValidator

A Python package for validating structured objects and preventing security threats.

## Installation

```bash
pip install vtb_object_bleach
```

## Usage

```python
from vtb_object_bleach import Validator

schema = {
    "name": "string",
    "email": "string",
    "age": "int",
    "password": "string",
    "date": "date",
    "balance": "float"
}

validator = Validator(schema)
user_input = {
    "name": "Alice",
    "email": "alice@example.com",
    "age": 25,
    "password": "StrongPass@123",
    "date": "2024-02-07",
    "balance": 150.75
}

validator.validate(user_input)
```

## Features

- **Schema-based validation**: Ensure input objects match a defined schema.
- **Security threat detection**: Detects SQL injection and XSS attempts.
- **Email format validation**: Ensures correct email structure.
- **Password strength validation**: Enforces password complexity rules.
- **Logging support**: Logs security threats for better monitoring.
- **Performance optimizations**: Uses compiled regex for efficiency.

## Running Tests

To run tests, use:

```bash
python -m unittest discover tests
```

## License

MIT License. See `LICENSE` file for details.
