Module Expr Str Assign NameStore Str Import alias Import alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias alias alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad Call NameLoad Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore TupleLoad Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body Return AttributeLoad NameLoad attr Return ListLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Return NameLoad If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpAnd CompareGtE NameLoad Str CompareLtE NameLoad Str body Raise Call NameLoad Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpAnd CompareGtE NameLoad Str CompareLtE NameLoad Str body Raise Call NameLoad Str Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body If BoolOpAnd CompareGtE NameLoad Str CompareLtE NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareGtE NameLoad Str CompareLtE NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareGtE NameLoad Str CompareLtE NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Str Assign NameStore ListLoad Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr IfExp CompareEq NameLoad Str BinOpMod Str NameLoad BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore UnaryOpNot NameLoad Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr CompareEq Call NameLoad NameLoad Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad While NameLoad body Expr Yield NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num Expr Call NameLoad BinOpMod Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Dict Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Slice If CompareIn NameLoad NameLoad body Return ListLoad SubscriptLoad NameLoad Index NameLoad Return ListLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Return ListComp Call NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad If AttributeLoad NameLoad attr body Return Call NameLoad NameLoad Return Call NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad NameLoad body Return SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Return SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad NameLoad body Return SubscriptLoad NameLoad Slice Return ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Call NameLoad Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str Str attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict If NameLoad body For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGt NameLoad Num body Assign SubscriptStore NameLoad Index Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad attr Call NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot CompareIn NameLoad NameLoad body Assign NameStore NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot CompareIn NameLoad NameLoad body Assign NameStore NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot CompareIn NameLoad NameLoad body Assign NameStore NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Str keyword BinOpSub Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad NameLoad NameLoad body Expr Str Assign NameStore ListLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr Str If Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If BoolOpAnd CompareGtE NameLoad Num CompareLtE NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If NameLoad body Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str orelse If Call NameLoad NameLoad NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad orelse Raise Call NameLoad Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str orelse If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Slice ListLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str ImportFrom alias alias Assign NameStore Call NameLoad keyword Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad BinOpAdd NameLoad Num Assign NameStore BinOpMod NameLoad Num Assign NameStore BinOpFloorDiv NameLoad Num Assign NameStore BinOpMod NameLoad Num Assign NameStore BinOpFloorDiv NameLoad Num If CompareGt NameLoad Num body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str attr Str Str attr Str Str decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body If CompareGt Call NameLoad NameLoad Num body Return BinOpMod Str TupleLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If CompareLt NameLoad Num body Return BinOpMod Str NameLoad orelse If CompareLt NameLoad Num body Assign NameStore BinOpFloorDiv NameLoad Num Return BinOpMod Str NameLoad orelse If CompareLt NameLoad Num body Assign NameStore BinOpFloorDiv NameLoad Num Return BinOpMod Str NameLoad orelse Assign NameStore BinOpFloorDiv NameLoad Num Return BinOpMod Str NameLoad Return NameLoad decorator_list Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad FunctionDef arguments args NameParam defaults kwarg body Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad attr Str decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr If CompareEq NameLoad Str body Return Call NameLoad NameLoad NameLoad Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Expr Call AttributeLoad NameLoad attr TupleLoad Str Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Return BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Str ListLoad TupleLoad Str Str NameLoad If NameLoad body Return Call NameLoad Return BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str attr Str Str decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr While AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr While NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Assign NameStore Num For NameStore NameLoad body Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Str If NameLoad body Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Pass Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad Call NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body If CompareGt Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad If NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Assign NameStore Dict Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str NameLoad orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Return NameLoad orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad kwarg body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str Call NameLoad AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Global identifier Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore IfExp CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad ExceptHandler type NameLoad name NameStore body Return Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str BinOpSub Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str BinOpSub Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr If BoolOpOr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore CompareEq NameLoad Str Assign NameStore CompareEq NameLoad Str If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr Call NameLoad Num NameLoad AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call NameLoad BinOpMod Str NameLoad orelse Assign NameStore IfExp NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str NameLoad Break If UnaryOpNot NameLoad body Expr Call NameLoad BinOpMod Str NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad Num NameLoad AttributeLoad NameLoad attr Global identifier Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad TryFinally body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad finalbody Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Import alias Expr Call AttributeLoad NameLoad attr
N/A N/A 
A simple, lightweight, WSGI-compatible web framework.
 N/A __author__ Michael Liao N/A __builtin__ N/A types os re cgi sys base64 time datetime inspect functools mimetypes threading logging urllib collections linecache utils Dict UTC load_module N/A ctx N/A N/A threading local N/A _RESPONSE_STATUSES N/A 100 101 102 200 201 202 203 204 205 206 207 226 300 301 302 303 304 305 307 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 422 423 424 426 500 501 502 503 504 505 507 510 Continue Switching Protocols Processing OK Created Accepted Non-Authoritative Information No Content Reset Content Partial Content Multi Status IM Used Multiple Choices Moved Permanently Found See Other Not Modified Use Proxy Temporary Redirect Bad Request Unauthorized Payment Required Forbidden Not Found Method Not Allowed Not Acceptable Proxy Authentication Required Request Timeout Conflict Gone Length Required Precondition Failed Request Entity Too Large Request URI Too Long Unsupported Media Type Requested Range Not Satisfiable Expectation Failed I'm a teapot Unprocessable Entity Locked Failed Dependency Upgrade Required Internal Server Error Not Implemented Bad Gateway Service Unavailable Gateway Timeout HTTP Version Not Supported Insufficient Storage Not Extended N/A _RE_RESPONSE_STATUS N/A N/A re compile ^\d\d\d(\ [\w\ ]+)?$ N/A _RESPONSE_HEADERS N/A Accept-Ranges Age Allow Cache-Control Connection Content-Encoding Content-Language Content-Length Content-Location Content-MD5 Content-Disposition Content-Range Content-Type Date ETag Expires Last-Modified Link Location P3P Pragma Proxy-Authenticate Refresh Retry-After Server Set-Cookie Strict-Transport-Security Trailer Transfer-Encoding Vary Via Warning WWW-Authenticate X-Frame-Options X-XSS-Protection X-Content-Type-Options X-Forwarded-Proto X-Powered-By X-UA-Compatible N/A _RESPONSE_HEADER_DICT N/A dict N/A zip N/A map N/A N/A N/A x N/A N/A N/A x upper _RESPONSE_HEADERS _RESPONSE_HEADERS N/A _HEADER_X_POWERED_BY N/A X-Powered-By transwarp/1.0 HttpError N/A Exception N/A N/A 
    HttpError that defines http error code.

    >>> e = HttpError(404)
    >>> e.status
    '404 Not Found'
     __init__ N/A N/A self code N/A N/A N/A 
        Init an HttpError with response code.
         N/A N/A N/A N/A super HttpError self __init__ N/A N/A self status N/A %d %s N/A code N/A _RESPONSE_STATUSES N/A code N/A header N/A N/A self name value N/A N/A N/A N/A N/A hasattr self _headers N/A N/A N/A self _headers N/A _HEADER_X_POWERED_BY N/A N/A N/A N/A self _headers append N/A name value N/A headers N/A N/A self N/A N/A N/A N/A hasattr self _headers N/A N/A N/A self _headers N/A N/A N/A property __str__ N/A N/A self N/A N/A N/A N/A self status N/A N/A __repr__ __str__ N/A RedirectError N/A HttpError N/A N/A 
    RedirectError that defines http redirect code.

    >>> e = RedirectError(302, 'http://www.apple.com/')
    >>> e.status
    '302 Found'
    >>> e.location
    'http://www.apple.com/'
     __init__ N/A N/A self code location N/A N/A N/A 
        Init an HttpError with response code.
         N/A N/A N/A N/A super RedirectError self __init__ code N/A N/A self location location N/A __str__ N/A N/A self N/A N/A N/A N/A %s, %s N/A N/A self status N/A self location N/A N/A __repr__ __str__ N/A badrequest N/A N/A N/A N/A N/A 
    Send a bad request response.

    >>> raise badrequest()
    Traceback (most recent call last):
      ...
    HttpError: 400 Bad Request
     N/A N/A HttpError 400 N/A unauthorized N/A N/A N/A N/A N/A 
    Send an unauthorized response.

    >>> raise unauthorized()
    Traceback (most recent call last):
      ...
    HttpError: 401 Unauthorized
     N/A N/A HttpError 401 N/A forbidden N/A N/A N/A N/A N/A 
    Send a forbidden response.

    >>> raise forbidden()
    Traceback (most recent call last):
      ...
    HttpError: 403 Forbidden
     N/A N/A HttpError 403 N/A notfound N/A N/A N/A N/A N/A 
    Send a not found response.

    >>> raise notfound()
    Traceback (most recent call last):
      ...
    HttpError: 404 Not Found
     N/A N/A HttpError 404 N/A conflict N/A N/A N/A N/A N/A 
    Send a conflict response.

    >>> raise conflict()
    Traceback (most recent call last):
      ...
    HttpError: 409 Conflict
     N/A N/A HttpError 409 N/A internalerror N/A N/A N/A N/A N/A 
    Send an internal error response.

    >>> raise internalerror()
    Traceback (most recent call last):
      ...
    HttpError: 500 Internal Server Error
     N/A N/A HttpError 500 N/A _redirect N/A N/A code location N/A N/A N/A N/A RedirectError code location N/A redirect N/A N/A location N/A N/A N/A 
    Do permanent redirect.

    >>> raise redirect('http://www.itranswarp.com/')
    Traceback (most recent call last):
      ...
    RedirectError: 301 Moved Permanently, http://www.itranswarp.com/
     N/A N/A _redirect 301 location N/A found N/A N/A location N/A N/A N/A 
    Do temporary redirect.

    >>> raise found('http://www.itranswarp.com/')
    Traceback (most recent call last):
      ...
    RedirectError: 302 Found, http://www.itranswarp.com/
     N/A N/A _redirect 302 location N/A seeother N/A N/A location N/A N/A N/A 
    Do temporary redirect.

    >>> raise seeother('http://www.itranswarp.com/')
    Traceback (most recent call last):
      ...
    RedirectError: 303 See Other, http://www.itranswarp.com/
    >>> e = seeother('http://www.itranswarp.com/seeother?r=123')
    >>> e.location
    'http://www.itranswarp.com/seeother?r=123'
     N/A N/A _redirect 303 location N/A _safe_str N/A N/A s N/A N/A N/A N/A isinstance s str N/A N/A s N/A N/A isinstance s unicode N/A N/A N/A N/A s encode utf-8 N/A N/A str s N/A _unicode N/A N/A s encoding N/A utf-8 N/A N/A N/A N/A s decode utf-8 N/A _quote N/A N/A s encoding N/A utf-8 N/A N/A 
    Url quote as str.

    >>> _quote('http://example/test?a=1+')
    'http%3A//example/test%3Fa%3D1%2B'
    >>> _quote(u'hello world!')
    'hello%20world%21'
     N/A N/A isinstance s unicode N/A N/A s N/A N/A s encode encoding N/A N/A N/A urllib quote s N/A _unquote N/A N/A s encoding N/A utf-8 N/A N/A 
    Url unquote as unicode.

    >>> _unquote('http%3A//example/test%3Fa%3D1+')
    u'http://example/test?a=1+'
     N/A N/A N/A N/A N/A urllib unquote s decode encoding N/A _unquote_plus N/A N/A s encoding N/A utf-8 N/A N/A 
    Url unquote_plus as unicode.

    >>> _unquote_plus('http%3A//example/test%3Fa%3D1+')
    u'http://example/test?a=1 '
     N/A N/A N/A N/A N/A urllib unquote_plus s decode encoding N/A _log N/A N/A s N/A N/A N/A N/A N/A logging debug s N/A _route_decorator_maker N/A N/A path allow_get allow_post N/A N/A N/A 
    A decorator that has args:

    @route('/')
    def index():
        pass
     _decorator N/A N/A func N/A N/A _wrapper N/A N/A N/A args kw N/A N/A N/A _log N/A call route.wrapper: %s, %s N/A N/A str args N/A str kw N/A N/A func args kw N/A N/A N/A functools wraps func N/A N/A _wrapper __web_route__ path N/A N/A _wrapper __web_get__ allow_get N/A N/A _wrapper __web_post__ allow_post N/A _wrapper N/A N/A _decorator N/A route N/A N/A path N/A N/A N/A 
    @route decorator for both GET and POST.
     N/A N/A _route_decorator_maker path True True N/A get N/A N/A path N/A N/A N/A 
    @get decorator for GET only.
     N/A N/A _route_decorator_maker path True False N/A post N/A N/A path N/A N/A N/A 
    @post decorator for POST only.
     N/A N/A _route_decorator_maker path False True N/A N/A _re_route N/A N/A re compile \<(\w*\:?\w*)\> N/A _convert N/A int long float bool str unicode int long float bool str N/A N/A N/A s N/A N/A N/A s decode utf-8 N/A N/A N/A s N/A N/A N/A s decode utf-8 Route N/A object N/A execute N/A N/A self N/A args kw N/A N/A N/A N/A self func args kw N/A _parse_var N/A N/A self var N/A N/A N/A N/A var N/A N/A N/A BadRouteError var name required N/A var_type N/A var_name var N/A pos N/A N/A var find : N/A N/A pos -1 N/A N/A var_type N/A var N/A pos N/A var_name N/A var N/A N/A pos 1 N/A N/A var_type N/A N/A N/A BadRouteError var type required before : N/A ch N/A var_type N/A 0 N/A N/A N/A ch 0 N/A ch 9 N/A N/A N/A BadRouteError invalid var type N/A N/A var_name N/A N/A N/A BadRouteError var name required N/A ch N/A var_name N/A 0 N/A N/A N/A ch 0 N/A ch 9 N/A N/A N/A BadRouteError invalid var name N/A N/A var_type var_name N/A _parse_static N/A N/A self s N/A N/A N/A L N/A N/A ch s N/A N/A N/A N/A ch 0 N/A ch 9 N/A N/A N/A N/A L append ch N/A N/A N/A N/A ch A N/A ch Z N/A N/A N/A N/A L append ch N/A N/A N/A N/A ch a N/A ch z N/A N/A N/A N/A L append ch N/A N/A N/A N/A L append N/A \%s ch N/A N/A N/A join L N/A __init__ N/A N/A self path func N/A N/A N/A rl N/A ^ N/A vl N/A N/A var False N/A s N/A N/A _re_route split path N/A N/A var N/A N/A N/A var_type var_name N/A N/A self _parse_var s N/A N/A N/A vl append var_type N/A N/A N/A rl append N/A N/A var_type path N/A (?P<%s>.+) var_name N/A (?P<%s>[^\/]+) var_name N/A N/A N/A N/A rl append N/A N/A self _parse_static s N/A var N/A var N/A N/A N/A rl append $ N/A N/A self str_route path N/A N/A self re_route N/A N/A join rl N/A N/A self route N/A N/A re compile N/A self re_route N/A N/A self types vl N/A N/A self static N/A N/A len vl 0 N/A N/A self func func N/A __str__ N/A N/A self N/A N/A N/A N/A (path=%s, compiled=%s, types=%s) N/A N/A self str_route N/A self re_route N/A str N/A self types N/A N/A __repr__ __str__ N/A _static_file_generator N/A N/A fpath N/A N/A N/A BLOCK_SIZE 8192 N/A N/A open fpath rb f N/A N/A block N/A N/A f read BLOCK_SIZE N/A block N/A N/A N/A block N/A block N/A N/A f read BLOCK_SIZE N/A static_file_handler N/A N/A N/A args kw N/A N/A pathinfo N/A N/A ctx request path_info N/A N/A N/A N/A pathinfo startswith / N/A N/A N/A HttpError 403 N/A fpath N/A N/A N/A os path join N/A N/A ctx application document_root N/A pathinfo N/A 1 N/A N/A _log N/A static file: %s fpath N/A N/A N/A N/A N/A os path isfile fpath N/A N/A N/A HttpError 404 N/A fext N/A N/A N/A N/A os path splitext fpath N/A 1 N/A N/A N/A ctx response content_type N/A N/A N/A mimetypes types_map get N/A N/A fext lower application/octet-stream N/A N/A N/A ctx response content_length N/A N/A N/A os path getsize fpath N/A N/A _static_file_generator fpath N/A favicon_handler N/A N/A N/A N/A N/A N/A static_file_handler /favicon.ico N/A MultipartFile N/A object N/A N/A 
    Multipart file storage get from request input.

    f = ctx.request['file']
    f.filename # 'test.png'
    f.file # file-like object
     __init__ N/A N/A self storage N/A N/A N/A N/A self filename N/A _unicode N/A storage filename N/A N/A self file N/A storage file N/A N/A _InputDict N/A dict N/A N/A 
    Simple dict but support access as x.y style and list value.

    >>> d1 = _InputDict(x=u'100', y=u'200')
    >>> d1.x
    u'100'
    >>> d1['y']
    u'200'
    >>> d1['empty']
    Traceback (most recent call last):
        ...
    KeyError: 'empty'
    >>> d1.empty
    Traceback (most recent call last):
        ...
    KeyError: 'empty'
    >>> d2 = _InputDict(a=u'1', b=[u'X', u'Y', u'Z'])
    >>> d2.b
    u'X'
    >>> d2.gets('b')
    [u'X', u'Y', u'Z']
    >>> d2.gets('a')
    [u'1']
    >>> d2.gets('empty')
    []
     __init__ N/A N/A self N/A kw N/A N/A d N/A N/A ld N/A N/A N/A k v N/A N/A kw iteritems N/A N/A N/A isinstance v list N/A N/A N/A d N/A k N/A v N/A 0 N/A N/A ld N/A k v N/A N/A N/A d N/A k v N/A N/A N/A N/A super _InputDict self __init__ d N/A N/A self _multidict ld N/A __getattr__ N/A N/A self key N/A N/A N/A N/A self N/A key N/A gets N/A N/A self key N/A N/A N/A 
        Get multiple values of the key. Return [] if no key found.
         N/A N/A key N/A self _multidict N/A N/A N/A N/A N/A self _multidict N/A key N/A N/A N/A key self N/A N/A N/A N/A self N/A key N/A N/A N/A N/A Request N/A object N/A N/A 
    Request object for obtaining all http request information.
     __init__ N/A N/A self environ N/A N/A N/A N/A self _environ environ N/A N/A self _cache N/A N/A _fromcache N/A N/A self key func N/A args kw N/A N/A r N/A N/A N/A self _cache get key N/A N/A r None N/A N/A r N/A func args kw N/A N/A N/A self _cache N/A key r N/A r N/A _get_raw_input N/A N/A self N/A N/A N/A  return raw input as dict with key=field name, value=list or MultipartFile.  _do_get_raw_input N/A N/A N/A N/A _convert_item N/A N/A item N/A N/A N/A N/A isinstance item list N/A N/A N/A N/A _unicode N/A i value N/A i item N/A N/A item filename N/A N/A N/A MultipartFile item N/A N/A _unicode N/A item value N/A N/A fs N/A N/A cgi FieldStorage fp N/A N/A self _environ N/A wsgi.input environ N/A self _environ keep_blank_values True N/A form N/A dict N/A key fs N/A N/A N/A form N/A key N/A _convert_item N/A fs N/A key N/A form N/A N/A N/A N/A self _fromcache CACHED_INPUT _do_get_raw_input N/A input N/A N/A self N/A kw N/A N/A 
        Get input from request.

        >>> from StringIO import StringIO
        >>> r = Request({'REQUEST_METHOD':'POST', 'wsgi.input':StringIO('a=1&b=M%20M&c=ABC&c=XYZ&e=')})
        >>> i = r.input(x=2008)
        >>> i.a
        u'1'
        >>> i.b
        u'M M'
        >>> i.c
        u'ABC'
        >>> i.x
        2008
        >>> i.gets('c')
        [u'ABC', u'XYZ']
        >>> i.get('d', u'100')
        u'100'
        >>> i.x
        2008
         N/A copy N/A _InputDict N/A N/A self _get_raw_input N/A kw N/A N/A N/A k v N/A N/A kw iteritems N/A N/A N/A N/A k copy N/A N/A N/A copy N/A k v N/A copy N/A __getitem__ N/A N/A self key N/A N/A N/A 
        Get input parameter value. If the specified key has multiple value, the first one is returned.
        If the specified key is not exist, then raise KeyError.

        >>> from StringIO import StringIO
        >>> r = Request({'REQUEST_METHOD':'POST', 'wsgi.input':StringIO('a=1&b=M%20M&c=ABC&c=XYZ&e=')})
        >>> r['a']
        u'1'
        >>> r['c']
        u'ABC'
        >>> r['empty']
        Traceback (most recent call last):
            ...
        KeyError: 'empty'
        >>> b = '----WebKitFormBoundaryQQ3J8kPsjFpTmqNz'
        >>> pl = ['--%s' % b, 'Content-Disposition: form-data; name=\"name\"\n', 'Scofield', '--%s' % b, 'Content-Disposition: form-data; name=\"name\"\n', 'Lincoln', '--%s' % b, 'Content-Disposition: form-data; name=\"file\"; filename=\"test.txt\"', 'Content-Type: text/plain\n', 'just a test', '--%s' % b, 'Content-Disposition: form-data; name=\"id\"\n', '4008009001', '--%s--' % b, '']
        >>> payload = '\n'.join(pl)
        >>> r = Request({'REQUEST_METHOD':'POST', 'CONTENT_LENGTH':str(len(payload)), 'CONTENT_TYPE':'multipart/form-data; boundary=%s' % b, 'wsgi.input':StringIO(payload)})
        >>> r.get('name')
        u'Scofield'
        >>> r.gets('name')
        [u'Scofield', u'Lincoln']
        >>> f = r.get('file')
        >>> f.filename
        u'test.txt'
        >>> f.file.read()
        'just a test'
         N/A r N/A N/A N/A self _get_raw_input N/A key N/A N/A isinstance r list N/A N/A N/A r N/A 0 N/A r N/A get N/A N/A self key default N/A None N/A N/A 
        The same as request[key], but return default value if key is not found.

        >>> from StringIO import StringIO
        >>> r = Request({'REQUEST_METHOD':'POST', 'wsgi.input':StringIO('a=1&b=M%20M&c=ABC&c=XYZ&e=')})
        >>> r.get('a')
        u'1'
        >>> r.get('empty')
        >>> r.get('empty', 'DEFAULT')
        'DEFAULT'
         N/A r N/A N/A N/A N/A self _get_raw_input get key default N/A N/A isinstance r list N/A N/A N/A r N/A 0 N/A r N/A gets N/A N/A self key N/A N/A N/A 
        Get multiple values for specified key.

        >>> from StringIO import StringIO
        >>> r = Request({'REQUEST_METHOD':'POST', 'wsgi.input':StringIO('a=1&b=M%20M&c=ABC&c=XYZ&e=')})
        >>> r.gets('a')
        [u'1']
        >>> r.gets('c')
        [u'ABC', u'XYZ']
        >>> r.gets('empty')
        Traceback (most recent call last):
            ...
        KeyError: 'empty'
         N/A r N/A N/A N/A self _get_raw_input N/A key N/A N/A isinstance r list N/A N/A N/A r N/A N/A N/A r N/A get_raw_data N/A N/A self N/A N/A N/A 
        Get raw data from HTTP POST and return as str.

        >>> from StringIO import StringIO
        >>> r = Request({'REQUEST_METHOD':'POST', 'wsgi.input':StringIO('<xml><raw/>')})
        >>> r.get_raw_data()
        '<xml><raw/>'
         N/A fp N/A N/A self _environ N/A wsgi.input N/A N/A N/A fp read N/A __iter__ N/A N/A self N/A N/A N/A 
        Get all input parameter names.
        >>> from StringIO import StringIO
        >>> r = Request({'REQUEST_METHOD':'POST', 'wsgi.input':StringIO('a=1&b=M%20M&c=ABC&c=XYZ&e=')})
        >>> [key for key in r]
        ['a', 'c', 'b', 'e']
         N/A N/A N/A N/A N/A self _get_raw_input __iter__ N/A remote_addr N/A N/A self N/A N/A N/A 
        Get remote addr.

        >>> r = Request({'REMOTE_ADDR': '192.168.0.100'})
        >>> r.remote_addr
        '192.168.0.100'
         N/A N/A N/A N/A self _environ get REMOTE_ADDR 0.0.0.0 N/A property document_root N/A N/A self N/A N/A N/A 
        Get raw document_root as str. Return '' if no document_root.

        >>> r = Request({'DOCUMENT_ROOT': '/srv/path/to/doc'})
        >>> r.document_root
        '/srv/path/to/doc'
         N/A N/A N/A N/A self _environ get DOCUMENT_ROOT N/A property query_string N/A N/A self N/A N/A N/A 
        Get raw query string as str. Return '' if no query string.

        >>> r = Request({'QUERY_STRING': 'a=1&c=2'})
        >>> r.query_string
        'a=1&c=2'
        >>> r = Request({})
        >>> r.query_string
        ''
         N/A N/A N/A N/A self _environ get QUERY_STRING N/A property environ N/A N/A self N/A N/A N/A 
        Get raw environ as dict, both key, value are str.

        >>> r = Request({'REQUEST_METHOD': 'GET', 'wsgi.url_scheme':'http'})
        >>> r.environ.get('REQUEST_METHOD')
        'GET'
        >>> r.environ.get('wsgi.url_scheme')
        'http'
        >>> r.environ.get('SERVER_NAME')
        >>> r.environ.get('SERVER_NAME', 'unamed')
        'unamed'
         N/A N/A self _environ N/A property request_method N/A N/A self N/A N/A N/A 
        Get request method. The valid returned values are u'GET', u'POST', u'HEAD'.

        >>> r = Request({'REQUEST_METHOD': 'GET'})
        >>> r.request_method
        u'GET'
        >>> r = Request({'REQUEST_METHOD': 'POST'})
        >>> r.request_method
        u'POST'
         N/A N/A unicode N/A N/A N/A self _environ get REQUEST_METHOD GET N/A property path_info N/A N/A self N/A N/A N/A 
        Get request path as unicode.

        >>> r = Request({'PATH_INFO': '/test/a%20b.html'})
        >>> r.path_info
        '/test/a b.html'
         N/A N/A N/A urllib unquote N/A N/A N/A self _environ get PATH_INFO N/A property host N/A N/A self N/A N/A N/A 
        Get request host as unicode.

        >>> r = Request({'HTTP_HOST': 'localhost:8080'})
        >>> r.host
        u'localhost:8080'
         N/A N/A unicode N/A N/A N/A self _environ get HTTP_HOST N/A property headers N/A N/A self N/A N/A N/A 
        Get all HTTP headers with kv both unicode. The header names are 'XXX-XXX' uppercase.

        >>> r = Request({'HTTP_USER_AGENT': 'Mozilla/5.0', 'HTTP_ACCEPT': 'text/html'})
        >>> L = r.headers.items()
        >>> L.sort()
        >>> L
        [(u'ACCEPT', u'text/html'), (u'USER-AGENT', u'Mozilla/5.0')]
         _headers N/A N/A N/A N/A N/A hdrs N/A N/A N/A k v N/A N/A N/A self _environ iteritems N/A N/A N/A N/A k startswith HTTP_ N/A N/A N/A hdrs N/A N/A unicode N/A N/A N/A N/A N/A k N/A 5 replace _ - upper N/A N/A v decode utf-8 N/A hdrs N/A N/A N/A N/A self _fromcache CACHED_HTTP_HEADERS _headers N/A property header N/A N/A self header default N/A None N/A N/A 
        Get header from request as unicode, return None if not exist, or default if specified. 
        The header name is case-insensitive such as 'USER-AGENT' or u'content-type'.

        >>> r = Request({'HTTP_USER_AGENT': 'Mozilla/5.0', 'HTTP_ACCEPT': 'text/html'})
        >>> r.header('User-Agent')
        u'Mozilla/5.0'
        >>> r.header('USER-AGENT')
        u'Mozilla/5.0'
        >>> r.header(u'Accept')
        u'text/html'
        >>> r.header(u'Test')
        >>> r.header(u'Test', u'DEFAULT')
        u'DEFAULT'
         N/A N/A N/A N/A self headers get N/A N/A header upper default N/A cookies N/A N/A self N/A N/A N/A 
        Return all cookies as dict. Both the cookie name and values are unicode.

        >>> r = Request({'HTTP_COOKIE':'A=123; url=http%3A%2F%2Fwww.example.com%2F'})
        >>> r.cookies[u'A']
        u'123'
        >>> r.cookies[u'url']
        u'http://www.example.com/'
         _cookies N/A N/A N/A N/A N/A cookies N/A N/A N/A self _environ get HTTP_COOKIE N/A cs N/A N/A cookies N/A N/A c N/A N/A cookies split ; N/A N/A pos N/A N/A c find = N/A N/A pos 0 N/A N/A N/A cs N/A N/A unicode N/A N/A N/A c N/A pos strip N/A _unquote N/A c N/A N/A pos 1 N/A cs N/A N/A N/A N/A self _fromcache CACHED_COOKIES _cookies N/A property cookie N/A N/A self name default N/A None N/A N/A 
        Return specified cookie value as unicode. Default to None if cookie not exists.

        >>> r = Request({'HTTP_COOKIE':'A=123; url=http%3A%2F%2Fwww.example.com%2F'})
        >>> r.cookie(u'A')
        u'123'
        >>> r.cookie(u'url')
        u'http://www.example.com/'
        >>> r.cookie(u'test')
        >>> r.cookie(u'test', u'DEFAULT')
        u'DEFAULT'
         N/A N/A N/A N/A self cookies get name default N/A N/A N/A UTC_0 N/A UTC +00:00 Response N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self _status 200 OK N/A N/A self _headers N/A CONTENT-TYPE text/html; charset=utf-8 N/A N/A self _output N/A N/A N/A self _cookies N/A N/A headers N/A N/A self N/A N/A N/A 
        Return response headers as [(key1, value1), (key2, value2)...] including cookies.

        >>> r = Response()
        >>> r.headers
        [('Content-Type', 'text/html; charset=utf-8'), ('X-Powered-By', 'transwarp/1.0')]
        >>> r.set_cookie('s1', 'ok', 3600)
        >>> r.headers
        [('Content-Type', 'text/html; charset=utf-8'), ('Set-Cookie', 's1=ok; Max-Age=3600; Path=/; HttpOnly'), ('X-Powered-By', 'transwarp/1.0')]
         N/A L N/A N/A N/A N/A _RESPONSE_HEADER_DICT get k k v N/A N/A k v N/A N/A N/A self _headers iteritems N/A N/A self _cookies N/A N/A v N/A N/A N/A self _cookies itervalues N/A N/A N/A N/A L append N/A Set-Cookie v N/A N/A N/A L append _HEADER_X_POWERED_BY N/A L N/A property header N/A N/A self name N/A N/A N/A 
        Get header by name, case-insensitive.

        >>> r = Response()
        >>> r.header('content-type')
        'text/html; charset=utf-8'
        >>> r.header('CONTENT-type')
        'text/html; charset=utf-8'
        >>> r.header('X-Powered-By')
         N/A key N/A N/A name upper N/A N/A N/A key _RESPONSE_HEADER_DICT N/A N/A key name N/A N/A N/A N/A self _headers get key N/A unset_header N/A N/A self name N/A N/A N/A 
        Unset header by name and value.

        >>> r = Response()
        >>> r.header('content-type')
        'text/html; charset=utf-8'
        >>> r.unset_header('CONTENT-type')
        >>> r.header('content-type')
        >>> r.unset_header('content-TYPE')
         N/A key N/A N/A name upper N/A N/A N/A key _RESPONSE_HEADER_DICT N/A N/A key name N/A N/A key N/A self _headers N/A N/A N/A N/A self _headers N/A key N/A set_header N/A N/A self name value N/A N/A N/A 
        Set header by name and value.

        >>> r = Response()
        >>> r.header('content-type')
        'text/html; charset=utf-8'
        >>> r.set_header('CONTENT-type', 'image/png')
        >>> r.header('content-TYPE')
        'image/png'
         N/A key N/A N/A name upper N/A N/A N/A key _RESPONSE_HEADER_DICT N/A N/A key name N/A N/A N/A self _headers N/A key N/A _safe_str value N/A content_type N/A N/A self N/A N/A N/A 
        Get content type from response. This is a shortcut for header('Content-Type').

        >>> r = Response()
        >>> r.content_type
        'text/html; charset=utf-8'
        >>> r.content_type = 'application/json'
        >>> r.content_type
        'application/json'
         N/A N/A N/A self header CONTENT-TYPE N/A property content_type N/A N/A self value N/A N/A N/A 
        Set content type for response. This is a shortcut for set_header('Content-Type', value).
         N/A value N/A N/A N/A N/A self set_header CONTENT-TYPE value N/A N/A N/A N/A self unset_header CONTENT-TYPE N/A N/A content_type setter content_length N/A N/A self N/A N/A N/A 
        Get content length. Return None if not set.

        >>> r = Response()
        >>> r.content_length
        >>> r.content_length = 100
        >>> r.content_length
        '100'
         N/A N/A N/A self header CONTENT-LENGTH N/A property content_length N/A N/A self value N/A N/A N/A 
        Set content length, the value can be int or str.

        >>> r = Response()
        >>> r.content_length = '1024'
        >>> r.content_length
        '1024'
        >>> r.content_length = 1024 * 8
        >>> r.content_length
        '8192'
         N/A N/A N/A self set_header CONTENT-LENGTH N/A str value N/A N/A content_length setter delete_cookie N/A N/A self name N/A N/A N/A 
        Delete a cookie immediately.

        Args:
          name: the cookie name.
         N/A N/A N/A self set_cookie name __deleted__ expires N/A N/A N/A time time 31536000 N/A set_cookie N/A N/A self name value max_age expires path domain secure http_only N/A None None / None False True N/A N/A 
        Set a cookie.

        Args:
          name: the cookie name.
          value: the cookie value.
          max_age: optional, seconds of cookie's max age.
          expires: optional, unix timestamp, datetime or date object that indicate an absolute time of the 
                   expiration time of cookie. Note that if expires specified, the max_age will be ignored.
          path: the cookie path, default to '/'.
          domain: the cookie domain, default to None.
          secure: if the cookie secure, default to False.
          http_only: if the cookie is for http only, default to True for better safty 
                     (client-side script cannot access cookies with HttpOnly flag).

        >>> r = Response()
        >>> r.set_cookie('company', 'Abc, Inc.', max_age=3600)
        >>> r._cookies
        {'company': 'company=Abc%2C%20Inc.; Max-Age=3600; Path=/; HttpOnly'}
        >>> r.set_cookie('company', r'Example="Limited"', expires=1342274794.123, path='/sub/')
        >>> r._cookies
        {'company': 'company=Example%3D%22Limited%22; Expires=Sat, 14-Jul-2012 14:06:34 GMT; Path=/sub/; HttpOnly'}
        >>> dt = datetime.datetime(2012, 7, 14, 22, 6, 34, tzinfo=UTC('+8:00'))
        >>> r.set_cookie('company', 'Expires', expires=dt)
        >>> r._cookies
        {'company': 'company=Expires; Expires=Sat, 14-Jul-2012 14:06:34 GMT; Path=/; HttpOnly'}
         N/A L N/A N/A %s=%s N/A N/A _quote name N/A _quote value N/A N/A expires None N/A N/A N/A isinstance expires N/A float int long N/A N/A N/A N/A L append N/A Expires=%s N/A N/A N/A N/A N/A datetime datetime fromtimestamp expires UTC_0 strftime %a, %d-%b-%Y %H:%M:%S GMT N/A N/A isinstance expires N/A N/A datetime date N/A datetime datetime N/A N/A N/A N/A L append N/A Expires=%s N/A N/A N/A N/A expires astimezone UTC_0 strftime %a, %d-%b-%Y %H:%M:%S GMT N/A N/A N/A isinstance max_age N/A int long N/A N/A N/A N/A L append N/A Max-Age=%d max_age N/A N/A N/A L append N/A Path=%s path N/A domain N/A N/A N/A N/A L append N/A Domain=%s domain N/A secure N/A N/A N/A N/A L append Secure N/A http_only N/A N/A N/A N/A L append HttpOnly N/A N/A N/A self _cookies N/A name N/A N/A ;  join L N/A unset_cookie N/A N/A self name N/A N/A N/A 
        Unset a cookie.

        >>> r = Response()
        >>> r.set_cookie('company', 'Abc, Inc.', max_age=3600)
        >>> r._cookies
        {'company': 'company=Abc%2C%20Inc.; Max-Age=3600; Path=/; HttpOnly'}
        >>> r.unset_cookie('company')
        >>> r._cookies
        {}
         N/A N/A name N/A self _cookies N/A N/A N/A N/A self _cookies N/A name N/A status_code N/A N/A self N/A N/A N/A 
        Get response status code as int.

        >>> r = Response()
        >>> r.status_code
        200
        >>> r.status = 404
        >>> r.status_code
        404
        >>> r.status = '500 Internal Error'
        >>> r.status_code
        500
         N/A N/A int N/A N/A self _status N/A 3 N/A property status N/A N/A self N/A N/A N/A 
        Get response status. Default to '200 OK'.

        >>> r = Response()
        >>> r.status
        '200 OK'
        >>> r.status = 404
        >>> r.status
        '404 Not Found'
        >>> r.status = '500 SERVER ERR'
        >>> r.status
        '500 SERVER ERR'
         N/A N/A self _status N/A property status N/A N/A self value N/A N/A N/A 
        Set response status as int or str.

        >>> r = Response()
        >>> r.status = 404
        >>> r.status
        '404 Not Found'
        >>> r.status = '500 ERR'
        >>> r.status
        '500 ERR'
        >>> r.status = u'403 Denied'
        >>> r.status
        '403 Denied'
        >>> r.status = 99
        Traceback (most recent call last):
          ...
        ValueError: Bad response code: 99
        >>> r.status = 'ok'
        Traceback (most recent call last):
          ...
        ValueError: Bad response code: ok
        >>> r.status = [1, 2, 3]
        Traceback (most recent call last):
          ...
        TypeError: Bad type of response code.
         N/A N/A isinstance value N/A int long N/A N/A N/A N/A value 100 N/A value 999 N/A N/A st N/A N/A _RESPONSE_STATUSES get value N/A st N/A N/A N/A self _status N/A %d %s N/A value st N/A N/A N/A self _status N/A str value N/A N/A N/A ValueError N/A Bad response code: %d value N/A N/A N/A isinstance value unicode N/A N/A value N/A N/A value encode utf-8 N/A N/A N/A isinstance value str N/A N/A N/A N/A _RE_RESPONSE_STATUS match value N/A N/A N/A self _status value N/A N/A N/A ValueError N/A Bad response code: %s value N/A N/A N/A TypeError Bad type of response code. N/A N/A status setter body N/A N/A self N/A N/A N/A 
        Get response body as list.
         N/A N/A self _output N/A property write N/A N/A self value N/A N/A N/A s N/A N/A isinstance value str N/A N/A s value N/A N/A N/A isinstance value unicode N/A N/A s N/A N/A value encode utf-8 N/A N/A N/A value None N/A N/A s N/A str value N/A s N/A N/A N/A N/A N/A self _output append s N/A reset N/A N/A self N/A N/A N/A N/A N/A self _output N/A N/A N/A N/A Template N/A object N/A __init__ N/A N/A self template_name model N/A None kw N/A N/A 
        Init a template object with template name, model as dict, and additional kw that will append to model.

        >>> t = Template('hello.html', {'title': 'Hello', 'copyright':'@2010'}, copyright='@2012')
        >>> t.model['title']
        'Hello'
        >>> t.model['copyright']
        '@2012'
         N/A N/A self template_name template_name N/A N/A self model N/A dict N/A model N/A N/A N/A N/A N/A self model update model N/A N/A N/A N/A self model update kw N/A N/A _ N/A __builtin__ __dict__ N/A N/A N/A N/A self model N/A _ _ N/A N/A _init_jinja2 N/A N/A templ_dir N/A kw N/A N/A 
    Render using jinja2.

    >>> tmpl_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'test')
    >>> func = _init_jinja2(tmpl_path)
    >>> r = func('jinja2-test.html', names=['Michael', 'Tracy'])
    >>> r.replace('\n', '')
    '<p>Hello, Michael.</p><p>Hello, Tracy.</p>'
     jinja2 Environment FileSystemLoader N/A env N/A Environment loader N/A FileSystemLoader templ_dir kw duration_filter N/A N/A value N/A N/A N/A N/A isinstance value N/A float int long N/A N/A v N/A int N/A value 0.5 N/A ss N/A v 60 N/A v N/A v 60 N/A mm N/A v 60 N/A hh N/A v 60 N/A N/A hh 0 N/A N/A value N/A %d:%02d:%02d N/A hh mm ss N/A N/A value N/A %d:%02d N/A mm ss N/A value N/A datetime_filter N/A N/A value format N/A %y-%m-%d %H:%M N/A N/A N/A isinstance value N/A float int long N/A N/A value N/A N/A N/A datetime datetime fromtimestamp value N/A N/A N/A value strftime format N/A date_filter N/A N/A value format N/A %y-%m-%d N/A N/A N/A isinstance value N/A float int long N/A N/A value N/A N/A N/A datetime datetime fromtimestamp value N/A N/A N/A value strftime format N/A time_filter N/A N/A value format N/A %H:%M N/A N/A N/A isinstance value N/A float int long N/A N/A value N/A N/A N/A datetime datetime fromtimestamp value N/A N/A N/A value strftime format N/A jsstr_filter N/A N/A value N/A N/A N/A N/A isinstance value str N/A N/A value N/A N/A value decode utf-8 N/A N/A N/A N/A N/A N/A N/A N/A N/A value replace " \" replace ' \' replace \n replace \r N/A ellipsis_filter N/A N/A value N/A N/A N/A N/A isinstance value basestring N/A N/A N/A N/A len value 33 N/A N/A N/A %s...%s N/A N/A value N/A 20 N/A value N/A -10 N/A value N/A url_filter N/A N/A value N/A N/A N/A N/A isinstance value unicode N/A N/A value N/A N/A value encode utf-8 N/A N/A isinstance value str N/A N/A N/A N/A urllib quote value N/A N/A str value N/A size_filter N/A N/A value N/A N/A N/A N/A isinstance value N/A int long N/A N/A N/A value 1024 N/A N/A N/A %s bytes value N/A N/A N/A value 1048576 N/A N/A value N/A value 1024 N/A N/A %s KB value N/A N/A N/A value 1073741824 N/A N/A value N/A value 1048576 N/A N/A %s MB value N/A N/A value N/A value 1073741824 N/A N/A %s GB value N/A value N/A N/A N/A N/A env filters N/A duration duration_filter N/A N/A N/A env filters N/A dt datetime_filter N/A N/A N/A env filters N/A d date_filter N/A N/A N/A env filters N/A t time_filter N/A N/A N/A env filters N/A jsstr jsstr_filter N/A N/A N/A env filters N/A elli ellipsis_filter N/A N/A N/A env filters N/A url url_filter N/A N/A N/A env filters N/A size size_filter _render N/A N/A _jinja2_temp_name_ N/A model N/A N/A N/A N/A N/A N/A N/A N/A env get_template _jinja2_temp_name_ render model encode utf-8 N/A N/A _render N/A _install_template_engine N/A N/A name templ_dir N/A kw N/A N/A name N/A N/A N/A str name lower N/A N/A name jinja2 N/A N/A N/A _init_jinja2 templ_dir kw N/A N/A StandardError N/A no such template engine: %s name N/A _default_error_handler N/A N/A e start_response is_debug N/A N/A N/A N/A isinstance e HttpError N/A N/A N/A N/A logging info N/A HttpError: %s N/A e status N/A headers N/A N/A e headers N/A N/A N/A N/A headers append N/A Content-Type text/html N/A N/A start_response N/A e status headers N/A N/A <html><body><h1>%s</h1></body></html> N/A e status N/A N/A N/A logging exception Exception: N/A N/A start_response 500 Internal Server Error N/A N/A Content-Type text/html _HEADER_X_POWERED_BY N/A is_debug N/A N/A N/A _debug N/A N/A <html><body><h1>500 Internal Server Error</h1><h3>%s</h3></body></html> N/A str e N/A view N/A N/A path N/A N/A N/A 
    A view decorator that render a view by dict.

    >>> @view('test/view.html')
    ... def hello():
    ...     return dict(name='Bob')
    >>> t = hello()
    >>> isinstance(t, Template)
    True
     _decorator N/A N/A func N/A N/A _wrapper N/A N/A N/A args kw N/A N/A N/A _log N/A call @view: %s path N/A r N/A func args kw N/A N/A isinstance r dict N/A N/A N/A Template path r N/A r N/A N/A N/A functools wraps func N/A _wrapper N/A N/A _decorator N/A _html_encode N/A N/A s N/A N/A N/A N/A N/A N/A N/A N/A N/A s replace < &lt; replace > &gt; replace &nbsp; N/A _debug N/A N/A N/A N/A N/A N/A etype evalue tb N/A N/A sys exc_info N/A N/A tb tb_next N/A N/A tb N/A tb tb_next N/A stack N/A N/A f N/A tb tb_frame N/A f N/A N/A N/A N/A stack append f N/A f N/A f f_back N/A N/A N/A stack reverse N/A L N/A 
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Debug Info</title>
    <style>
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 18px;
  color: #333;
  background-color: #fff;
}
a {
  color: #0088cc;
  text-decoration: none;
}
a:hover {
  color: #005580;
  text-decoration: underline;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: inherit;
  font-weight: bold;
  color: inherit;
  text-rendering: optimizelegibility;
}
h1 {
  font-size: 30px;
  line-height: 36px;
}
h1 small {
  font-size: 18px;
}
h2 {
  font-size: 24px;
  line-height: 36px;
}
h3 {
  font-size: 18px;
  line-height: 27px;
}
div {
  padding: 0px;
  margin: 0px;
}
div.line {
  border-top: solid 1px #ccc;
  margin: 6px 0px;
}
div.icon {
  background-position: 2px center;
  background-repeat: no-repeat;
  padding-left: 28px;
}
div.open {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAADpSURBVHjapFNLCoMwEB1LFHHlTtDLpBdx6aGydNsrFPQk3Sm4qisXfpsXTKBYbCQDA2Z48/IyvvG2bSOX8EAghMB3xRjjQRCQTnlWoHmeaRxHk/Jcy/K9KApSiHVdqyzLeJqmVre2bcubpqlActtv4EmS0LIsVgksetCrFKAImVcCPYZgmiaVV0LjmR4SCn3f/yXyfZ/iODaKjQJMdxgGyvP8lKAsS4qi6FuBfgJYX+9z6VrtgQAKEM+HOCWAN4D9OYMwDK0HeJiB019w8YF2Yi2tae1EYPd9MLtwh7e7rru0TGYbXeIjwADyUf86yz+/bQAAAABJRU5ErkJggg==);
}
div.closed {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFESURBVHjapFM7a4RAEF6DL7QRLAT9M16dFMEmXJPSv5PeKoRASCMJpPf+ioWChWCl4DPOxB334iUkODDu7MznvHZGmqaJ7SEZPlEUwZHIsuyrqso4z3cE9X3P2rYlnu+nWX0Iw/DLwTiOied5vuu6f4qa57mfZVkCTuQlgu84DhuGgUBlWWI0IMjGtm2yATZNU59KgB8hTZGapmFBEKAcx/HGzoOhg67rkEWCH4Zxlb/b+V0WAVVVnQG7cY02142yoijMsizKiDKAeuu6Zrd39+SgXVpyHRxJ9/b6xAzDOM+Al4DPNfz+AjzbjQPe8fg5IvDNMcTz42XVwWwA9mIPdF0nIPZDaCLULTZw04Ndr3BpDiRJYu+PD5T2T3NwtUQ4zaOJSs6apjHTNJFBFm2AXfaBduEAs10Uxb+WCTPdu86fAgwA4uoU1viDGFwAAAAASUVORK5CYII=);
}
div.indent {
  padding-left: 26px;
}
div.local {
  background-color: #efefef;
}
div.normal {
  color: #0088cc;
  cursor: pointer;
}
div.hl {
  color: #0088cc;
  cursor: pointer;
  background-color: #efefef;
}
    </style>
    <script type="text/javascript">
