Metadata-Version: 1.0
Name: jsonschema-model
Version: 1.0.0
Summary: Json schema Model
Home-page: https://github.com/philpep/jsonschema-model
Author: Philippe Pepiot
Author-email: phil@philpep.org
License: BSD
Description: Json Schema Model
        =================
        
        Build python objects using JSON schemas::
        
            >>> import jsonschema_model
            >>> Model = jsonschema_model.model_factory({
            ...    "name": "Model",
            ...    "properties": {
            ...        "foo": {"type": "string"},
            ...        "bar": {"type": "array", "items": {
            ...            "type": "object",
            ...            "name": "Bar",
            ...            "properties": {
            ...                "zaz": {"type": "string"},
            ...            },
            ...        }},
            ...    }})
            >>> obj = Model(foo="bar")
            >>> obj
            {'foo': 'bar'}
            >>> obj.bar.add(zaz="qux")
            {'zaz': 'qux'}
            >>> obj
            {'foo': 'bar', 'bar': [{'zaz': 'qux'}]}
        
            # You can access via attribute or via dict like interface
            >>> obj["bar"][0].zaz
            'qux'
        
        
Platform: UNKNOWN
