Skip to main content

Simple and easy library to Validate data in Python

Project description

Py Validations Pure Python Data Validator

Image


Simple and easy library to Validate data in python

PyPI pyversions example workflow PyPI download total PyPI license

install

  pip install PyValidations

Usage


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")

Documentation

Author


Majid Ahmaditabar

PyValidations is released under the MIT License.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page