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.

Metadata

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 Provenance Actions
PyValidations-0.3.4.tar.gz 11.6 kB Without provenance Details for PyValidations-0.3.4.tar.gz

Built distribution (wheel)

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

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

Security for PyValidations 0.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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