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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| PyValidations-0.3.4.tar.gz | 11.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|