Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Dict AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword ListLoad Str attr Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad BinOpMod Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Str Str CompareIs NameLoad NameLoad For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword NameLoad attr body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad BoolOpOr NameLoad Str NameLoad CompareEq NameLoad NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Assign NameStore NameLoad If NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AugAssignBitOr NameStore CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad If NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword ListLoad Str attr Assign NameStore AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore IfExp NameLoad NameLoad Str Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad orelse If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str For NameStore Call NameLoad NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If BoolOpAnd NameLoad CompareEq NameLoad NameLoad body Assign NameStore NameLoad orelse If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareEq Call AttributeLoad NameLoad attr Str Num body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore BinOpMod Str NameLoad Assign NameStore Dict Str Str Str Str Str Str Str NameLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Return Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore ListLoad TupleLoad Str Str orelse TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Str If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad BinOpMod Str TupleLoad NameLoad NameLoad attr Str Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Pass orelse Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Str Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Dict Str Str Str NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str NameLoad If CompareLtE Call NameLoad NameLoad NameLoad body Return ListComp TupleLoad Str NameLoad comprehension NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Return ListLoad TupleLoad Str AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Expr Call NameLoad NameLoad If NameLoad body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Raise decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body If Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Assign NameStore Str orelse Assign NameStore Str Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Assign NameStore Num While Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num Assign NameStore BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Return For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Assign NameStore Dict Str NameLoad Expr Call NameLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr If UnaryOpNot NameLoad body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Num Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Return ListLoad TupleLoad Str AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad TupleLoad NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body TryExcept body For NameStore Call AttributeLoad NameLoad attr NameLoad body If NameLoad body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body TryExcept body For NameStore Call AttributeLoad NameLoad attr NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Return ListLoad TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return ListLoad TupleLoad Str Str If AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr body Return ListLoad TupleLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot BoolOpOr AttributeLoad NameLoad attr NameLoad body Return ListLoad TupleLoad Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return ListLoad TupleLoad Str BinOpMod Str Call AttributeLoad Str attr NameLoad Assign NameStore IfExp CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad ListLoad TryFinally body TryExcept body Assign NameStore BinOpMod Str TupleLoad IfExp NameLoad Call AttributeLoad Str attr NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Dict Str Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return ListLoad TupleLoad Str NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Raise finalbody If CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Str body Expr Call NameLoad NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body TryExcept body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return CompareIsNot Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Return Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad orelse Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str If NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad BinOpAdd AttributeLoad NameLoad attr ListLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr ListLoad NameLoad Index Num If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad Call NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad Str body Raise Call NameLoad Str Return GeneratorExp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body If NameLoad body If CompareGt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return BinOpAdd ListLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad NameLoad attr attr Str Str Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad TryFinally body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad For NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad Call NameLoad NameLoad Call NameLoad Assign AttributeStore NameLoad attr Dict For NameStore BoolOpOr NameLoad TupleLoad body If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict For NameStore BoolOpOr NameLoad TupleLoad body If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Return Call NameLoad NameLoad ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad orelse Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If Call AttributeLoad NameLoad attr body If CompareEq Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad NameLoad IfExp CompareIsNot NameLoad NameLoad TupleLoad NameLoad NameLoad IfExp NameLoad TupleLoad NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Index Str Assign NameStore Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Yield Call AttributeLoad NameLoad attr Expr Yield Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Assign NameStore AttributeLoad AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr IfExp NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad CompareNotEq Call AttributeLoad NameLoad attr Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr CompareIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareGt Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If CompareLt Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If CompareGt Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Dict Str Str BinOpMod Str NameLoad Str Return BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str NameLoad NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Num While NameLoad body If CompareGtE NameLoad NameLoad body Return If CompareNotIn NameLoad NameLoad body Break Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad AugAssignAdd NameStore Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str Num Index Num If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num Return IfExp CompareEq Call NameLoad NameLoad Num TupleLoad SubscriptLoad NameLoad Index Num Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign NameStore ListLoad TupleLoad Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Dict Str Str BinOpMod Str NameLoad Str If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Return ListComp AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr comprehension NameStore Call AttributeLoad NameLoad attr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Dict Str Str BinOpMod Str NameLoad Str If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr Num body Return AttributeLoad NameLoad attr Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr Str CompareNotEq Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A Handler for data backup operation.

Generic datastore admin console transfers control to ConfirmBackupHandler
after selection of entities. The ConfirmBackupHandler confirms with user
his choice, enters a backup name and transfers control to
DoBackupHandler. DoBackupHandler starts backup mappers and displays confirmation
page.

