Simple and easy library to Validate data in python
pip install PyValidations
import pyvalidations as PyValidations
data = {
"first_name": "Majid"
}
rules = {
"first_name": ["required", "string", "max:128"]
}
# by default return messages in English
PyValidations.make(data, rules)
# get error messages in Deutsch language
PyValidations.make(data, rules , "de")
# get error messages in Farsi language
PyValidations.make(data, rules , "fa")
- Start Validation
- Required
- Accepted
- Alpha & String
- Boolean
- Numbers
- Min & Max
- Internet
- In & Not_In
- UUID
- Date&Time
- Different
- Confirmation
- Nullable
- File
Majid Ahmaditabar
PyValidations is released under the MIT License.