function changeClass(ele, fromCls, toCls) {
  ele.className = ele.className.replace(fromCls, toCls);
}
function changeIcon(ele, childId) {
  if (ele.className.indexOf('open')!=(-1)) {
    ele.className = ele.className.replace('open', 'closed');
    document.getElementById(childId).style.display='none';
  }
  else {
    ele.className = ele.className.replace('closed', 'open');
    document.getElementById(childId).style.display='';
  }
}
    </script>
</head>
<body>
     <div><h3>500 Internal Server Error</h3></div><div class="line"></div><div><div class="indent icon">Traceback (most recent call last):</div></div> N/A n 0 N/A frame stack N/A N/A n N/A n 1 N/A line1 N/A File "%s", line %s, in %s N/A N/A N/A frame f_code co_filename N/A frame f_lineno N/A N/A frame f_code co_name N/A line2 N/A N/A linecache getline N/A N/A frame f_code co_filename N/A frame f_lineno N/A frame f_globals N/A part1 N/A <div><div class="indent icon closed normal" onclick="changeIcon(this, 'div-%s')" onmouseover="changeClass(this, 'normal', 'hl')" onmouseout="changeClass(this, 'hl', 'normal')">&nbsp;&nbsp;%s</div> N/A n line1 N/A part2 N/A line2 N/A N/A part2 N/A <div class="indent icon">&nbsp;&nbsp;&nbsp;&nbsp;%s</div> N/A N/A line2 strip N/A part3 N/A <div id="div-%s" class="icon local" style="display:none"> n N/A local_L N/A N/A N/A key value N/A N/A N/A frame f_locals items N/A N/A s <Error get value> N/A N/A N/A s N/A str value N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A local_L append N/A <div class="indent">&nbsp;&nbsp;&nbsp;&nbsp;%s = %s <span class="t">%s</span></div> N/A key N/A _html_encode s N/A _html_encode N/A str N/A type value N/A N/A local_L N/A N/A N/A N/A local_L append <div class="indent">&nbsp;&nbsp;&nbsp;&nbsp;no local variable</div> N/A part4 N/A N/A join local_L N/A part5 </div></div> N/A N/A N/A L append part1 N/A N/A N/A L append part2 N/A N/A N/A L append part3 N/A N/A N/A L append part4 N/A N/A N/A L append part5 N/A N/A N/A L append N/A <div><div class="icon">%s: %s</div></div> N/A N/A etype __name__ N/A evalue message N/A N/A N/A L append <div class="line"></div><div>Powered by <a href="http://www.itranswarp.com/" target="_blank">iTranswarp</a></div></body></html> N/A L N/A WSGIApplication N/A object N/A _getmtime N/A N/A self fpath N/A N/A N/A N/A N/A fpath endswith .pyc N/A N/A fpath N/A fpath N/A -1 N/A N/A N/A N/A os path getmtime fpath N/A _autoreload N/A N/A self N/A N/A N/A shouldreload False N/A mod N/A self modules N/A N/A N/A N/A N/A self _getmtime N/A mod __file__ N/A mod mtime N/A N/A N/A _log N/A [DEBUG] auto reload module: %s N/A mod __name__ N/A N/A reload mod N/A N/A mod mtime N/A N/A self _getmtime N/A mod __file__ N/A shouldreload True N/A shouldreload N/A N/A N/A N/A self get_static_routes N/A self post_static_routes N/A self get_re_routes N/A self post_re_routes N/A N/A self _parse_routes N/A self modules N/A self _debug N/A _parse_modules N/A N/A self modules debug N/A N/A N/A L N/A N/A mod modules N/A N/A spam N/A load_module mod N/A debug N/A N/A N/A spam mtime N/A N/A self _getmtime N/A spam __file__ N/A N/A N/A L append spam N/A L N/A _parse_routes N/A N/A self mods debug N/A N/A N/A get_static_routes N/A N/A post_static_routes N/A N/A get_re_routes N/A N/A post_re_routes N/A N/A mod mods N/A N/A p N/A dir mod N/A N/A f N/A getattr mod p N/A N/A callable f N/A N/A route N/A getattr f __web_route__ None N/A route N/A N/A r N/A Route route f N/A N/A r static N/A N/A N/A f __web_get__ N/A N/A N/A get_static_routes N/A N/A r str_route r N/A N/A _log N/A found static route: GET %s route N/A N/A f __web_post__ N/A N/A N/A post_static_routes N/A N/A r str_route r N/A N/A _log N/A found static route: POST %s route N/A N/A N/A f __web_get__ N/A N/A N/A N/A get_re_routes append r N/A N/A _log N/A found regex route: GET %s route N/A N/A f __web_post__ N/A N/A N/A N/A post_re_routes append r N/A N/A _log N/A found regex route: POST %s route N/A N/A N/A get_re_routes append N/A Route /static/<path:path> static_file_handler N/A N/A N/A get_re_routes append N/A Route /favicon.ico favicon_handler N/A N/A get_static_routes post_static_routes get_re_routes post_re_routes N/A _mkfilters N/A N/A self filters N/A N/A N/A filters N/A N/A L N/A list filters N/A N/A N/A L reverse N/A func N/A self _exec N/A f L N/A N/A func N/A f func N/A func N/A N/A N/A self _exec N/A __init__ N/A N/A self modules filters document_root encoding template_engine N/A None None utf-8 None kw N/A N/A 
        Init a WSGIApplication.

        Args:
          modules: a list of modules that contains routes.
          document_root: document root path, default to None.
          template_engine: name of template engine, or function that can install a template engine.
                           The built-in supported template engines are 'mako', 'jinja2' and 'cheetah'.
          kw: keywords args:
              DEBUG = True|False, default to False. Modules will automatically reloaded if changed in debug mode.
         N/A N/A self _debug N/A N/A kw pop DEBUG False N/A N/A self modules N/A N/A self _parse_modules modules N/A self _debug N/A N/A self _filters N/A N/A self _mkfilters filters N/A N/A N/A self get_static_routes N/A self post_static_routes N/A self get_re_routes N/A self post_re_routes N/A N/A self _parse_routes N/A self modules N/A self _debug N/A N/A self error_handler _default_error_handler N/A N/A self document_root document_root N/A N/A self _application N/A Dict document_root document_root debug N/A self _debug N/A N/A _log N/A load application: %s N/A str N/A self _application N/A N/A isinstance template_engine basestring N/A N/A N/A self template_render N/A _install_template_engine template_engine N/A self document_root N/A N/A N/A callable template_engine N/A N/A N/A self template_render template_engine N/A _exec N/A N/A self r kw start_response N/A N/A N/A ctx N/A exec_start N/A N/A time time N/A N/A N/A ret N/A N/A kw None N/A N/A r execute N/A N/A r execute kw N/A N/A N/A RedirectError N/A e N/A N/A N/A N/A N/A ctx response set_header X-Execution-Time N/A str N/A N/A N/A time time exec_start N/A N/A N/A N/A ctx response set_header Location N/A e location N/A N/A start_response N/A e status N/A N/A ctx response headers N/A N/A N/A N/A Exception N/A e N/A N/A N/A N/A self error_handler e start_response N/A self _debug N/A N/A N/A N/A ctx response set_header X-Execution-Time N/A %.5f N/A N/A N/A time time exec_start N/A N/A isinstance ret str N/A N/A N/A N/A self _as_str ret start_response N/A N/A isinstance ret unicode N/A N/A N/A N/A self _as_str N/A N/A ret encode utf-8 start_response N/A N/A N/A isinstance ret Template N/A N/A render_start N/A N/A time time N/A N/A N/A s N/A N/A self template_render N/A ret template_name N/A ret model N/A N/A N/A N/A ctx response set_header X-Render-Time N/A %.5f N/A N/A N/A time time render_start N/A N/A N/A self _as_str s start_response N/A N/A N/A Exception N/A e N/A N/A N/A N/A self error_handler e start_response N/A self _debug N/A N/A N/A isinstance ret N/A collections Iterable N/A isinstance ret N/A types GeneratorType N/A N/A N/A start_response N/A N/A ctx response status N/A N/A ctx response headers N/A ret N/A N/A ret None N/A N/A N/A N/A self _as_str N/A str ret start_response N/A N/A start_response N/A N/A ctx response status N/A N/A ctx response headers N/A N/A N/A ctx response body N/A _as_str N/A N/A self s start_response N/A N/A N/A N/A N/A N/A ctx response write s N/A N/A start_response N/A N/A ctx response status N/A N/A ctx response headers N/A N/A N/A ctx response body N/A __call__ N/A N/A self environ start_response N/A N/A N/A N/A self _debug N/A N/A N/A N/A self _autoreload N/A method N/A environ N/A REQUEST_METHOD N/A is_get N/A method GET N/A is_post N/A method POST N/A N/A N/A is_get N/A is_post N/A N/A N/A N/A self error_handler N/A HttpError 400 start_response N/A self _debug N/A kw None N/A static_routes N/A is_get N/A self get_static_routes N/A self post_static_routes N/A path_info N/A environ N/A PATH_INFO N/A r N/A N/A static_routes get path_info None N/A r N/A N/A N/A _log N/A matched static route: %s path_info N/A N/A re_routes N/A is_get N/A self get_re_routes N/A self post_re_routes N/A rt re_routes N/A N/A m N/A N/A N/A rt route match path_info N/A m N/A N/A r rt N/A kw N/A N/A m groupdict N/A N/A _log N/A matched regex route: %s path_info N/A N/A N/A r N/A N/A N/A _log N/A no route matched: %s path_info N/A N/A N/A self error_handler N/A HttpError 404 start_response N/A self _debug N/A ctx N/A N/A ctx application N/A self _application N/A N/A ctx server_name N/A N/A environ get SERVER_NAME N/A N/A ctx request N/A Request environ N/A N/A ctx response N/A Response N/A N/A N/A N/A N/A self _filters r kw start_response N/A N/A N/A ctx application N/A N/A ctx server_name N/A N/A ctx request N/A N/A ctx response N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A N/A sys path append . N/A doctest N/A N/A N/A doctest testmod