Skip to main content

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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page