Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore TupleLoad Assign NameStore TupleLoad Assign NameStore TupleLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return CompareEq Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore TupleLoad Str Str Str body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore TupleLoad Str Str Str body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call NameLoad NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Str body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Continue If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareEq SubscriptLoad Call NameLoad NameLoad Index Num Str body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore BoolOpOr NameLoad Dict Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign NameStore ListComp TupleLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num If NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body If BoolOpAnd AttributeLoad NameLoad attr CompareIn NameLoad NameLoad body If AttributeLoad NameLoad attr body Continue orelse Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad If AttributeLoad NameLoad attr body Print NameLoad Str Call NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad handlers ExceptHandler type NameLoad name NameStore body If AttributeLoad NameLoad attr body Print NameLoad Str Call NameLoad NameLoad Raise If AttributeLoad NameLoad attr body Print NameLoad Str Call NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Str If CompareIn Str Call NameLoad NameLoad body Raise Call NameLoad BinOpMod NameLoad NameLoad If CompareIn Str Call NameLoad NameLoad body Raise Call NameLoad BinOpMod NameLoad NameLoad Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad ListLoad Str Str Assign NameStore ListComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore BoolOpOr Call NameLoad NameLoad TupleLoad TupleLoad TupleLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpBitOr NameLoad NameLoad Assign NameStore ListComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore BoolOpOr Call NameLoad NameLoad TupleLoad TupleLoad TupleLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Assign NameStore BinOpBitOr NameLoad Call NameLoad ListLoad Str Assign NameStore ListComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore BoolOpOr Call NameLoad NameLoad TupleLoad TupleLoad TupleLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Assign NameStore BinOpSub BinOpBitOr NameLoad NameLoad Call NameLoad ListLoad Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr ListComp BinOpAdd BinOpAdd NameLoad Str NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body Print NameLoad Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Exec Call NameLoad NameLoad Str Str NameLoad Return SubscriptLoad NameLoad Index Str decorator_list
N/A N/A itertools collections defaultdict werkzeug.utils cached_property werkzeug.wrappers BaseResponse sinter make_chain get_arg_names _VERBOSE Middleware N/A object N/A N/A unique True N/A reorderable True N/A provides N/A N/A endpoint_provides N/A N/A render_provides N/A N/A request None N/A endpoint None N/A render None name N/A N/A self N/A N/A N/A N/A N/A self __class__ __name__ N/A property __eq__ N/A N/A self other N/A N/A N/A N/A N/A type self N/A type other N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A type self N/A type other N/A requires N/A N/A self N/A N/A N/A reqs N/A N/A func_name N/A request endpoint render N/A N/A func N/A getattr self func_name None N/A func N/A N/A N/A N/A reqs extend N/A get_arg_names func True N/A unique_reqs N/A set reqs N/A N/A N/A unique_reqs discard next N/A N/A list unique_reqs N/A cached_property arguments N/A N/A self N/A N/A N/A args N/A N/A func_name N/A request endpoint render N/A N/A func N/A getattr self func_name None N/A func N/A N/A N/A N/A args extend N/A get_arg_names func N/A N/A set args N/A cached_property N/A check_middleware N/A N/A mw N/A N/A N/A f_name N/A request endpoint render N/A N/A func N/A getattr mw f_name None N/A N/A func N/A N/A N/A N/A N/A callable func N/A N/A N/A TypeError N/A expected %s.%s to be a function N/A N/A mw name f_name N/A N/A N/A N/A N/A get_arg_names func N/A 0 next N/A N/A N/A TypeError N/A middleware functions must take argument 'next' as the first parameter (%s.%s) N/A N/A mw name f_name N/A check_middlewares N/A N/A middlewares args_dict N/A None N/A N/A args_dict N/A args_dict N/A N/A provided_by N/A defaultdict list N/A N/A source arg_list N/A N/A args_dict items N/A N/A arg_name arg_list N/A N/A N/A N/A N/A provided_by N/A arg_name append source N/A mw middlewares N/A N/A N/A check_middleware mw N/A arg N/A mw provides N/A N/A N/A N/A N/A provided_by N/A arg append mw N/A arg N/A mw endpoint_provides N/A N/A N/A N/A N/A provided_by N/A arg append mw N/A arg N/A mw render_provides N/A N/A N/A N/A N/A provided_by N/A arg append mw N/A conflicts N/A N/A n N/A tuple ps N/A N/A n ps N/A N/A provided_by items N/A N/A len ps 1 N/A conflicts N/A N/A N/A NameError N/A found conflicting provides: %r conflicts N/A True N/A merge_middlewares N/A N/A old new N/A N/A N/A old N/A list old N/A merged N/A list new N/A mw old N/A N/A N/A N/A mw unique N/A mw merged N/A N/A N/A mw reorderable N/A N/A N/A N/A N/A ValueError N/A multiple inclusion of unique middleware %r N/A mw name N/A N/A N/A merged append mw N/A merged N/A DummyMiddleware N/A Middleware N/A __init__ N/A N/A self verbose N/A False N/A N/A N/A self verbose verbose N/A request N/A N/A self next request N/A N/A N/A name N/A %s (%s) N/A N/A N/A self __class__ __name__ N/A id self N/A N/A self verbose N/A N/A name - handling N/A id request N/A N/A N/A ret N/A next N/A N/A N/A Exception N/A e N/A N/A N/A self verbose N/A N/A name - uhoh: N/A repr e N/A N/A N/A self verbose N/A N/A name - hooray: N/A repr ret N/A ret N/A N/A make_middleware_chain N/A N/A middlewares endpoint render preprovided N/A N/A N/A 
    Expects de-duplicated and conflict-free middleware/endpoint/render
    functions.

    # TODO: better name to differentiate a compiled/chained stack from
    # the core functions themselves (endpoint/render)
     N/A _next_exc_msg argument 'next' reserved for middleware use only (%r) N/A N/A next N/A get_arg_names endpoint N/A N/A N/A NameError N/A _next_exc_msg endpoint N/A N/A next N/A get_arg_names render N/A N/A N/A NameError N/A _next_exc_msg render N/A req_avail N/A N/A set preprovided N/A set N/A next context N/A req_sigs N/A N/A N/A mw request N/A mw provides N/A mw middlewares N/A mw request N/A N/A req_funcs req_provides N/A N/A zip req_sigs N/A N/A N/A N/A req_all_provides N/A set N/A N/A N/A itertools chain from_iterable req_provides N/A ep_avail N/A req_avail req_all_provides N/A ep_sigs N/A N/A N/A mw endpoint N/A mw endpoint_provides N/A mw middlewares N/A mw endpoint N/A N/A ep_funcs ep_provides N/A N/A zip ep_sigs N/A N/A N/A N/A N/A ep_chain ep_args ep_unres N/A make_chain ep_funcs ep_provides endpoint ep_avail N/A ep_unres N/A N/A N/A NameError N/A unresolved endpoint middleware arguments: %r N/A list ep_unres N/A rn_avail N/A ep_avail N/A set N/A context N/A rn_sigs N/A N/A N/A mw render N/A mw render_provides N/A mw middlewares N/A mw render N/A N/A rn_funcs rn_provides N/A N/A zip rn_sigs N/A N/A N/A N/A N/A rn_chain rn_args rn_unres N/A make_chain rn_funcs rn_provides render rn_avail N/A rn_unres N/A N/A N/A NameError N/A unresolved render middleware arguments: %r N/A list rn_unres N/A req_args N/A N/A ep_args rn_args N/A set N/A context N/A req_func N/A _create_request_inner ep_chain rn_chain req_args ep_args rn_args N/A N/A req_chain req_chain_args req_unres N/A make_chain req_funcs req_provides req_func req_avail N/A req_unres N/A N/A N/A NameError N/A unresolved request middleware arguments: %r N/A list req_unres N/A req_chain N/A N/A _REQ_INNER_TMPL 
def process_request({all_args}):
    __traceback_hide__ = True
    context = endpoint({endpoint_args})
    if isinstance(context, BaseResponse):
        resp = context
    else:
        resp = render({render_args})
    return resp
 _named_arg_str N/A N/A args N/A N/A N/A N/A N/A ,  join N/A N/A N/A a = a N/A a args N/A _create_request_inner N/A N/A endpoint render all_args endpoint_args render_args verbose N/A _VERBOSE N/A N/A all_args_str N/A N/A , join all_args N/A ep_args_str N/A _named_arg_str endpoint_args N/A rn_args_str N/A _named_arg_str render_args N/A code_str N/A N/A _REQ_INNER_TMPL format all_args all_args_str endpoint_args ep_args_str render_args rn_args_str N/A verbose N/A N/A code_str N/A d N/A endpoint render BaseResponse endpoint render BaseResponse N/A N/A compile code_str <string> single d N/A N/A d N/A process_request N/A