Skip to main content

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.

Release files for PyValidations 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyValidations 0.3.4
File Size Uploaded
PyValidations-0.3.4.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyValidations 0.3.4
File Interpreter ABI Platform
PyValidations-0.3.4-py3-none-any.whl Python 3 none any Details

Total release size:29.4 kB

Release files / PyValidations-0.3.4.tar.gz

Download URL PyValidations-0.3.4.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6d388d124e3d6a41f50e0b2c572c5723ae962bf1ea99cea0d4e7c27d154e10b8
BLAKE2b-256 checksum
How to use checksums
424cf3c3679feb4262c344871395b3d6de7632c60a9c1dc087e650790d74b9b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / PyValidations-0.3.4-py3-none-any.whl

Download URL PyValidations-0.3.4-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9bd4b4162f6adb8522f2d67e3ed5de9c37f3e3dcc29727adb549e396447a9160
BLAKE2b-256 checksum
How to use checksums
863a86e5dc6f12cd50127060f57b28d289c3a61c318f5501129008d6893612f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.3.3

1 release file

0.3.2

1 release file

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page