Welcome to schemadict’s documentation!

Logo
>>> from schemadict import schemadict

>>> schema = schemadict({'myNumber': {'type': int, '>': 0}})
>>> schema.validate({'myNumber': 4})
>>> schema.validate({'myNumber': -20})
Traceback (most recent call last):
    ...
ValueError: 'myNumber' too small: expected > 0, but was -20

API documentation

Changelog

Authors

Aaron Dettmann

Licence

Apache-2.0