- Notifications
You must be signed in to change notification settings - Fork159
A friendly library for parsing HTTP request arguments, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.
License
marshmallow-code/webargs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Homepage:https://webargs.readthedocs.io/
webargs is a Python library for parsing and validating HTTP request objects, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, Falcon, and aiohttp.
fromflaskimportFlaskfromwebargsimportfieldsfromwebargs.flaskparserimportuse_argsapp=Flask(__name__)@app.route("/")@use_args({"name":fields.Str(required=True)},location="query")defindex(args):return"Hello "+args["name"]if__name__=="__main__":app.run()# curl http://localhost:5000/\?name\='World'# Hello World
pip install -U webargs
Full documentation is available athttps://webargs.readthedocs.io/.
webargs is maintained by a group ofvolunteers.If you'd like to support the future of the project, please considercontributing to our Open Collective:
Professionally-supported webargs is available through theTidelift Subscription.
Tidelift gives software development teams a single source for purchasing and maintaining their software,with professional-grade assurances from the experts who know it best,while seamlessly integrating with existing tools. [Get professional support]

To report a security vulnerability, please use theTidelift security contact.Tidelift will coordinate the fix and disclosure.
- Docs:https://webargs.readthedocs.io/
- Changelog:https://webargs.readthedocs.io/en/latest/changelog.html
- Contributing Guidelines:https://webargs.readthedocs.io/en/latest/contributing.html
- PyPI:https://pypi.python.org/pypi/webargs
- Issues:https://github.com/marshmallow-code/webargs/issues
- Ecosystem / related packages:https://github.com/marshmallow-code/webargs/wiki/Ecosystem
MIT licensed. See theLICENSE file for more details.
About
A friendly library for parsing HTTP request arguments, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.