Skip to main content

Declarative parsing and validation of HTTP request objects, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, Falcon, and aiohttp.

Project description

PyPI package Build status Documentation marshmallow 3|4 compatible

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.

from flask import Flask
from webargs import fields
from webargs.flaskparser import use_args

app = Flask(__name__)


@app.route("/")
@use_args({"name": fields.Str(required=True)}, location="query")
def index(args):
    return "Hello " + args["name"]


if __name__ == "__main__":
    app.run()

# curl http://localhost:5000/\?name\='World'
# Hello World

Install

pip install -U webargs

Documentation

Full documentation is available at https://webargs.readthedocs.io/.

Support webargs

webargs is maintained by a group of volunteers. If you’d like to support the future of the project, please consider contributing to our Open Collective:

Donate to our collective

Professional Support

Professionally-supported webargs is available through the Tidelift 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]

Get supported marshmallow with Tidelift

Security Contact Information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

License

MIT licensed. See the LICENSE file for more details.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

webargs-8.7.1.tar.gz (97.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webargs-8.7.1-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file webargs-8.7.1.tar.gz.

File metadata

  • Download URL: webargs-8.7.1.tar.gz
  • Upload date:
  • Size: 97.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for webargs-8.7.1.tar.gz
Algorithm Hash digest
SHA256 799bf9039c76c23fd8dc1951107a75a9e561203c15d6ae8f89c1e46e234636c1
MD5 2c62d994f03da6ff81454c186bdbc808
BLAKE2b-256 376417afc4e6f47eef154a553c6e56adcc9f1ac3003305c7df978d11aa62937e

See more details on using hashes here.

Provenance

The following attestation bundles were made for webargs-8.7.1.tar.gz:

Publisher: build-release.yml on marshmallow-code/webargs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file webargs-8.7.1-py3-none-any.whl.

File metadata

  • Download URL: webargs-8.7.1-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for webargs-8.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a184aed9d2509e6e14ab99ee3e9dc3a614c7070affe94cd4dfdb0d002e0a6e5f
MD5 10d198c33e3cbca71b14b59a866a85ce
BLAKE2b-256 41efb0d17f3943429358184449771b592e0e1d33bbeaa6ed326434a95eac187b

See more details on using hashes here.

Provenance

The following attestation bundles were made for webargs-8.7.1-py3-none-any.whl:

Publisher: build-release.yml on marshmallow-code/webargs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

Image AWS Cloud computing and Security Sponsor Image Datadog Monitoring Image Depot Continuous Integration Image Fastly CDN Image Google Download Analytics Image Pingdom Monitoring Image Sentry Error logging Image StatusPage Status page