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.1.tar.gz
(155.5 kB
view hashes)