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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file PyValidations-0.3.4.tar.gz.

File metadata

  • Download URL: PyValidations-0.3.4.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for PyValidations-0.3.4.tar.gz
Algorithm Hash digest
SHA256 6d388d124e3d6a41f50e0b2c572c5723ae962bf1ea99cea0d4e7c27d154e10b8
MD5 b30381917f24ba9340f8fb898324bc68
BLAKE2b-256 424cf3c3679feb4262c344871395b3d6de7632c60a9c1dc087e650790d74b9b9

See more details on using hashes here.

File details

Details for the file PyValidations-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for PyValidations-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9bd4b4162f6adb8522f2d67e3ed5de9c37f3e3dcc29727adb549e396447a9160
MD5 e77bb669e2fee9a46f0fb89aec1341f2
BLAKE2b-256 863a86e5dc6f12cd50127060f57b28d289c3a61c318f5501129008d6893612f6

See more details on using hashes here.

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