def parse_with(*arguments, **kwargs):
    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],))
    for argument in arguments:
        parser.args.append(argument)
    def decor(func):
        @wraps(func)
        def inner(self, *args, **kwargs):
            return func(self, parser.parse_args(), *args, **kwargs)
        return inner
    return decor
This decorator allows you to easily augment any method (typically a
dataset/ETHPy150Open fusic-com/flask-todo/utils/flaskutils/restful.py/parse_with