How to use the webargs.core.get_value function in webargs

To help you get started, we’ve selected a few webargs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github marshmallow-code / webargs / tests / test_core.py View on Github external
def parse_json(self, req, name, field):
        return get_value(req.json, name, field)
github marshmallow-code / webargs / src / webargs / pyramidparser.py View on Github external
def parse_querystring(self, req, name, field):
        """Pull a querystring value from the request."""
        return core.get_value(req.GET, name, field)
github marshmallow-code / webargs / src / webargs / pyramidparser.py View on Github external
def parse_form(self, req, name, field):
        """Pull a form value from the request."""
        return core.get_value(req.POST, name, field)
github marshmallow-code / webargs / src / webargs / djangoparser.py View on Github external
def parse_cookies(self, req, name, field):
        """Pull the value from the cookiejar."""
        return core.get_value(req.COOKIES, name, field)
github marshmallow-code / webargs / src / webargs / bottleparser.py View on Github external
def parse_querystring(self, req, name, field):
        """Pull a querystring value from the request."""
        return core.get_value(req.query, name, field)
github marshmallow-code / webargs / src / webargs / bottleparser.py View on Github external
def parse_form(self, req, name, field):
        """Pull a form value from the request."""
        return core.get_value(req.forms, name, field)
github marshmallow-code / webargs / src / webargs / pyramidparser.py View on Github external
def parse_matchdict(self, req, name, field):
        """Pull a value from the request's `matchdict`."""
        return core.get_value(req.matchdict, name, field)
github marshmallow-code / webargs / src / webargs / falconparser.py View on Github external
def parse_querystring(self, req, name, field):
        """Pull a querystring value from the request."""
        return core.get_value(req.params, name, field)
github marshmallow-code / webargs / src / webargs / webapp2parser.py View on Github external
def parse_cookies(self, req, name, field):
        """Pull the value from the cookiejar."""
        return core.get_value(req.cookies, name, field)

webargs

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.

MIT
Latest version published 4 months ago

Package Health Score

88 / 100
Full package analysis

Similar packages