Metadata-Version: 1.1
Name: bottle-marshmallow
Version: 1.0.5
Summary: marshmallow plugin for bottle
Home-page: https://github.com/agalera/bottle-marshmallow
Author: Alberto Galera Jimenez
Author-email: galerajimenez@gmail.com
License: GPL
Description: Marshmallow plugin
        ==================
        
        Marshmallow plugin for bottle
        
        installation
        ------------
        
        Via pip: ``pip install bottle-marshmallow``
        
        Or clone:
        ``git clone https://github.com/agalera/bottle-marshmallow.git``
        
        example:
        --------
        
        .. code:: python
        
           from bottle import post, install, run
           from bottle_marshmallow import MarshmallowPlugin
           from marshmallow import Schema, fields
        
        
           class ExampleSchema(Schema):
               name = fields.Str()
        
        
           class QuerySchema(Schema):
               name = fields.Str()
        
        
           @post('/marshmallow/<ex>', schemas={'body': ExampleSchema,
                                               'query_string': QuerySchema})
           def test_marshmallow(validated, ex):
               print(validated)
        
           install(MarshmallowPlugin())
           run(host="0.0.0.0", port="9988")
        
        Schemas
        =======
        
        Optional keys
        -------------
        
        body: schema for request.json
        
        url: schema for url (no query string)
        
        query_string: schema for query strings
        
        Schema
        ======
        
        marshmallow: http://marshmallow.readthedocs.io
        
Keywords: bottle-marshmallow
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
