MicroSchema is a schema validation framework for Python.
Project description
MicroSchema
MicroSchema is a schema validation framework for Python. It is light, fast and easy to use.
Example
>>> import microschema
>>> schema = {
... 'username': {'type': str, 'required': True},
... 'score': {'type': int},
... }
>>> data = {
... 'username': 'foobar',
... 'score': 10000,
... }
>>> print microschema.validate(schema, data)
Features
Intuitive to use
Fast (see comparison section below)
Support custom validator
Nested error messages
Installation
To install MicroSchema, simply:
$ pip install microschema
Comparison
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.2.tar.gz
(4.0 kB
view hashes)