Simple and easy library to Validate data in Python
Project description
Py Validations Pure Python Data Validator
Simple and easy library to Validate data in python
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
- Start Validation
- Required
- Accepted
- Alpha & String
- Boolean
- Numbers
- Min & Max
- Internet
- In & Not_In
- UUID
- Date&Time
- Different
- Confirmation
- Nullable
- File
Author
Majid Ahmaditabar
PyValidations is released under the MIT License.
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d388d124e3d6a41f50e0b2c572c5723ae962bf1ea99cea0d4e7c27d154e10b8 |
|
MD5 | b30381917f24ba9340f8fb898324bc68 |
|
BLAKE2b-256 | 424cf3c3679feb4262c344871395b3d6de7632c60a9c1dc087e650790d74b9b9 |
File details
Details for the file PyValidations-0.3.4-py3-none-any.whl
.
File metadata
- Download URL: PyValidations-0.3.4-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bd4b4162f6adb8522f2d67e3ed5de9c37f3e3dcc29727adb549e396447a9160 |
|
MD5 | e77bb669e2fee9a46f0fb89aec1341f2 |
|
BLAKE2b-256 | 863a86e5dc6f12cd50127060f57b28d289c3a61c318f5501129008d6893612f6 |