https://github.com/aliakseiyafremau/validat
Data validation library
https://github.com/aliakseiyafremau/validat
library python validation
Last synced: 7 months ago
JSON representation
Data validation library
- Host: GitHub
- URL: https://github.com/aliakseiyafremau/validat
- Owner: AliakseiYafremau
- License: mit
- Created: 2025-02-03T02:19:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-30T16:16:20.000Z (about 1 year ago)
- Last Synced: 2025-11-28T11:09:58.701Z (7 months ago)
- Topics: library, python, validation
- Language: Python
- Homepage: https://aliakseiyafremau.github.io/validat/
- Size: 105 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Validat
[](https://pypi.org/project/validat/)
[](https://pypi.org/project/validat/)
[](https://github.com/AliakseiYafremau/validat/blob/main/LICENSE)
Validat is a Python library for data validation. It provides a simple and flexible way to validate data structures, ensuring that your data meets the required criteria.
## Documentation
For more detailed information, please refer to the [official documentation](https://aliakseiyafremau.github.io/validat/).
## Features
- Easy to use and integrate
- Supports various data types and structures
- Detailed error messages
## Installation
You can install Validat using pip:
```bash
pip install validat
```
## Usage
Here's a basic example of how to use Validat:
```python
import validat
try:
# returns True
correct_email = "username@example.com"
is_valid = validat.validate_email(correct_email)
except validat.EmailValidationError as e:
print(f"Email validation error: {e.message}")
try:
# raises EmailValidationError
wrong_email = "username@@example.com"
is_valid = validat.validate_email(wrong_email)
except validat.EmailValidationError as e:
print(f"Email validation error: {e.message}")
```