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:
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
Metadata
Release files for bottle-marshmallow 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bottle-marshmallow-1.0.5.tar.gz | 2.6 kB | Without provenance | Details for bottle-marshmallow-1.0.5.tar.gz |
Release files / bottle-marshmallow-1.0.5.tar.gz
| Download URL | bottle-marshmallow-1.0.5.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
deb91abd582d83d24e91b77fab74ac3c136a680097d9095f3353adf1c3dec836
|
|
BLAKE2b-256 checksum How to use checksums |
d7fa0c5ca13841d7b0d85fbc73bbd11f5eaf4cdee1ca56382d9f16763328fb20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for bottle-marshmallow 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.