A simple, fast, extensible python library for data validation.
Project description
Overview:
from sys import version_info
from validr import SchemaParser
parser = SchemaParser()
validate = parser.parse({
"major?int&min=3": "Major version",
"minor?int&min=3": "Minor version",
"micro?int&min=0": "Micro version",
"releaselevel?str": "Release level",
"serial?int": "Serial number"
})
print(validate(version_info))
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
validr-0.14.0.tar.gz
(145.3 kB
view details)
File details
Details for the file validr-0.14.0.tar.gz.
File metadata
- Download URL: validr-0.14.0.tar.gz
- Upload date:
- Size: 145.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2027b1a5de2ac868544adc32c2f5da926d7e34daeea3d11ef4a089366b855212
|
|
| MD5 |
66e2af75b733bb2a562c90d05eb48a58
|
|
| BLAKE2b-256 |
d6d1ff55805fc477bff8d8f246c0417acb320689a1ee9e3630774478148eb829
|