Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(50)  |  Call(46)  |  Derive(0)  |  Import(4)
Enables adding and parsing of multiple arguments in the context of a
single request. Ex::

    from flask import request

    parser = RequestParser()
    parser.add_argument('foo')
    parser.add_argument('int_bar', type=int)
    args = parser.parse_args()

src/f/l/flask-restful-HEAD/examples/todo.py   flask-restful(Download)
        abort(404, message="Todo {} doesn't exist".format(todo_id))
 
parser = reqparse.RequestParser()
parser.add_argument('task', type=str)
 

src/f/l/Flask-Presst-0.2.10/flask_presst/nesting.py   Flask-Presst(Download)
    def __init__(self, fn, method, *args, **kwargs):
        super(ResourceMethod, self).__init__([method], *args, **kwargs)
        self.method = method
        self._fn = fn
        self._parser = reqparse.RequestParser(argument_class=PresstArgument)

src/f/l/flask-todo-HEAD/backend/auth.py   flask-todo(Download)
from urlobject import URLObject
from flask import render_template, current_app, request, redirect
from flask.ext.restful.reqparse import Argument, RequestParser
from flask.ext.login import LoginManager, AnonymousUser, login_user, user_unauthorized, login_url, make_next_param
 
        def concrete_backend():
            parser = RequestParser()
            for argument in arguments:
                parser.args.append(argument)
            user, created = func(parser.parse_args())

src/a/r/argos-HEAD/argos/web/api/user.py   argos(Download)
from flask.ext.restful import Resource, marshal_with, reqparse
 
parser = reqparse.RequestParser()
 
# temporary, expected to be replaced with mutable user settings.
parser.add_argument('something', type=str)
 
watching_parser = reqparse.RequestParser()
watching_parser.add_argument('story_id', type=int)
 
bookmarked_parser = reqparse.RequestParser()
bookmarked_parser.add_argument('event_id', type=int)
 

src/c/o/cosmo-manager-HEAD/manager-rest/manager_rest/resources.py   cosmo-manager(Download)
    def __init__(self):
        self._args_parser = reqparse.RequestParser()
        self._args_parser.add_argument('reachable', type=str,
                                       default='false', location='args')
        self._args_parser.add_argument('state', type=str,
    def __init__(self):
        self._args_parser = reqparse.RequestParser()
        self._args_parser.add_argument('state', type=str,
                                       default='false', location='args')
        self._args_parser.add_argument('reachable', type=str,
    def __init__(self):
        self._args_parser = reqparse.RequestParser()
        self._args_parser.add_argument('statuses', type=str,
                                       default='false', location='args')
 
        self._post_args_parser = reqparse.RequestParser()

src/a/r/argos-HEAD/argos/web/api/resources.py   argos(Download)
 
# Whitelist of allowed request parameters.
page_parser = reqparse.RequestParser()
page_parser.add_argument('page', type=int, default=1)
 
# Request parameters specifically for feeds,
# including `from` and `to` for defining date ranges
# of results (date format is 2014-01-31).
feed_parser = reqparse.RequestParser()

src/s/p/spin-docker-HEAD/spindocker/views.py   spin-docker(Download)
    def __init__(self):
        self.reqparse = reqparse.RequestParser()
        super(ImageList, self).__init__()
 
    def get(self):
    def __init__(self):
        self.reqparse = reqparse.RequestParser()
        super(ContainerList, self).__init__()
 
    def get(self):
    def __init__(self):
        self.reqparse = reqparse.RequestParser()
        self.reqparse.add_argument('status', type=str)
        super(Container, self).__init__()
 

src/f/l/flask-todo-HEAD/utils/flaskutils/restful.py   flask-todo(Download)
 
from flask.ext.restful import Api
from flask.ext.restful.reqparse import RequestParser
 
def patched_to_marshallable_type(obj):
       api.add_resource(Users, '/<username>', endpoint='users')
    """
    parser = kwargs.pop('parser', RequestParser())
    if kwargs: # mimic py3k style named-arguments after *args, i.e., def f(a, *b, c=1)
        raise TypeError("unexpected keyword argument '%s'" % (kwargs.popitem()[0],))

src/c/h/changes-HEAD/changes/api/stream_index.py   changes(Download)
class StreamIndexAPIView(APIView):
    parser = reqparse.RequestParser()
    parser.add_argument('c', dest='channels', type=str, action='append',
                        location='args')
 

src/c/h/changes-HEAD/changes/api/step_details.py   changes(Download)
class StepDetailsAPIView(APIView):
    parser = reqparse.RequestParser()
    parser.add_argument('data')
    parser.add_argument('implementation', choices=IMPLEMENTATION_CHOICES)
    parser.add_argument('order', type=int, default=0)

  1 | 2 | 3 | 4  Next