【文件属性】:
文件名称:webargs-marshmallow
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-01 11:21:59
Python
webargs-棉花糖
webargs-marshmallow 提供了一个理解棉花糖模式的 webargs 解析器。
from flask import Flask
from webargs import Arg
from webargs.flaskparser import parser
import webargs_marshmallow
schema_parser = webargs_marshmallow.Parser(parser)
use_schema_args = schema_parser.use_schema_args
app = Flask(__name__)
class HelloSchema(Schema):
name = fields.Str()
@app.route('/')
@use_schema_args(HelloSchema)
def ind
【文件预览】:
webargs-marshmallow-master
----setup.py(2KB)
----.gitignore(702B)
----.travis.yml(381B)
----MANIFEST.in(21B)
----AUTHORS.md(58B)
----LICENSE(1KB)
----CHANGELOG.md(59B)
----setup.cfg(175B)
----webargs_marshmallow()
--------__init__.py(24B)
--------parser.py(725B)
--------tests()
----README.md(608B)
----dev-requirements.txt(200B)
----tox.ini(129B)