This module also contains actual mapper code for backing data over.
 __future__ with_statement N/A cStringIO N/A datetime N/A itertools N/A logging N/A os N/A random N/A re N/A time N/A urllib N/A webapp2 N/A xml.dom.minidom google.appengine.datastore entity_pb google.appengine.api apiproxy_stub_map google.appengine.api app_identity google.appengine.api blobstore blobstore_api google.appengine.api capabilities google.appengine.api datastore google.appengine.api datastore_types google.appengine.api files google.appengine.api taskqueue google.appengine.api urlfetch google.appengine.api.files records google.appengine.api.taskqueue taskqueue_service_pb google.appengine.datastore datastore_query google.appengine.datastore datastore_rpc google.appengine.ext blobstore google.appengine.ext db google.appengine.ext deferred google.appengine.ext.datastore_admin backup_pb2 google.appengine.ext.datastore_admin utils google.appengine.ext.mapreduce context google.appengine.ext.mapreduce datastore_range_iterators db_iters google.appengine.ext.mapreduce input_readers google.appengine.ext.mapreduce model google.appengine.ext.mapreduce operation op google.appengine.ext.mapreduce output_writers google.appengine.runtime apiproxy_errors N/A XSRF_ACTION backup N/A BUCKET_PATTERN ^([a-zA-Z0-9]+([\-_]+[a-zA-Z0-9]+)*)(\.([a-zA-Z0-9]+([\-_]+[a-zA-Z0-9]+)*))*$ N/A MAX_BUCKET_LEN 222 N/A MIN_BUCKET_LEN 3 N/A MAX_BUCKET_SEGMENT_LEN 63 N/A NUM_KINDS_DEFERRED_THRESHOLD 10 N/A MAX_BLOBS_PER_DELETE 500 N/A TEST_WRITE_FILENAME_PREFIX datastore_backup_write_test N/A MAX_KEYS_LIST_SIZE 100 N/A MAX_TEST_FILENAME_TRIES 10 N/A MEANING_TO_PRIMITIVE_TYPE N/A N/A N/A entity_pb Property GD_WHEN N/A N/A entity_pb Property GD_RATING N/A N/A entity_pb Property ATOM_LINK N/A N/A entity_pb Property ATOM_CATEGORY N/A N/A entity_pb Property GD_PHONENUMBER N/A N/A entity_pb Property GD_POSTALADDRESS N/A N/A entity_pb Property GD_EMAIL N/A N/A entity_pb Property GD_IM N/A N/A entity_pb Property BLOBKEY N/A N/A entity_pb Property TEXT N/A N/A entity_pb Property BLOB N/A N/A entity_pb Property BYTESTRING N/A N/A backup_pb2 EntitySchema DATE_TIME N/A N/A backup_pb2 EntitySchema RATING N/A N/A backup_pb2 EntitySchema LINK N/A N/A backup_pb2 EntitySchema CATEGORY N/A N/A backup_pb2 EntitySchema PHONE_NUMBER N/A N/A backup_pb2 EntitySchema POSTAL_ADDRESS N/A N/A backup_pb2 EntitySchema EMAIL N/A N/A backup_pb2 EntitySchema IM_HANDLE N/A N/A backup_pb2 EntitySchema BLOB_KEY N/A N/A backup_pb2 EntitySchema TEXT N/A N/A backup_pb2 EntitySchema BLOB N/A N/A backup_pb2 EntitySchema SHORT_BLOB ConfirmBackupHandler N/A N/A webapp2 RequestHandler N/A N/A Handler to deal with requests from the admin console to backup data. N/A SUFFIX confirm_backup Render N/A N/A cls handler N/A N/A N/A Rendering method that can be called by main.py.

    Args:
      handler: the webapp2.RequestHandler invoking the method
     N/A kinds N/A N/A N/A handler request get_all kind N/A N/A sizes_known size_total remainder N/A N/A utils ParseKindsAndSizes kinds N/A notreadonly_warning N/A N/A N/A N/A capabilities CapabilitySet datastore_v3 capabilities N/A write is_enabled N/A blob_warning N/A bool N/A N/A N/A N/A N/A blobstore BlobInfo all count 1 N/A template_params N/A form_target kind_list remainder sizes_known size_total queues cancel_url namespaces xsrf_token notreadonly_warning blob_warning backup_name N/A DoBackupHandler SUFFIX kinds remainder sizes_known size_total None N/A N/A N/A handler request get cancel_url N/A get_namespaces N/A N/A N/A handler request get namespace None N/A N/A utils CreateXsrfToken XSRF_ACTION notreadonly_warning blob_warning N/A datastore_backup_%s N/A N/A time strftime %Y_%m_%d N/A N/A N/A utils RenderToResponse handler confirm_backup.html template_params N/A classmethod N/A get_namespaces N/A N/A selected_namespace N/A N/A N/A namespaces N/A N/A --All-- * N/A selected_namespace None N/A ns N/A N/A N/A N/A datastore Query __namespace__ keys_only True Run N/A N/A ns_name N/A N/A N/A ns name N/A N/A N/A namespaces append N/A N/A ns_name --Default-- ns_name N/A ns_name selected_namespace N/A namespaces N/A ConfirmDeleteBackupHandler N/A N/A webapp2 RequestHandler N/A N/A Handler to confirm admin console requests to delete a backup copy. N/A SUFFIX confirm_delete_backup Render N/A N/A cls handler N/A N/A N/A Rendering method that can be called by main.py.

    Args:
      handler: the webapp2.RequestHandler invoking the method
     N/A requested_backup_ids N/A N/A N/A handler request get_all backup_id N/A backups N/A N/A gs_warning False N/A requested_backup_ids N/A N/A backup N/A N/A db get requested_backup_ids N/A N/A backup N/A N/A N/A N/A backups append backup N/A gs_warning N/A N/A backup filesystem N/A files GS_FILESYSTEM N/A template_params N/A form_target cancel_url backups xsrf_token gs_warning N/A DoBackupDeleteHandler SUFFIX N/A N/A N/A handler request get cancel_url backups N/A N/A utils CreateXsrfToken XSRF_ACTION gs_warning N/A N/A N/A utils RenderToResponse handler confirm_delete_backup.html template_params N/A classmethod N/A ConfirmAbortBackupHandler N/A N/A webapp2 RequestHandler N/A N/A Handler to confirm admin console requests to abort a backup copy. N/A SUFFIX confirm_abort_backup Render N/A N/A cls handler N/A N/A N/A Rendering method that can be called by main.py.

    Args:
      handler: the webapp2.RequestHandler invoking the method
     N/A requested_backup_ids N/A N/A N/A handler request get_all backup_id N/A backups N/A N/A requested_backup_ids N/A N/A backup N/A N/A db get requested_backup_ids N/A N/A backup N/A N/A N/A N/A backups append backup N/A template_params N/A form_target cancel_url backups xsrf_token N/A DoBackupAbortHandler SUFFIX N/A N/A N/A handler request get cancel_url backups N/A N/A utils CreateXsrfToken XSRF_ACTION N/A N/A N/A utils RenderToResponse handler confirm_abort_backup.html template_params N/A classmethod N/A ConfirmRestoreFromBackupHandler N/A N/A webapp2 RequestHandler N/A N/A Handler to confirm admin console requests to restore from backup. N/A SUFFIX confirm_restore_from_backup Render N/A N/A cls handler default_backup_id default_delete_backup_after_restore N/A None False N/A N/A Rendering method that can be called by main.py.

    Args:
      handler: the webapp2.RequestHandler invoking the method
      default_backup_id: default value for handler.request
      default_delete_backup_after_restore: default value for handler.request
     N/A backup_id N/A N/A N/A handler request get backup_id default_backup_id N/A backup N/A backup_id N/A N/A db get backup_id None N/A notreadonly_warning N/A N/A N/A N/A capabilities CapabilitySet datastore_v3 capabilities N/A write is_enabled N/A original_app_warning N/A backup original_app N/A N/A N/A N/A os getenv APPLICATION_ID original_app_warning N/A N/A original_app_warning None N/A template_params N/A form_target queues cancel_url backup delete_backup_after_restore xsrf_token notreadonly_warning original_app_warning N/A DoBackupRestoreHandler SUFFIX None N/A N/A N/A handler request get cancel_url backup N/A N/A N/A handler request get delete_backup_after_restore default_delete_backup_after_restore N/A N/A utils CreateXsrfToken XSRF_ACTION notreadonly_warning original_app_warning N/A N/A N/A utils RenderToResponse handler confirm_restore_from_backup.html template_params N/A classmethod N/A ConfirmBackupImportHandler N/A N/A webapp2 RequestHandler N/A N/A Handler to import backup information. N/A SUFFIX backup_information Render N/A N/A cls handler N/A N/A N/A Rendering method that can be called by main.py.

    Args:
      handler: the webapp2.RequestHandler invoking the method
     N/A gs_handle N/A N/A N/A handler request get gs_handle N/A error N/A gs_handle None Google Cloud Storage path is missing N/A other_backup_info_files N/A N/A selected_backup_info_file None N/A backup_info_specified False N/A N/A error N/A N/A N/A N/A gs_handle N/A N/A gs_handle rstrip N/A N/A bucket_name prefix N/A parse_gs_handle gs_handle N/A N/A validate_gs_bucket_name bucket_name N/A N/A N/A is_accessible_bucket_name bucket_name N/A N/A N/A BackupValidationException N/A Bucket "%s" is not accessible bucket_name N/A N/A N/A prefix endswith .backup_info N/A N/A prefix N/A prefix N/A 0 N/A N/A prefix rfind / N/A backup_info_specified True N/A N/A N/A prefix N/A N/A N/A prefix endswith / N/A N/A prefix / N/A backup_info_file N/A list_bucket_files bucket_name prefix N/A N/A backup_info_path N/A /gs/%s/%s N/A bucket_name backup_info_file N/A N/A backup_info_specified N/A backup_info_path gs_handle N/A N/A selected_backup_info_file backup_info_path N/A N/A N/A N/A N/A backup_info_file endswith .backup_info N/A N/A N/A backup_info_file count . 1 N/A N/A N/A N/A other_backup_info_files append backup_info_path N/A N/A N/A Exception N/A ex N/A N/A error N/A Failed to read bucket: %s ex N/A template_params N/A error form_target cancel_url selected_backup_info_file other_backup_info_files backup_info_specified xsrf_token error N/A DoBackupImportHandler SUFFIX N/A N/A N/A handler request get cancel_url selected_backup_info_file other_backup_info_files backup_info_specified N/A N/A utils CreateXsrfToken XSRF_ACTION N/A N/A N/A utils RenderToResponse handler confirm_backup_import.html template_params N/A classmethod N/A BackupInformationHandler N/A N/A webapp2 RequestHandler N/A N/A Handler to display backup information. N/A SUFFIX backup_information Render N/A N/A cls handler N/A N/A N/A Rendering method that can be called by main.py.

    Args:
      handler: the webapp2.RequestHandler invoking the method
     N/A backup_ids N/A N/A N/A handler request get_all backup_id N/A template_params N/A backups back_target N/A N/A db get backup_ids N/A N/A N/A handler request get cancel_url N/A N/A N/A utils RenderToResponse handler backup_information.html template_params N/A classmethod N/A BaseDoHandler N/A N/A webapp2 RequestHandler N/A N/A Base class for all Do*Handlers. N/A MAPREDUCE_DETAIL N/A N/A N/A utils config MAPREDUCE_PATH /detail?mapreduce_id= get N/A N/A self N/A N/A N/A Handler for get requests to datastore_admin backup operations.

    Status of executed jobs is displayed.
     N/A jobs N/A N/A N/A self request get_all job N/A tasks N/A N/A N/A self request get_all task N/A error N/A N/A N/A self request get error N/A xsrf_error N/A N/A N/A self request get xsrf_error N/A template_params N/A job_list task_list mapreduce_detail error xsrf_error datastore_admin_home jobs tasks N/A self MAPREDUCE_DETAIL error xsrf_error N/A N/A utils config BASE_PATH N/A N/A N/A utils RenderToResponse self N/A self _get_html_page template_params N/A _get_html_page N/A N/A self N/A N/A N/A Return the name of the HTML page for HTTP/GET requests. N/A NotImplementedError N/A property _get_post_html_page N/A N/A self N/A N/A N/A Return the name of the HTML page for HTTP/POST requests. N/A NotImplementedError N/A property _ProcessPostRequest N/A N/A self N/A N/A N/A Process the HTTP/POST request and return the result as parametrs. N/A NotImplementedError N/A _GetBasicMapperParams N/A N/A self N/A N/A N/A namespace N/A N/A N/A self request get namespace None N/A N/A namespace * N/A N/A namespace None N/A N/A namespace namespace N/A post N/A N/A self N/A N/A N/A Handler for post requests to datastore_admin/backup.do.

    Redirects to the get handler after processing the request.
     N/A token N/A N/A N/A self request get xsrf_token N/A N/A N/A N/A utils ValidateXsrfToken token XSRF_ACTION N/A N/A parameters N/A N/A xsrf_error 1 N/A N/A N/A N/A parameters N/A N/A self _ProcessPostRequest N/A N/A N/A Exception N/A e N/A N/A error N/A N/A self _HandleException e N/A parameters N/A N/A error error N/A query N/A N/A urllib urlencode parameters N/A N/A N/A self redirect N/A %s/%s?%s N/A N/A N/A utils config BASE_PATH N/A self _get_post_html_page query N/A _HandleException N/A N/A self e N/A N/A N/A Make exception handling overrideable by tests.

    Args:
      e: The exception to handle.

    Returns:
      The exception error string.
     N/A N/A %s: %s N/A N/A type e e N/A N/A BackupValidationException N/A Exception N/A N/A N/A _perform_backup N/A N/A kinds selected_namespace filesystem gs_bucket_name backup queue mapper_params max_jobs N/A N/A N/A Triggers backup mapper jobs.

  Args:
    kinds: a sequence of kind names
    selected_namespace: The selected namespace or None for all
    filesystem: files.BLOBSTORE_FILESYSTEM or files.GS_FILESYSTEM
        or None to default to blobstore
    gs_bucket_name: the GS file system bucket in which to store the backup
        when using the GS file system, and otherwise ignored
    backup: the backup name
    queue: the task queue for the backup task
    mapper_params: the mapper parameters
    max_jobs: if backup needs more jobs than this, defer them

  Returns:
    The job or task ids.

  Raises:
    BackupValidationException: On validation error.
    Exception: On other error.
   N/A BACKUP_COMPLETE_HANDLER N/A __name__ .BackupCompleteHandler N/A BACKUP_HANDLER N/A __name__ .BackupEntity.map N/A INPUT_READER N/A __name__ .DatastoreEntityProtoInputReader N/A OUTPUT_WRITER N/A N/A output_writers __name__ .FileRecordsOutputWriter N/A queue N/A queue N/A N/A N/A os environ get HTTP_X_APPENGINE_QUEUENAME default N/A N/A N/A queue N/A 0 _ N/A N/A queue default N/A N/A filesystem N/A N/A filesystem N/A files BLOBSTORE_FILESYSTEM N/A N/A filesystem N/A files GS_FILESYSTEM N/A N/A N/A gs_bucket_name N/A N/A N/A BackupValidationException Bucket name missing. N/A N/A bucket_name path N/A parse_gs_handle gs_bucket_name N/A gs_bucket_name N/A N/A N/A %s/%s N/A bucket_name path rstrip / N/A N/A validate_gs_bucket_name bucket_name N/A N/A verify_bucket_writable bucket_name N/A N/A N/A filesystem N/A files BLOBSTORE_FILESYSTEM N/A N/A N/A N/A N/A BackupValidationException N/A Unknown filesystem "%s". filesystem N/A job_name N/A datastore_backup_%s_%%(kind)s N/A N/A re sub [^\w] _ backup N/A N/A N/A job_operation N/A N/A utils StartOperation N/A Backup: %s backup N/A backup_info N/A BackupInformation parent job_operation N/A N/A backup_info filesystem filesystem N/A N/A backup_info name backup N/A N/A backup_info kinds kinds N/A N/A selected_namespace None N/A N/A N/A backup_info namespaces N/A selected_namespace N/A N/A N/A backup_info put force_writes True N/A mapreduce_params N/A done_callback_handler backup_info_pk force_ops_writes BACKUP_COMPLETE_HANDLER N/A str N/A N/A backup_info key True N/A mapper_params N/A dict mapper_params N/A N/A mapper_params N/A filesystem filesystem N/A N/A filesystem N/A files GS_FILESYSTEM N/A N/A N/A mapper_params N/A gs_bucket_name gs_bucket_name N/A N/A N/A len kinds max_jobs N/A N/A N/A N/A job job N/A job N/A _run_map_jobs N/A N/A job_operation key N/A N/A backup_info key kinds job_name BACKUP_HANDLER INPUT_READER OUTPUT_WRITER mapper_params mapreduce_params queue N/A N/A retry_options N/A N/A taskqueue TaskRetryOptions task_retry_limit 1 N/A deferred_task N/A N/A deferred defer _run_map_jobs_deferred backup N/A N/A job_operation key N/A N/A backup_info key kinds job_name BACKUP_HANDLER INPUT_READER OUTPUT_WRITER mapper_params mapreduce_params queue _queue queue _url N/A N/A utils ConfigDefaults DEFERRED_PATH _retry_options retry_options N/A N/A N/A task N/A deferred_task name N/A N/A N/A Exception N/A N/A N/A N/A logging exception Failed to start a datastore backup job[s] for "%s". backup N/A backup_info N/A N/A N/A delete_backup_info backup_info N/A job_operation N/A N/A N/A job_operation status N/A N/A utils DatastoreAdminOperation STATUS_FAILED N/A N/A N/A job_operation put force_writes True N/A N/A BackupLinkHandler N/A N/A webapp2 RequestHandler N/A N/A Handler to deal with requests to the backup link to backup data. N/A SUFFIX backup.create get N/A N/A self N/A N/A N/A Handler for get requests to datastore_admin/backup.create. N/A N/A N/A self post N/A post N/A N/A self N/A N/A N/A Handler for post requests to datastore_admin/backup.create. N/A N/A N/A backup_prefix N/A N/A N/A self request get name N/A N/A backup_prefix N/A N/A N/A N/A N/A N/A self request headers get X-AppEngine-Cron N/A N/A backup_prefix cron- N/A N/A backup_prefix link- N/A backup_prefix_with_date N/A backup_prefix N/A N/A time strftime %Y_%m_%d N/A backup_name backup_prefix_with_date N/A backup_suffix_counter 1 N/A N/A N/A BackupInformation name_exists backup_name N/A N/A backup_suffix_counter 1 N/A backup_name N/A N/A backup_prefix_with_date - N/A str backup_suffix_counter N/A kinds N/A N/A N/A self request get_all kind N/A N/A kinds N/A N/A N/A N/A self errorResponse Backup must include at least one kind. N/A N/A kind kinds N/A N/A N/A N/A N/A utils IsKindNameVisible kind N/A N/A N/A N/A self errorResponse N/A Invalid kind %s. kind N/A N/A namespace N/A N/A N/A self request get namespace None N/A N/A namespace * N/A N/A namespace None N/A mapper_params N/A namespace namespace N/A N/A _perform_backup kinds namespace N/A N/A N/A self request get filesystem N/A N/A N/A self request get gs_bucket_name backup_name N/A N/A N/A self request get queue mapper_params 1000000 N/A N/A N/A Exception N/A e N/A N/A N/A N/A self errorResponse N/A e message N/A errorResponse N/A N/A self message N/A N/A N/A N/A N/A logging error Could not create backup via link: %s message N/A N/A N/A N/A self response set_status 400 message N/A N/A DatastoreEntityProtoInputReader N/A N/A input_readers RawDatastoreInputReader N/A N/A An input reader which yields datastore entity proto for a kind. N/A _KEY_RANGE_ITER_CLS N/A db_iters KeyRangeEntityProtoIterator N/A DoBackupHandler N/A BaseDoHandler N/A N/A Handler to deal with requests from the admin console to backup data. N/A SUFFIX backup.do N/A _get_html_page do_backup.html N/A _get_post_html_page SUFFIX _ProcessPostRequest N/A N/A self N/A N/A N/A Triggers backup mapper jobs and returns their ids. N/A N/A N/A backup N/A N/A N/A N/A N/A self request get backup_name strip N/A N/A backup N/A N/A N/A BackupValidationException Unspecified backup name. N/A N/A N/A BackupInformation name_exists backup N/A N/A N/A BackupValidationException N/A Backup "%s" already exists. backup N/A mapper_params N/A N/A self _GetBasicMapperParams N/A backup_result N/A _perform_backup N/A N/A N/A self request get_all kind N/A N/A mapper_params get namespace N/A N/A N/A self request get filesystem N/A N/A N/A self request get gs_bucket_name backup N/A N/A N/A self request get queue mapper_params 10 N/A backup_result N/A N/A N/A BackupValidationException N/A e N/A N/A N/A N/A error N/A e message N/A N/A _run_map_jobs_deferred N/A N/A backup_name job_operation_key backup_info_key kinds job_name backup_handler input_reader output_writer mapper_params mapreduce_params queue N/A N/A N/A backup_info N/A N/A BackupInformation get backup_info_key N/A backup_info N/A N/A N/A N/A N/A _run_map_jobs job_operation_key backup_info_key kinds job_name backup_handler input_reader output_writer mapper_params mapreduce_params queue N/A N/A N/A BaseException N/A N/A N/A N/A logging exception Failed to start a datastore backup job[s] for "%s". backup_name N/A N/A delete_backup_info backup_info N/A N/A N/A N/A logging info Missing backup info, can not start backup jobs for "%s" backup_name N/A _run_map_jobs N/A N/A job_operation_key backup_info_key kinds job_name backup_handler input_reader output_writer mapper_params mapreduce_params queue N/A N/A N/A Creates backup/restore MR jobs for the given operation.

  Args:
    job_operation_key: a key of utils.DatastoreAdminOperation entity.
    backup_info_key: a key of BackupInformation entity.
    kinds: a list of kinds to run the M/R for.
    job_name: the M/R job name prefix.
    backup_handler: M/R job completion handler.
    input_reader: M/R input reader.
    output_writer: M/R output writer.
    mapper_params: custom parameters to pass to mapper.
    mapreduce_params: dictionary parameters relevant to the whole job.
    queue: the name of the queue that will be used by the M/R.

  Returns:
    Ids of all started mapper jobs as list of strings.
   N/A backup_info N/A N/A BackupInformation get backup_info_key N/A N/A backup_info N/A N/A N/A N/A jobs N/A N/A utils RunMapForKinds job_operation_key kinds job_name backup_handler input_reader output_writer mapper_params mapreduce_params queue_name queue N/A N/A backup_info active_jobs jobs N/A N/A N/A backup_info put force_writes True N/A jobs N/A get_backup_files N/A N/A backup_info selected_kinds N/A None N/A N/A Returns the backup filenames for selected kinds or all if None/Empty. N/A N/A backup_info blob_files N/A N/A N/A backup_info blob_files N/A N/A kinds_backup_files N/A N/A backup_info get_kind_backup_files selected_kinds N/A N/A list N/A N/A itertools chain N/A N/A kind_backup_files files N/A kind_backup_files kinds_backup_files N/A delete_backup_files N/A N/A filesystem backup_files N/A N/A N/A backup_files N/A N/A N/A filesystem N/A files BLOBSTORE_FILESYSTEM N/A N/A blob_keys N/A N/A fname backup_files N/A N/A blob_key N/A N/A N/A files blobstore get_blob_key fname N/A blob_key N/A N/A N/A N/A blob_keys append blob_key N/A N/A N/A len blob_keys MAX_BLOBS_PER_DELETE N/A N/A N/A N/A blobstore_api delete blob_keys N/A blob_keys N/A N/A blob_keys N/A N/A N/A N/A blobstore_api delete blob_keys N/A delete_backup_info N/A N/A backup_info delete_files N/A True N/A N/A Deletes a backup including its associated files and other metadata. N/A N/A backup_info blob_files N/A N/A N/A delete_backup_files N/A backup_info filesystem N/A backup_info blob_files N/A N/A N/A backup_info delete force_writes True N/A N/A kinds_backup_files N/A tuple N/A N/A backup_info get_kind_backup_files N/A delete_files N/A N/A N/A delete_backup_files N/A backup_info filesystem N/A N/A itertools chain N/A N/A kind_backup_files files N/A kind_backup_files kinds_backup_files N/A N/A N/A db delete N/A kinds_backup_files N/A backup_info force_writes True N/A DoBackupDeleteHandler N/A BaseDoHandler N/A N/A Handler to deal with datastore admin requests to delete backup data. N/A SUFFIX backup_delete.do get N/A N/A self N/A N/A N/A N/A N/A self post N/A post N/A N/A self N/A N/A N/A Handler for post requests to datastore_admin/backup_delete.do.

    Deletes are executed and user is redirected to the base-path handler.
     N/A backup_ids N/A N/A N/A self request get_all backup_id N/A token N/A N/A N/A self request get xsrf_token N/A error None N/A N/A backup_ids N/A N/A utils ValidateXsrfToken token XSRF_ACTION N/A N/A N/A N/A backup_info N/A N/A db get backup_ids N/A N/A backup_info N/A N/A N/A delete_backup_info backup_info N/A N/A N/A Exception N/A e N/A N/A N/A N/A logging exception Failed to delete datastore backup. N/A error N/A str e N/A error N/A N/A query N/A N/A urllib urlencode N/A N/A error error N/A N/A N/A self redirect N/A %s?%s N/A N/A N/A utils config BASE_PATH query N/A N/A N/A N/A self redirect N/A N/A utils config BASE_PATH N/A N/A DoBackupAbortHandler N/A BaseDoHandler N/A N/A Handler to deal with datastore admin requests to abort pending backups. N/A SUFFIX backup_abort.do get N/A N/A self N/A N/A N/A N/A N/A self post N/A post N/A N/A self N/A N/A N/A Handler for post requests to datastore_admin/backup_abort.do.

    Abort is executed and user is redirected to the base-path handler.
     N/A backup_ids N/A N/A N/A self request get_all backup_id N/A token N/A N/A N/A self request get xsrf_token N/A error None N/A N/A backup_ids N/A N/A utils ValidateXsrfToken token XSRF_ACTION N/A N/A N/A N/A backup_info N/A N/A db get backup_ids N/A N/A backup_info N/A N/A N/A N/A utils AbortAdminOperation N/A N/A backup_info parent_key N/A N/A delete_backup_info backup_info N/A N/A N/A Exception N/A e N/A N/A N/A N/A logging exception Failed to abort pending datastore backup. N/A error N/A str e N/A error N/A N/A N/A N/A self redirect N/A N/A N/A utils config BASE_PATH N/A ?error=%s error N/A N/A N/A N/A self redirect N/A N/A utils config BASE_PATH N/A N/A DoBackupRestoreHandler N/A BaseDoHandler N/A N/A Handler to restore backup data.

  Deals with requests from the admin console.
   N/A SUFFIX backup_restore.do N/A BACKUP_RESTORE_HANDLER N/A __name__ .RestoreEntity.map N/A RESTORE_COMPLETE_HANDLER N/A __name__ .RestoreCompleteHandler N/A INPUT_READER N/A N/A input_readers __name__ .RecordsReader N/A _get_html_page do_restore_from_backup.html N/A _get_post_html_page SUFFIX _ProcessPostRequest N/A N/A self N/A N/A N/A Triggers backup restore mapper jobs and returns their ids. N/A backup_id N/A N/A N/A self request get backup_id N/A N/A backup_id N/A N/A N/A N/A error Unspecified Backup. N/A backup N/A N/A db get N/A N/A db Key backup_id N/A N/A backup N/A N/A N/A N/A error Invalid Backup id. N/A N/A backup gs_handle N/A N/A N/A N/A is_readable_gs_handle N/A backup gs_handle N/A N/A N/A N/A error Backup not readable N/A queue N/A N/A N/A self request get queue N/A job_name N/A datastore_backup_restore_%s N/A N/A re sub [^\w] _ N/A backup name N/A job_operation None N/A kinds N/A set N/A N/A N/A self request get_all kind N/A N/A N/A N/A backup blob_files kinds N/A N/A N/A N/A error No kinds were selected N/A backup_kinds N/A set N/A backup kinds N/A difference N/A N/A kinds difference backup_kinds N/A difference N/A N/A N/A N/A error N/A Backup does not have kind[s] %s N/A N/A ,  join difference N/A kinds N/A N/A N/A len backup_kinds N/A len kinds N/A list kinds N/A N/A N/A N/A N/A N/A operation_name N/A Restoring %s from backup: %s N/A N/A kinds N/A N/A ,  join kinds all N/A backup name N/A job_operation N/A N/A utils StartOperation operation_name N/A mapper_params N/A N/A self _GetBasicMapperParams N/A N/A mapper_params N/A files N/A get_backup_files backup kinds N/A N/A mapper_params N/A kind_filter kinds N/A N/A mapper_params N/A original_app N/A backup original_app N/A mapreduce_params N/A backup_name force_ops_writes N/A backup name True N/A shard_count N/A min N/A max N/A utils MAPREDUCE_MIN_SHARDS N/A len N/A mapper_params N/A files N/A utils MAPREDUCE_MAX_SHARDS N/A job N/A N/A utils StartMap N/A N/A job_operation key job_name N/A self BACKUP_RESTORE_HANDLER N/A self INPUT_READER None mapper_params mapreduce_params queue_name queue shard_count shard_count N/A N/A N/A job job N/A N/A N/A Exception N/A N/A N/A N/A logging exception Failed to start a restore from backup job "%s". job_name N/A job_operation N/A N/A N/A job_operation status N/A N/A utils DatastoreAdminOperation STATUS_FAILED N/A N/A N/A job_operation put force_writes True N/A N/A N/A N/A N/A N/A N/A N/A N/A self request get delete_backup_after_restore lower true N/A N/A N/A delete_backup_info backup delete_files False N/A N/A DoBackupImportHandler N/A BaseDoHandler N/A N/A Handler to deal with datastore admin requests to import backup info. N/A SUFFIX import_backup.do get N/A N/A self N/A N/A N/A N/A N/A self post N/A post N/A N/A self N/A N/A N/A Handler for post requests to datastore_admin/import_backup.do.

    Import is executed and user is redirected to the base-path handler.
     N/A gs_handle N/A N/A N/A self request get gs_handle N/A token N/A N/A N/A self request get xsrf_token N/A error None N/A N/A gs_handle N/A N/A utils ValidateXsrfToken token XSRF_ACTION N/A N/A N/A N/A N/A bucket_name path N/A parse_gs_handle gs_handle N/A file_content N/A get_gs_object bucket_name path N/A entities N/A parse_backup_info_file file_content N/A original_backup_info N/A N/A entities next N/A entity N/A N/A datastore Entity N/A N/A BackupInformation kind N/A N/A N/A entity update original_backup_info N/A backup_info N/A N/A BackupInformation from_entity entity N/A N/A N/A N/A N/A N/A original_backup_info key app N/A N/A os getenv APPLICATION_ID N/A N/A N/A backup_info original_app N/A N/A N/A N/A original_backup_info key app tx N/A N/A N/A N/A N/A N/A N/A backup_info put force_writes True N/A kind_files_models N/A N/A entity entities N/A N/A kind_files N/A N/A backup_info create_kind_backup_files N/A N/A N/A N/A entity key name N/A entity N/A files N/A N/A N/A kind_files_models append kind_files N/A N/A N/A db put kind_files_models force_writes True N/A N/A N/A N/A db run_in_transaction tx N/A backup_id N/A str N/A N/A backup_info key N/A N/A N/A Exception N/A e N/A N/A N/A N/A logging exception Failed to Import datastore backup information. N/A error N/A str e N/A error N/A N/A query N/A N/A urllib urlencode N/A N/A error error N/A N/A N/A self redirect N/A %s?%s N/A N/A N/A utils config BASE_PATH query N/A N/A N/A N/A N/A self request get Restore N/A N/A N/A N/A ConfirmRestoreFromBackupHandler Render self default_backup_id backup_id default_delete_backup_after_restore True N/A N/A N/A N/A self redirect N/A N/A utils config BASE_PATH N/A N/A BackupInformation N/A N/A db Model N/A N/A An entity to keep information on successful backup operations. N/A name N/A N/A db StringProperty N/A kinds N/A N/A db StringListProperty N/A namespaces N/A N/A db StringListProperty N/A filesystem N/A N/A db StringProperty default N/A files BLOBSTORE_FILESYSTEM N/A start_time N/A N/A db DateTimeProperty auto_now_add True N/A active_jobs N/A N/A db StringListProperty N/A completed_jobs N/A N/A db StringListProperty N/A complete_time N/A N/A db DateTimeProperty default None N/A blob_files N/A N/A db StringListProperty N/A original_app N/A N/A db StringProperty default None N/A gs_handle N/A N/A db TextProperty default None kind N/A N/A cls N/A N/A N/A N/A utils BACKUP_INFORMATION_KIND N/A classmethod name_exists N/A N/A cls backup_name N/A N/A N/A query N/A N/A BackupInformation all keys_only True N/A N/A N/A query filter name = backup_name N/A N/A N/A N/A query get None N/A classmethod create_kind_backup_files_key N/A N/A self kind N/A N/A N/A N/A N/A N/A db Key from_path N/A N/A KindBackupFiles kind kind parent N/A N/A self key N/A create_kind_backup_files N/A N/A self kind kind_files N/A N/A N/A N/A KindBackupFiles key N/A N/A self create_kind_backup_files_key kind files kind_files N/A get_kind_backup_files N/A N/A self kinds N/A None N/A N/A kinds N/A N/A N/A N/A db get N/A N/A N/A self create_kind_backup_files_key kind N/A kind kinds N/A N/A N/A N/A N/A N/A N/A N/A KindBackupFiles all ancestor self run N/A N/A KindBackupFiles N/A N/A db Model N/A N/A An entity to keep files information per kind for a backup.

  A key for this model should created using kind as a name and the associated
  BackupInformation as a parent.
   N/A files N/A N/A db StringListProperty indexed False backup_kind N/A N/A self N/A N/A N/A N/A N/A N/A N/A self key name N/A property kind N/A N/A cls N/A N/A N/A N/A utils BACKUP_INFORMATION_FILES_KIND N/A classmethod N/A BackupCompleteHandler N/A N/A operation job_id mapreduce_state N/A N/A N/A Updates BackupInformation record for a completed mapper job. N/A mapreduce_spec N/A mapreduce_state mapreduce_spec N/A kind N/A N/A N/A mapreduce_spec mapper params N/A entity_kind N/A backup_info N/A N/A BackupInformation get N/A N/A mapreduce_spec params N/A backup_info_pk N/A backup_info N/A N/A N/A job_id N/A backup_info active_jobs N/A N/A N/A N/A N/A backup_info active_jobs remove job_id N/A N/A backup_info completed_jobs N/A list N/A set N/A N/A backup_info completed_jobs N/A job_id N/A filenames N/A N/A mapreduce_state writer_state N/A filenames N/A N/A N/A backup_info filesystem N/A files BLOBSTORE_FILESYSTEM N/A N/A filenames N/A drop_empty_files filenames N/A N/A backup_info blob_files N/A N/A N/A backup_info blob_files N/A list N/A set N/A N/A backup_info blob_files filenames N/A N/A N/A backup_info put force_writes True N/A N/A kind_backup_files N/A N/A N/A backup_info get_kind_backup_files N/A kind N/A 0 N/A kind_backup_files N/A N/A N/A kind_backup_files files N/A list N/A set N/A N/A kind_backup_files files filenames N/A N/A kind_backup_files N/A N/A backup_info create_kind_backup_files kind filenames N/A N/A N/A db put N/A backup_info kind_backup_files force_writes True N/A N/A N/A operation status N/A N/A utils DatastoreAdminOperation STATUS_COMPLETED N/A N/A N/A N/A deferred defer finalize_backup_info N/A N/A backup_info key N/A N/A mapreduce_spec mapper params _url N/A N/A utils ConfigDefaults DEFERRED_PATH _queue N/A N/A N/A mapreduce_spec params get done_callback_queue _transactional True N/A N/A N/A N/A logging warn BackupInfo was not found for %s N/A N/A mapreduce_spec params N/A backup_info_pk N/A N/A db transactional finalize_backup_info N/A N/A backup_info_pk mapper_params N/A N/A N/A Finalize the state of BackupInformation and creates info file for GS. tx N/A N/A N/A N/A N/A backup_info N/A N/A BackupInformation get backup_info_pk N/A backup_info N/A N/A N/A backup_info complete_time N/A N/A N/A datetime datetime now N/A N/A N/A backup_info filesystem N/A files GS_FILESYSTEM N/A N/A gs_bucket N/A mapper_params N/A gs_bucket_name N/A N/A N/A N/A BackupInfoWriter gs_bucket write backup_info N/A N/A N/A backup_info put force_writes True N/A N/A N/A logging info Backup %s completed N/A backup_info name N/A N/A N/A N/A logging warn Backup %s could not be found backup_info_pk N/A N/A N/A N/A db run_in_transaction tx N/A parse_backup_info_file N/A N/A content N/A N/A N/A Returns entities iterator from a backup_info file content. N/A reader N/A N/A records RecordsReader N/A N/A cStringIO StringIO content N/A version N/A N/A reader read N/A N/A version 1 N/A N/A N/A IOError Unsupported version N/A N/A N/A N/A N/A datastore Entity FromPb record N/A record reader N/A drop_empty_files N/A N/A filenames N/A N/A N/A Deletes empty files and returns filenames minus the deleted ones. N/A non_empty_filenames N/A N/A empty_file_keys N/A N/A blobs_info N/A N/A N/A blobstore BlobInfo get N/A N/A N/A N/A files blobstore get_blob_key fn N/A fn filenames N/A N/A filename blob_info N/A N/A itertools izip filenames blobs_info N/A N/A blob_info N/A N/A N/A N/A blob_info size 0 N/A N/A N/A N/A non_empty_filenames append filename N/A N/A N/A N/A empty_file_keys append N/A N/A blob_info key N/A N/A N/A blobstore_api delete empty_file_keys N/A non_empty_filenames N/A N/A db non_transactional BackupInfoWriter N/A object N/A N/A A class for writing Datastore backup metadata files. __init__ N/A N/A self gs_bucket N/A N/A N/A Construct a BackupInfoWriter.

    Args:
      gs_bucket: Required string for the target GS bucket.
     N/A N/A self __gs_bucket gs_bucket N/A write N/A N/A self backup_info N/A N/A N/A Write the metadata files for the given backup_info.

    Args:
      backup_info: Required BackupInformation.

    Returns:
      A list with Backup info filename followed by Kind info filenames.
     N/A fn N/A N/A self _write_backup_info backup_info N/A N/A N/A fn N/A N/A self _write_kind_info backup_info N/A _generate_filename N/A N/A self backup_info suffix N/A N/A N/A key_str N/A N/A N/A str N/A N/A backup_info key replace / _ N/A N/A /gs/%s/%s%s N/A N/A self __gs_bucket key_str suffix N/A _write_backup_info N/A N/A self backup_info N/A N/A N/A Writes a backup_info_file.

    Args:
      backup_info: Required BackupInformation.

    Returns:
      Backup info filename.
     N/A filename N/A N/A self _generate_filename backup_info .backup_info N/A N/A backup_info gs_handle filename N/A info_file N/A N/A files open N/A N/A N/A files gs create filename a exclusive_lock True N/A N/A N/A N/A N/A records RecordsWriter info_file writer N/A N/A N/A N/A writer write 1 N/A N/A N/A writer write N/A N/A N/A N/A db model_to_protobuf backup_info SerializeToString N/A kind_files N/A N/A backup_info get_kind_backup_files N/A N/A N/A N/A writer write N/A N/A N/A N/A db model_to_protobuf kind_files SerializeToString N/A N/A N/A N/A info_file close finalize True N/A filename N/A _write_kind_info N/A N/A self backup_info N/A N/A N/A Writes type information schema for each kind in backup_info.

    Args:
      backup_info: Required BackupInformation.

    Returns:
      A list with all created filenames.
     N/A filenames N/A N/A kind_backup_files N/A N/A backup_info get_kind_backup_files N/A N/A backup N/A N/A self _create_kind_backup backup_info kind_backup_files N/A filename N/A N/A self _generate_filename backup_info N/A .%s.backup_info N/A kind_backup_files backup_kind N/A N/A N/A self _write_kind_backup_info_file filename backup N/A N/A N/A filenames append filename N/A filenames N/A _create_kind_backup N/A N/A self backup_info kind_backup_files N/A N/A N/A Creates and populate a backup_pb2.Backup. N/A backup N/A N/A backup_pb2 Backup N/A N/A N/A backup backup_info backup_name N/A backup_info name N/A N/A N/A backup backup_info start_timestamp N/A N/A datastore_types DatetimeToTimestamp N/A backup_info start_time N/A N/A N/A backup backup_info end_timestamp N/A N/A datastore_types DatetimeToTimestamp N/A backup_info complete_time N/A kind N/A kind_backup_files backup_kind N/A kind_info N/A N/A N/A backup kind_info add N/A N/A kind_info kind kind N/A N/A N/A kind_info entity_schema kind kind N/A N/A N/A N/A kind_info file extend N/A kind_backup_files files N/A entity_type_info N/A EntityTypeInfo kind kind N/A sharded_aggregation N/A N/A SchemaAggregationResult load N/A N/A backup_info key kind N/A N/A N/A sharded_aggregation is_partial N/A N/A N/A kind_info is_partial True N/A N/A sharded_aggregation entity_type_info N/A N/A N/A N/A entity_type_info merge N/A sharded_aggregation entity_type_info N/A N/A N/A entity_type_info populate_entity_schema N/A kind_info entity_schema N/A backup N/A _write_kind_backup_info_file N/A N/A cls filename backup N/A N/A N/A Writes a kind backup_info.

    Args:
      filename: The name of the file to be created as string.
      backup: apphosting.ext.datastore_admin.Backup proto.
     N/A f N/A N/A files open N/A N/A N/A files gs create filename a exclusive_lock True N/A N/A N/A N/A N/A f write N/A N/A backup SerializeToString N/A N/A N/A N/A f close finalize True N/A classmethod N/A PropertyTypeInfo N/A N/A model JsonMixin N/A N/A Type information for an entity property. __init__ N/A N/A self name is_repeated primitive_types embedded_entities N/A False None None N/A N/A Construct a PropertyTypeInfo instance.

    Args:
      name: The name of the property as a string.
      is_repeated: A boolean that indicates if the property is repeated.
      primitive_types: Optional list of PrimitiveType integer values.
      embedded_entities: Optional list of EntityTypeInfo.
     N/A N/A self __name name N/A N/A self __is_repeated is_repeated N/A N/A self __primitive_types N/A primitive_types N/A set primitive_types N/A set N/A N/A self __embedded_entities N/A N/A entity N/A embedded_entities N/A N/A N/A N/A N/A entity kind N/A self __embedded_entities N/A N/A N/A N/A N/A N/A self __embedded_entities N/A N/A entity kind merge entity N/A N/A N/A N/A self __embedded_entities N/A N/A entity kind entity N/A name N/A N/A self N/A N/A N/A N/A self __name N/A property is_repeated N/A N/A self N/A N/A N/A N/A self __is_repeated N/A property primitive_types N/A N/A self N/A N/A N/A N/A self __primitive_types N/A property embedded_entities_kind_iter N/A N/A self N/A N/A N/A N/A N/A N/A self __embedded_entities iterkeys N/A get_embedded_entity N/A N/A self kind N/A N/A N/A N/A N/A N/A self __embedded_entities get kind N/A merge N/A N/A self other N/A N/A N/A Merge a PropertyTypeInfo with this instance.

    Args:
      other: Required PropertyTypeInfo to merge.

    Returns:
      True if anything was changed. False otherwise.

    Raises:
      ValueError: if property names do not match.
      TypeError: if other is not instance of PropertyTypeInfo.
     N/A N/A N/A isinstance other PropertyTypeInfo N/A N/A N/A TypeError N/A Expected PropertyTypeInfo, was %r N/A other N/A N/A N/A other __name N/A self __name N/A N/A N/A ValueError N/A Property names mismatch (%s, %s) N/A N/A self __name N/A other __name N/A changed False N/A N/A N/A other __is_repeated N/A N/A self __is_repeated N/A N/A N/A self __is_repeated True N/A changed True N/A N/A N/A N/A N/A other __primitive_types issubset N/A self __primitive_types N/A N/A N/A self __primitive_types N/A N/A N/A self __primitive_types union N/A other __primitive_types N/A changed True N/A N/A kind other_embedded_entity N/A N/A N/A other __embedded_entities iteritems N/A N/A embedded_entity N/A N/A N/A self __embedded_entities get kind N/A embedded_entity N/A N/A changed N/A N/A N/A embedded_entity merge other_embedded_entity changed N/A N/A N/A N/A self __embedded_entities N/A kind other_embedded_entity N/A changed True N/A changed N/A populate_entity_schema_field N/A N/A self entity_schema N/A N/A N/A Add an populate a Field to the given entity_schema.

    Args:
      entity_schema: apphosting.ext.datastore_admin.EntitySchema proto.
     N/A N/A N/A N/A self __primitive_types N/A self __embedded_entities N/A N/A N/A field N/A N/A N/A entity_schema field add N/A N/A field name N/A self __name N/A field_type N/A N/A N/A field type add N/A N/A field_type is_list N/A self __is_repeated N/A N/A N/A N/A field_type primitive_type extend N/A self __primitive_types N/A embedded_entity N/A N/A N/A self __embedded_entities itervalues N/A N/A embedded_entity_schema N/A N/A N/A field_type embedded_schema add N/A N/A N/A embedded_entity populate_entity_schema embedded_entity_schema N/A to_json N/A N/A self N/A N/A N/A json N/A dict N/A N/A json N/A name N/A self __name N/A N/A json N/A is_repeated N/A self __is_repeated N/A N/A json N/A primitive_types N/A list N/A self __primitive_types N/A N/A json N/A embedded_entities N/A N/A N/A e to_json N/A e N/A N/A N/A self __embedded_entities itervalues N/A json N/A from_json N/A N/A cls json N/A N/A N/A N/A cls N/A json N/A name N/A json N/A is_repeated N/A N/A json get primitive_types N/A N/A N/A EntityTypeInfo from_json entity_json N/A entity_json N/A N/A json get embedded_entities N/A classmethod N/A EntityTypeInfo N/A N/A model JsonMixin N/A N/A Type information for an entity. __init__ N/A N/A self kind properties N/A None None N/A N/A Construct an EntityTypeInfo instance.

    Args:
      kind: An optional kind name as string.
      properties: An optional list of PropertyTypeInfo.
     N/A N/A self __kind kind N/A N/A self __properties N/A N/A property_type_info N/A properties N/A N/A N/A N/A N/A property_type_info name N/A self __properties N/A N/A N/A N/A N/A N/A self __properties N/A N/A property_type_info name merge property_type_info N/A N/A N/A N/A self __properties N/A N/A property_type_info name property_type_info N/A kind N/A N/A self N/A N/A N/A N/A self __kind N/A property properties_name_iter N/A N/A self N/A N/A N/A N/A N/A N/A self __properties iterkeys N/A get_property N/A N/A self name N/A N/A N/A N/A N/A N/A self __properties get name N/A merge N/A N/A self other N/A N/A N/A Merge an EntityTypeInfo with this instance.

    Args:
      other: Required EntityTypeInfo to merge.

    Returns:
      True if anything was changed. False otherwise.

    Raises:
      ValueError: if kinds do not match.
      TypeError: if other is not instance of EntityTypeInfo.
     N/A N/A N/A isinstance other EntityTypeInfo N/A N/A N/A TypeError N/A Expected EntityTypeInfo, was %r N/A other N/A N/A N/A other __kind N/A self __kind N/A N/A N/A ValueError N/A Kinds mismatch (%s, %s) N/A N/A self __kind N/A other __kind N/A changed False N/A N/A name other_property N/A N/A N/A other __properties iteritems N/A N/A self_property N/A N/A N/A self __properties get name N/A self_property N/A N/A changed N/A N/A N/A self_property merge other_property changed N/A N/A N/A N/A self __properties N/A name other_property N/A changed True N/A changed N/A populate_entity_schema N/A N/A self entity_schema N/A N/A N/A Populates the given entity_schema with values from this instance.

    Args:
      entity_schema: apphosting.ext.datastore_admin.EntitySchema proto.
     N/A N/A self __kind N/A N/A N/A entity_schema kind N/A self __kind N/A property_type_info N/A N/A N/A self __properties itervalues N/A N/A N/A N/A property_type_info populate_entity_schema_field entity_schema N/A to_json N/A N/A self N/A N/A N/A N/A kind properties N/A self __kind N/A N/A N/A p to_json N/A p N/A N/A N/A self __properties itervalues N/A from_json N/A N/A cls json N/A N/A N/A kind N/A N/A json get kind N/A properties_json N/A N/A json get properties N/A properties_json N/A N/A N/A cls kind N/A N/A N/A PropertyTypeInfo from_json p N/A p properties_json N/A N/A N/A cls kind N/A classmethod create_from_entity_proto N/A N/A cls entity_proto N/A N/A N/A Creates and populates an EntityTypeInfo from an EntityProto. N/A properties N/A N/A N/A cls __get_property_type_info property_proto N/A property_proto N/A N/A itertools chain N/A N/A entity_proto property_list N/A N/A entity_proto raw_property_list N/A kind N/A N/A utils get_kind_from_entity_pb entity_proto N/A N/A cls kind properties N/A classmethod __get_property_type_info N/A N/A cls property_proto N/A N/A N/A Returns the type mapping for the provided property. N/A name N/A N/A property_proto name N/A is_repeated N/A bool N/A N/A property_proto multiple N/A primitive_type None N/A entity_type None N/A N/A N/A property_proto has_meaning N/A N/A primitive_type N/A N/A MEANING_TO_PRIMITIVE_TYPE get N/A N/A property_proto meaning N/A N/A primitive_type None N/A N/A value N/A N/A property_proto value N/A N/A N/A value has_int64value N/A N/A primitive_type N/A N/A backup_pb2 EntitySchema INTEGER N/A N/A N/A N/A value has_booleanvalue N/A N/A primitive_type N/A N/A backup_pb2 EntitySchema BOOLEAN N/A N/A N/A N/A value has_stringvalue N/A N/A N/A N/A N/A property_proto meaning N/A N/A entity_pb Property ENTITY_PROTO N/A N/A entity_proto N/A N/A entity_pb EntityProto N/A N/A N/A N/A N/A entity_proto ParsePartialFromString N/A N/A value stringvalue N/A N/A N/A Exception N/A N/A N/A N/A entity_type N/A N/A EntityTypeInfo create_from_entity_proto entity_proto N/A N/A primitive_type N/A N/A backup_pb2 EntitySchema STRING N/A N/A N/A N/A value has_doublevalue N/A N/A primitive_type N/A N/A backup_pb2 EntitySchema FLOAT N/A N/A N/A N/A value has_pointvalue N/A N/A primitive_type N/A N/A backup_pb2 EntitySchema GEO_POINT N/A N/A N/A N/A value has_uservalue N/A N/A primitive_type N/A N/A backup_pb2 EntitySchema USER N/A N/A N/A N/A value has_referencevalue N/A N/A primitive_type N/A N/A backup_pb2 EntitySchema REFERENCE N/A N/A PropertyTypeInfo name is_repeated N/A N/A primitive_type None N/A primitive_type None N/A entity_type N/A entity_type None N/A classmethod N/A SchemaAggregationResult N/A N/A db Model N/A N/A Persistent aggregated type information for a kind.

  An instance can be retrieved via the load method or created
  using the create method. An instance aggregates all type information
  for all seen embedded_entities via the merge method and persisted when needed
  using the model put method.
   N/A entity_type_info N/A N/A model JsonProperty EntityTypeInfo default N/A EntityTypeInfo indexed False N/A is_partial N/A N/A db BooleanProperty default False merge N/A N/A self other N/A N/A N/A Merge a SchemaAggregationResult or an EntityTypeInfo with this instance.

    Args:
      other: Required SchemaAggregationResult or EntityTypeInfo to merge.

    Returns:
      True if anything was changed. False otherwise.
     N/A N/A self is_partial N/A N/A False N/A N/A isinstance other SchemaAggregationResult N/A N/A other N/A other entity_type_info N/A N/A N/A N/A self entity_type_info merge other N/A _get_parent_key N/A N/A cls backup_id kind_name N/A N/A N/A N/A N/A N/A datastore_types Key from_path Kind kind_name parent backup_id N/A classmethod create N/A N/A cls backup_id kind_name shard_id N/A N/A N/A Create SchemaAggregationResult instance.

    Args:
      backup_id: Required BackupInformation Key.
      kind_name: Required kind name as string.
      shard_id: Required shard id as string.

    Returns:
      A new SchemaAggregationResult instance.
     N/A parent N/A N/A cls _get_parent_key backup_id kind_name N/A N/A SchemaAggregationResult key_name shard_id parent parent entity_type_info N/A EntityTypeInfo kind kind_name N/A classmethod load N/A N/A cls backup_id kind_name shard_id N/A None N/A N/A Retrieve SchemaAggregationResult from the Datastore.

    Args:
      backup_id: Required BackupInformation Key.
      kind_name: Required kind name as string.
      shard_id: Optional shard id as string.

    Returns:
      SchemaAggregationResult iterator or an entity if shard_id not None.
     N/A parent N/A N/A cls _get_parent_key backup_id kind_name N/A shard_id N/A N/A key N/A N/A N/A datastore_types Key from_path N/A N/A cls kind shard_id parent parent N/A N/A N/A SchemaAggregationResult get key N/A N/A N/A N/A N/A N/A N/A N/A db Query cls ancestor parent run N/A classmethod kind N/A N/A cls N/A N/A N/A N/A utils BACKUP_INFORMATION_KIND_TYPE_INFO N/A classmethod N/A SchemaAggregationPool N/A object N/A N/A An MR pool to aggregation type information per kind. __init__ N/A N/A self backup_id kind shard_id N/A N/A N/A Construct SchemaAggregationPool instance.

    Args:
      backup_id: Required BackupInformation Key.
      kind: Required kind name as string.
      shard_id: Required shard id as string.
     N/A N/A self __backup_id backup_id N/A N/A self __kind kind N/A N/A self __shard_id shard_id N/A N/A self __aggregation N/A N/A SchemaAggregationResult load backup_id kind shard_id N/A N/A N/A self __aggregation N/A N/A N/A self __aggregation N/A N/A SchemaAggregationResult create backup_id kind shard_id N/A N/A self __needs_save True N/A N/A N/A self __needs_save False N/A merge N/A N/A self entity_type_info N/A N/A N/A Merge EntityTypeInfo into aggregated type information. N/A N/A N/A N/A self __aggregation merge entity_type_info N/A N/A N/A self __needs_save True N/A flush N/A N/A self N/A N/A N/A Save aggregated type information to the datastore if changed. N/A N/A self __needs_save N/A update_aggregation_tx N/A N/A N/A N/A N/A aggregation N/A N/A SchemaAggregationResult load N/A self __backup_id N/A self __kind N/A self __shard_id N/A aggregation N/A N/A N/A N/A aggregation merge N/A self __aggregation N/A N/A N/A N/A aggregation put force_writes True N/A N/A self __aggregation aggregation N/A N/A N/A N/A N/A self __aggregation put force_writes True N/A mark_aggregation_as_partial_tx N/A N/A N/A N/A N/A aggregation N/A N/A SchemaAggregationResult load N/A self __backup_id N/A self __kind N/A self __shard_id N/A N/A aggregation None N/A N/A aggregation N/A N/A SchemaAggregationResult create N/A self __backup_id N/A self __kind N/A self __shard_id N/A N/A aggregation is_partial True N/A N/A N/A aggregation put force_writes True N/A N/A self __aggregation aggregation N/A N/A N/A N/A N/A N/A db run_in_transaction update_aggregation_tx N/A N/A N/A N/A apiproxy_errors RequestTooLargeError N/A N/A N/A N/A db run_in_transaction mark_aggregation_as_partial_tx N/A N/A self __needs_save False N/A N/A AggregateSchema N/A N/A op Operation N/A N/A An MR Operation to aggregation type information for a kind.

  This operation will register an MR pool, SchemaAggregationPool, if
  one is not already registered and will invoke the pool's merge operation
  per entity. The pool is responsible for keeping a persistent state of
  type aggregation using the sharded db model, SchemaAggregationResult.
   __init__ N/A N/A self entity_proto N/A N/A N/A N/A self __entity_info N/A N/A EntityTypeInfo create_from_entity_proto entity_proto N/A __call__ N/A N/A self ctx N/A N/A N/A pool N/A N/A ctx get_pool schema_aggregation_pool N/A N/A pool N/A N/A backup_id N/A N/A datastore_types Key N/A N/A N/A N/A N/A context get mapreduce_spec params N/A backup_info_pk N/A pool N/A SchemaAggregationPool backup_id N/A N/A self __entity_info kind N/A ctx shard_id N/A N/A N/A ctx register_pool schema_aggregation_pool pool N/A N/A N/A pool merge N/A self __entity_info N/A N/A BackupEntity N/A object N/A N/A A class which dumps the entity to the writer. map N/A N/A self entity_proto N/A N/A N/A Backup entity map handler.

    Args:
      entity_proto: An instance of entity_pb.EntityProto.

    Yields:
      A serialized entity_pb.EntityProto as a string
     N/A N/A N/A N/A entity_proto SerializeToString N/A N/A N/A AggregateSchema entity_proto N/A N/A RestoreEntity N/A object N/A N/A A class which restore the entity to datastore. __init__ N/A N/A self N/A N/A N/A N/A self initialized False N/A N/A self kind_filter None N/A N/A self app_id None N/A initialize N/A N/A self N/A N/A N/A N/A self initialized N/A N/A N/A mapper_params N/A N/A N/A N/A N/A context get mapreduce_spec mapper params N/A kind_filter N/A N/A mapper_params get kind_filter N/A N/A self kind_filter N/A kind_filter N/A set kind_filter None N/A original_app N/A N/A mapper_params get original_app N/A N/A original_app N/A N/A N/A os getenv APPLICATION_ID original_app N/A N/A N/A self app_id N/A N/A os getenv APPLICATION_ID N/A N/A self initialized True N/A map N/A N/A self record N/A N/A N/A Restore entity map handler.

    Args:
      record: A serialized entity_pb.EntityProto.

    Yields:
      A operation.db.Put for the mapped entity
     N/A N/A N/A self initialize N/A pb N/A N/A entity_pb EntityProto contents record N/A N/A self app_id N/A N/A N/A N/A utils FixKeys pb N/A self app_id N/A entity N/A N/A N/A datastore Entity FromPb pb N/A N/A N/A N/A self kind_filter N/A N/A N/A entity kind N/A self kind_filter N/A N/A N/A N/A N/A N/A op db Put entity N/A N/A self app_id N/A N/A N/A N/A N/A utils AllocateMaxId N/A N/A entity key N/A self app_id N/A N/A validate_gs_bucket_name N/A N/A bucket_name N/A N/A N/A Validate the format of the given bucket_name.

  Validation rules are based:
  https://developers.google.com/storage/docs/bucketnaming#requirements

  Args:
    bucket_name: The bucket name to validate.

  Raises:
    BackupValidationException: If the bucket name is invalid.
   N/A N/A N/A len bucket_name MAX_BUCKET_LEN N/A N/A N/A BackupValidationException N/A Bucket name length should not be longer than %d MAX_BUCKET_LEN N/A N/A N/A len bucket_name MIN_BUCKET_LEN N/A N/A N/A BackupValidationException N/A Bucket name length should be longer than %d MIN_BUCKET_LEN N/A N/A N/A N/A N/A bucket_name lower startswith goog N/A N/A N/A BackupValidationException Bucket name should not start with a "goog" prefix N/A bucket_elements N/A N/A bucket_name split . N/A bucket_element bucket_elements N/A N/A N/A N/A len bucket_element MAX_BUCKET_SEGMENT_LEN N/A N/A N/A BackupValidationException N/A Segment length of bucket name should not be longer than %d MAX_BUCKET_SEGMENT_LEN N/A N/A N/A N/A re match BUCKET_PATTERN bucket_name N/A N/A N/A BackupValidationException N/A Invalid bucket name "%s" bucket_name N/A is_accessible_bucket_name N/A N/A bucket_name N/A N/A N/A Returns True if the application has access to the specified bucket. N/A scope https://www.googleapis.com/auth/devstorage.read_write N/A url N/A https://%s.commondatastorage.googleapis.com/ bucket_name N/A N/A auth_token _ N/A N/A app_identity get_access_token scope N/A result N/A N/A urlfetch fetch url method N/A urlfetch HEAD headers N/A Authorization x-goog-api-version N/A OAuth %s auth_token 2 N/A N/A result N/A N/A result status_code 200 N/A verify_bucket_writable N/A N/A bucket_name N/A N/A N/A Verify the application can write to the specified bucket.

  Args:
    bucket_name: The bucket to verify.

  Raises:
    BackupValidationException: If the bucket is not writable.
   N/A path N/A /gs/%s bucket_name N/A N/A N/A file_names N/A N/A N/A files gs listdir path N/A prefix max_keys TEST_WRITE_FILENAME_PREFIX MAX_KEYS_LIST_SIZE N/A N/A N/A N/A N/A files InvalidParameterError N/A files PermissionDeniedError N/A N/A N/A BackupValidationException N/A Bucket "%s" not accessible bucket_name N/A N/A N/A files InvalidFileNameError N/A N/A N/A BackupValidationException N/A Bucket "%s" does not exist bucket_name N/A file_name N/A %s/%s.tmp N/A path TEST_WRITE_FILENAME_PREFIX N/A file_name_try 0 N/A True N/A N/A N/A file_name_try MAX_TEST_FILENAME_TRIES N/A N/A N/A N/A file_name file_names N/A N/A N/A gen N/A N/A random randint 0 9999 N/A file_name N/A %s/%s_%s.tmp N/A path TEST_WRITE_FILENAME_PREFIX gen N/A file_name_try 1 N/A N/A N/A test_file N/A N/A files open N/A N/A N/A files gs create file_name a exclusive_lock True N/A N/A N/A N/A N/A test_file write test N/A N/A N/A N/A test_file close finalize True N/A N/A N/A N/A files PermissionDeniedError N/A N/A N/A BackupValidationException N/A Bucket "%s" is not writable bucket_name N/A N/A N/A N/A N/A files delete file_name N/A N/A N/A N/A N/A files InvalidArgumentError N/A files InvalidFileNameError IOError N/A N/A N/A N/A logging warn Failed to delete test file %s file_name N/A is_readable_gs_handle N/A N/A gs_handle N/A N/A N/A Return True if the application can read the specified gs_handle. N/A N/A N/A N/A N/A files open gs_handle bak_file N/A N/A N/A N/A bak_file read 1 N/A N/A N/A N/A files PermissionDeniedError N/A N/A False N/A True N/A parse_gs_handle N/A N/A gs_handle N/A N/A N/A Splits [/gs/]?bucket_name[/folder]*[/file]? to (bucket_name, path | ''). N/A N/A N/A gs_handle startswith / N/A N/A filesystem N/A N/A N/A N/A gs_handle N/A 1 split / 1 N/A 0 N/A N/A filesystem gs N/A N/A gs_handle N/A gs_handle N/A 4 N/A N/A N/A BackupValidationException N/A Unsupported filesystem: %s filesystem N/A tokens N/A N/A gs_handle split / 1 N/A N/A N/A N/A len tokens 1 N/A N/A tokens N/A 0 N/A tuple tokens N/A list_bucket_files N/A N/A bucket_name prefix max_keys N/A 1000 N/A N/A Returns a listing of of a bucket that matches the given prefix. N/A scope https://www.googleapis.com/auth/devstorage.read_only N/A url N/A https://%s.commondatastorage.googleapis.com/? bucket_name N/A query N/A N/A max-keys max_keys N/A prefix N/A N/A N/A N/A query append N/A prefix prefix N/A url N/A N/A urllib urlencode query N/A N/A auth_token _ N/A N/A app_identity get_access_token scope N/A result N/A N/A urlfetch fetch url method N/A urlfetch GET headers N/A Authorization x-goog-api-version N/A OAuth %s auth_token 2 N/A N/A result N/A N/A result status_code 200 N/A N/A doc N/A N/A N/A N/A xml dom minidom parseString N/A result content N/A N/A N/A N/A N/A node childNodes N/A 0 data N/A node N/A N/A doc getElementsByTagName Key N/A N/A BackupValidationException Request to Google Cloud Storage failed N/A get_gs_object N/A N/A bucket_name path N/A N/A N/A Returns a listing of of a bucket that matches the given prefix. N/A scope https://www.googleapis.com/auth/devstorage.read_only N/A url N/A https://%s.commondatastorage.googleapis.com/%s N/A bucket_name path N/A N/A auth_token _ N/A N/A app_identity get_access_token scope N/A result N/A N/A urlfetch fetch url method N/A urlfetch GET headers N/A Authorization x-goog-api-version N/A OAuth %s auth_token 2 N/A N/A result N/A N/A result status_code 200 N/A N/A N/A result content N/A N/A BackupValidationException Requested path was not found N/A get_queue_names N/A N/A app_id max_rows N/A None 100 N/A N/A Returns a list with all non-special queue names for app_id. N/A rpc N/A N/A apiproxy_stub_map UserRPC taskqueue N/A request N/A N/A taskqueue_service_pb TaskQueueFetchQueuesRequest N/A response N/A N/A taskqueue_service_pb TaskQueueFetchQueuesResponse N/A app_id N/A N/A N/A N/A request set_app_id app_id N/A N/A N/A request set_max_rows max_rows N/A queues N/A default N/A N/A N/A N/A N/A rpc make_call FetchQueues request response N/A N/A N/A rpc check_success N/A queue N/A N/A response queue_list N/A N/A N/A N/A N/A N/A queue mode N/A N/A taskqueue_service_pb TaskQueueMode PUSH N/A N/A N/A N/A N/A queue queue_name startswith __ N/A N/A N/A queue queue_name default N/A N/A N/A N/A queues append N/A N/A queue queue_name N/A N/A N/A Exception N/A N/A N/A N/A logging exception Failed to get queue names. N/A queues N/A handlers_list N/A N/A base_path N/A N/A N/A N/A N/A N/A %s/%s N/A base_path N/A BackupLinkHandler SUFFIX BackupLinkHandler N/A N/A %s/%s N/A base_path N/A ConfirmBackupHandler SUFFIX ConfirmBackupHandler N/A N/A %s/%s N/A base_path N/A DoBackupHandler SUFFIX DoBackupHandler N/A N/A %s/%s N/A base_path N/A DoBackupRestoreHandler SUFFIX DoBackupRestoreHandler N/A N/A %s/%s N/A base_path N/A DoBackupDeleteHandler SUFFIX DoBackupDeleteHandler N/A N/A %s/%s N/A base_path N/A DoBackupAbortHandler SUFFIX DoBackupAbortHandler N/A N/A %s/%s N/A base_path N/A DoBackupImportHandler SUFFIX DoBackupImportHandler N/A