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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyValidations-0.3.4.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

PyValidations-0.3.4-py3-none-any.whl (17.8 kB view hashes)

Uploaded Python 3

Supported by

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