semvec/pypi-packages huggingface dataset:
microschema 0.5
MicroSchema is a schema validation library for Python.
License: BSD
Keywords: microschema schema validate validation validator micro

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

.. image:: https://coveralls.io/repos/github/amibiz/microschema/badge.svg
    :target: https://coveralls.io/github/amibiz/microschema

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.