A simple,fast,extensible python library for data validation.
Project description
Overview:
from validr import SchemaParser
sp = SchemaParser()
validate = sp.parse({
"id?int": "product ID",
"name?str": "product name",
"price?float&min=0&exmin": "product price",
"tags": ["&minlen=1&unique", "str&desc="product tag""]
})
data = validate({
"id": 1,
"name": "TeaCup",
"price": 9.9,
"tags": ["Cup"]
})
print(data)
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.13.0.tar.gz
(6.2 kB
view hashes)