Skip to main content

MicroSchema is a schema validation library for Python.

Project description

https://travis-ci.org/amibiz/microschema.svg?branch=develop https://coveralls.io/repos/github/amibiz/microschema/badge.svg

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for microschema, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size microschema-0.5.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page