MicroSchema is a schema validation library for Python.
Project description
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
Currently, only python 2.7 is supported.
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
microschema-0.4.tar.gz
(4.1 kB
view hashes)