package for validating values
Project description
Maprule
value validating library
Installation
python -m pip install -U maprule
Update
- v0.2.0: added error tracking
Usage
from maprule import fields
fields.Boolean().compare(True)
fields.Integer().compare(0)
fields.Integer(maximum=0).compare(1)
fields.String(min_length=3).compare("he")
fields.Dictionary(dict(
name=fields.String(min_length=3),
age=fields.Integer(minimum=0)
)).compare(dict(name="rubbie", age=19))
fields.Array(fields.String(min_length=3)).compare(["rubbie", "kelvin"])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
maprule-1.1.0.tar.gz
(3.6 kB
view hashes)