Skip to main content

marshmallow plugin for bottle

Project description

Marshmallow plugin

Marshmallow plugin for bottle


Via pip: pip install bottle-marshmallow

Or clone: git clone


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):

run(host="", port="9988")


Optional keys

body: schema for request.json

url: schema for url (no query string)

query_string: schema for query strings



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bottle-marshmallow, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size bottle-marshmallow-1.0.5.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page