microschema

MicroSchema is a schema validation library for Python.


Keywords
microschema, schema, validate, validation, validator, micro
License
BSD-3-Clause
Install
pip install microschema==0.5

Documentation

https://travis-ci.org/amibiz/microschema.svg?branch=develop

MicroSchema

Example:

>>> import microschema
>>> schema = {
...     'username': {'type': str, 'required': True},
...     'score': {'type': int},
... }
>>> data = {
...     'username': 'foobar',
...     'score': 10000,
... }
>>> print(microschema.validate(schema, data))

Python Compatibility

Python 2.7 and 3.3+ are supported.