Metadata-Version: 2.4
Name: eep-validator
Version: 0.1.0
Summary: SSRF prevention and payload validation for EEP publishers
License-Expression: Apache-2.0
Project-URL: Homepage, https://eep.dev
Project-URL: Source, https://github.com/eep-dev/EEP
Project-URL: Issues, https://github.com/eep-dev/EEP/issues
Project-URL: Documentation, https://github.com/eep-dev/EEP#readme
Project-URL: Changelog, https://github.com/eep-dev/EEP/blob/main/CHANGELOG.md
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
Dynamic: license-file

# eep-validator (Python)

Python port of [`@eep-dev/validator`](../../packages/@eep-dev/validator) — SSRF prevention and payload validation for EEP publishers.

## Install

```bash
pip install -e .
```

## Usage

```python
from eep_validator import validate_ssrf, SSRFError, matches_event_type

# SSRF prevention — call before any outbound request
try:
    await validate_ssrf(delivery_url)
except SSRFError as e:
    return {"error": str(e)}

# Event type matching
matches_event_type("com.example.entity.updated", "com.example.entity.*")  # True
```

## Tests

```bash
pip install -e ".[dev]"
pytest
```

## License

Apache-2.0
