Metadata-Version: 1.1
Name: pythonish-validator
Version: 0.1
Summary: Pythonish object scheme validator
Home-page: https://github.com/bugov/pythonish-validator
Author: Georgy Bazhukov
Author-email: georgy.bazhukov@gmail.com
License: BSD
Description: # pythonish-validator
        
        [![Build Status](https://travis-ci.org/bugov/pythonish-validator.svg?branch=master)](https://travis-ci.org/bugov/pythonish-validator)
        
        Data validation library for Python without complex schemas.
        It's how you write Python code:
        
        ```Python
        from pythonish_validator.common import Validator
        
        validator = Validator({
            'name': str,
            'age': int,
            'skills': [str]
        })
        
        validator.is_valid({
            'name': 'Georgy',
            'age': 29,
            'skills': ['Python', 'Perl', 'C']
        })
        ```
        
        What can be easier?
        
        # Install
        
        ```bash
        pip3 install pythonish-validator
        ```
        
        ## Error messages
        
        ```Python
        from pythonish_validator.common import validate
        
        validator = validate({
            'name': str,
            'age': int,
            'skills': [str]
        }, {
            'name': 'Georgy',
            'age': None,
            'skills': ['Python', 'Perl', 42]
        })
        
        assert validator.repr_errors() == [
            "{'age'}->NoneType(None)",
            "{'skills'}->[2]->int(42)"
        ]
        ```
        
        If you find any mistake – please write to the [issue list 🐨](https://github.com/bugov/pythonish-validator/issues).
        
Keywords: validator data check structure scheme
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
