Module Expr Str Import alias Import alias Import alias Import alias Import alias Import 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 identifier ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Return NameLoad decorator_list Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore TupleLoad Str Str Str Str Str Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore IfExp UnaryOpNot CompareIn NameLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index NameLoad Assign NameStore Str Assign NameStore Str If NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse If NameLoad body TryExcept body Expr Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpOr UnaryOpNot Call NameLoad NameLoad Str BoolOpAnd Call NameLoad NameLoad Str UnaryOpNot AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad Str keyword AttributeLoad NameLoad attr keyword Str Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Call NameLoad Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore SubscriptLoad NameLoad Index Num If UnaryOpNot AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str keyword Str If UnaryOpNot Call NameLoad NameLoad Str body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad Str keyword NameLoad keyword Str Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Call NameLoad Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore SubscriptLoad NameLoad Index Num If UnaryOpNot Call NameLoad NameLoad Str body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad Str keyword AttributeLoad NameLoad attr keyword Str Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareGt Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr keyword BinOpMod Str AttributeLoad NameLoad attr keyword Str If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareNotEq IfExp NameLoad Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad body Raise Call NameLoad Str keyword Str keyword Str Return NameLoad decorator_list Call NameLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareGt Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr keyword BinOpMod Str AttributeLoad NameLoad attr keyword Str For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad Str keyword Str keyword Str Return NameLoad decorator_list Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad If CompareNotEq Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad keyword BinOpMod Str NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareNotEq IfExp NameLoad Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad keyword BinOpMod Str NameLoad keyword Str Return NameLoad decorator_list Call NameLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr keyword BinOpMod Str NameLoad keyword Str Return NameLoad decorator_list Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv Call NameLoad NameLoad BinOpMult BinOpMult Num Num AttributeLoad NameLoad attr decorator_list If CompareLt NameLoad Num body If CompareGt NameLoad Num body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareEq NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore NameLoad If CompareGt NameLoad BinOpMult BinOpMult BinOpMult NameLoad Num Num AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Num body Return Num AugAssignSub NameStore Num AugAssignBitOr NameStore BinOpRShift NameLoad Num AugAssignBitOr NameStore BinOpRShift NameLoad Num AugAssignBitOr NameStore BinOpRShift NameLoad Num AugAssignBitOr NameStore BinOpRShift NameLoad Num AugAssignBitOr NameStore BinOpRShift NameLoad Num Return BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Index Num Assign NameStore IfExp CompareGt Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad NameLoad If CompareLt Call NameLoad NameLoad NameLoad body For NameStore Call NameLoad BinOpSub NameLoad Call NameLoad NameLoad body AugAssignAdd NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore BinOpMod Str NameLoad For NameStore ListLoad Str Str Str Str body If CompareLt NameLoad Num body Return BinOpMod NameLoad TupleLoad NameLoad NameLoad AugAssignDiv NameStore Num Return BinOpMod NameLoad TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Str handlers ExceptHandler body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore ListLoad While NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad Str keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr AugAssignAdd NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str If BoolOpAnd NameLoad CompareGtE Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice NameLoad Break If UnaryOpNot NameLoad body Break Return NameLoad decorator_list NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad Str keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list NameLoad NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore ListLoad While NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr AugAssignAdd NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str If BoolOpAnd NameLoad CompareGtE Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice NameLoad Break If UnaryOpNot NameLoad body Break Return NameLoad decorator_list NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore ListLoad While NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr AugAssignAdd NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str If BoolOpAnd NameLoad CompareGtE Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice NameLoad Break If UnaryOpNot NameLoad body Break Return NameLoad decorator_list NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore IfExp NameLoad NameLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str If BoolOpAnd NameLoad NameLoad body Raise Call NameLoad Str keyword Str Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body If UnaryOpNot NameLoad body Raise Call NameLoad Str keyword Str TryExcept body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword Str orelse If SubscriptLoad Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Index Num body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num orelse Raise Call NameLoad Str keyword Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad IfExp NameLoad NameLoad Str NameLoad orelse If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad IfExp NameLoad NameLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMult BinOpMult NameLoad Num Num Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareEq NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Break orelse Raise Call NameLoad Str keyword Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr If NameLoad body Assign NameStore NameLoad While NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Num For NameStore SubscriptLoad NameLoad Index Str body Assign TupleStore NameStore NameStore GeneratorExp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str AugAssignAdd NameStore Num If UnaryOpNot CompareEq NameLoad NameLoad body If NameLoad body Raise Call NameLoad Str keyword Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareGt NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str keyword Str keyword Str Assign NameStore NameLoad Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Raise Call NameLoad Str keyword Str keyword Str orelse Raise Call NameLoad Str keyword Str keyword Str AugAssignAdd NameStore BinOpSub NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Break If CompareGt NameLoad Num body Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad BinOpDiv BinOpMult Num AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad Num body Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad BinOpDiv BinOpMult Num AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr While NameLoad body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareGt AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad orelse Assign NameStore SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpDiv BinOpSub AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad NameLoad If CompareGt NameLoad Num body Assign NameStore Call NameLoad BinOpDiv NameLoad BinOpSub NameLoad NameLoad If CompareGt NameLoad Num body Assign NameStore BinOpDiv BinOpSub NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareIsNot AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr body Assign NameStore Str orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad BinOpDiv BinOpMult Num AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Num Call AttributeLoad NameLoad attr NameLoad Num NameLoad orelse Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpDiv AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore IfExp NameLoad NameLoad NameLoad Assign NameStore IfExp NameLoad NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad BinOpMod Str Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad Return TupleLoad NameLoad NameLoad decorator_list NameLoad NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body If SubscriptLoad NameLoad Index Str body Return TupleLoad Str NameLoad SubscriptLoad NameLoad Index Str Return TupleLoad Str NameLoad NameLoad Assign NameStore Dict Str Str NameLoad Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return TupleLoad Str NameLoad NameLoad decorator_list NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Raise Call NameLoad Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Break orelse Raise Call NameLoad Str keyword Str Assign NameStore NameLoad If NameLoad body If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str keyword Str TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Str keyword NameLoad keyword Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore BinOpMult BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Assign NameStore NameStore Num Assign NameStore ListLoad Assign NameStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str While CompareLt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str keyword TupleLoad NameLoad BinOpSub NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore NameLoad If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Str keyword NameLoad keyword Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpDiv BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv NameLoad BinOpSub NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareIsNot AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr body Assign NameStore Str orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad BinOpDiv BinOpMult Num NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Num Call AttributeLoad NameLoad attr NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str body Raise Call NameLoad Str keyword Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpDiv NameLoad BinOpSub NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str keyword Str keyword Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad If NameLoad body AugAssignAdd NameStore ListLoad BinOpMod Str TupleLoad NameLoad If NameLoad body AugAssignAdd NameStore ListLoad BinOpMod Str TupleLoad NameLoad If NameLoad body AugAssignAdd NameStore ListLoad BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str Str Str If NameLoad body AugAssignAdd NameStore ListLoad BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str Str Str If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad TryExcept body For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad Str keyword Str keyword NameLoad decorator_list NameLoad NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str Str body If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Break Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad If BoolOpAnd AttributeLoad NameLoad attr CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict For NameStore SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str Dict Str Str Str Str Str Str Str NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str BinOpMod Str Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr keyword AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad Str keyword NameLoad keyword Str Assign NameStore Dict If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad Str keyword NameLoad keyword Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body For NameStore NameLoad body If UnaryOpNot CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad Str keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If BoolOpOr NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Return TupleLoad NameLoad NameLoad decorator_list NameLoad NameLoad Call NameLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword NameLoad keyword Str Assign NameStore ListComp Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr comprehension NameStore Call NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr BinOpMult Num Num Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str NameLoad ListLoad Str Str Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body TryExcept body Import alias Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index Str AugAssignAdd NameStore ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Index Str Index Str Index Str If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str orelse Assign NameStore ListComp SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Index Num comprehension NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore ListLoad If Call AttributeLoad NameLoad attr Str NameLoad body If Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str attr Str Assign NameStore IfExp CompareEq SubscriptLoad NameLoad Index Num Str SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore ListLoad If Call AttributeLoad NameLoad attr Str NameLoad body If Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str attr Str Assign NameStore IfExp CompareEq SubscriptLoad NameLoad Index Num Str SubscriptLoad NameLoad Slice Num NameLoad If UnaryOpNot NameLoad body Assign NameStore ListComp SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Index Num comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Index Str Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body For NameStore NameLoad body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Raise Call NameLoad Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num keyword NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body TryExcept body Import alias Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad If CompareEq NameLoad Str body If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str orelse Assign SubscriptStore NameLoad Index Str Str orelse Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str orelse Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str orelse Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str AugAssignAdd NameStore ListLoad NameLoad Return NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Str Index Str Index Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad NameLoad If Call NameLoad NameLoad body TryExcept body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Index Str AugAssignAdd NameStore ListLoad Dict Str Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Return NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str Index Str Assign NameStore ListLoad For NameStore NameLoad body AugAssignAdd NameStore ListLoad Dict Str Str SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Index Num SubscriptLoad NameLoad Index Str Return NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str Index Str Assign NameStore ListLoad For NameStore NameLoad body TryExcept body Import alias Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Index Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpAnd NameLoad CompareNotEq NameLoad NameLoad body Continue If BoolOpAnd NameLoad CompareNotEq NameLoad NameLoad body Continue If BoolOpAnd NameLoad CompareNotEq NameLoad NameLoad body Continue Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad AugAssignAdd NameStore ListLoad NameLoad Return NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If BoolOpOr UnaryOpNot NameLoad UnaryOpNot NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str AugAssignAdd NameStore ListLoad NameLoad Return NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A 
.. module:: GlacierWrapper
   :platform: Unix, Windows
   :synopsis: Wrapper for accessing Amazon Glacier, with Amazon SimpleDB 
   support and other features.
 N/A math N/A json N/A pytz N/A re N/A logging N/A os.path N/A time N/A sys N/A traceback N/A glaciercorecalls N/A select N/A hashlib N/A fcntl N/A termios N/A struct N/A boto N/A boto.sdb boto sns functools wraps dateutil.parser parse dtparse datetime datetime pprint pformat glaciercorecalls GlacierConnection GlacierWriter glacierexception * log_class_call N/A object N/A N/A 
    Decorator that logs class calls to specific functions.

    .. note::

        Set loglevel to DEBUG to see these logs.
     __init__ N/A N/A self start finish getter N/A None N/A N/A 
        Decorator constructor.

        :param start: Message logged when starting the class.
        :type start: str.
        :param finish: Message logged when finishing the class.
        :type finish: str.
         N/A N/A self start start N/A N/A self finish finish N/A N/A self getter getter N/A __call__ N/A N/A self fn N/A N/A wrapper N/A N/A N/A args kwargs N/A N/A that N/A args N/A 0 N/A N/A N/A N/A that logger debug N/A self start N/A ret N/A fn args kwargs N/A N/A N/A N/A that logger debug N/A self finish N/A N/A self getter N/A N/A N/A N/A N/A that logger debug N/A pformat N/A N/A self getter ret N/A N/A N/A N/A N/A that logger debug N/A pformat ret N/A ret N/A N/A N/A wrapper func_name N/A fn func_name N/A N/A hasattr fn __name__ N/A N/A N/A wrapper __name__ N/A self name N/A fn __name__ N/A N/A hasattr fn __doc__ N/A N/A N/A wrapper __doc__ N/A fn __doc__ N/A N/A hasattr fn __module__ N/A N/A N/A wrapper __module__ N/A fn __module__ N/A wrapper N/A N/A mmap N/A object N/A N/A 
    Not really a mmap, just a simple read-only substitute that
    does not require having a lot of RAM to upload large files.
     __init__ N/A N/A self file N/A N/A N/A N/A self file file N/A N/A self size N/A N/A N/A os fstat N/A N/A N/A self file fileno st_size N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A N/A self file seek N/A key start N/A N/A N/A key stop None N/A N/A stop N/A self size N/A N/A stop N/A key stop N/A N/A N/A N/A self file read N/A stop N/A key start N/A N/A GlacierWrapper N/A object N/A N/A 
    Wrapper for accessing Amazon Glacier, with Amazon SimpleDB support
    and other features.
     N/A VAULT_NAME_ALLOWED_CHARACTERS [a-zA-Z\.\-\_0-9]+ N/A ID_ALLOWED_CHARACTERS [a-zA-Z\-\_0-9]+ N/A MAX_VAULT_NAME_LENGTH 255 N/A MAX_VAULT_DESCRIPTION_LENGTH 1024 N/A MAX_PARTS 10000 N/A AVAILABLE_REGIONS N/A us-east-1 us-west-2 us-west-1 eu-west-1 ap-northeast-1 ap-southeast-2 N/A AVAILABLE_REGIONS_MESSAGE Invalid region. Available regions for Amazon Glacier are:
us-east-1 (US - Virginia)
us-west-1 (US - N. California)
us-west-2 (US - Oregon)
eu-west-1 (EU - Ireland)
ap-northeast-1 (Asia-Pacific - Tokyo)
ap-southeast-2 (Asia-Pacific - Sydney) setuplogging N/A N/A self logfile loglevel logtostdout N/A N/A N/A 
        Set up the logging facility.

        * If no logging parameters are given, WARNING-level logging will be printed to stdout.
        * If logtostdout is True, messages will be sent to stdout, even if a logfile is given.
        * If a logfile is given but can not be written to, logs are sent to stderr instead.

        :param logfile: the fully qualified file name of where to log to.
        :type logfile: str
        :param loglevel: the level of logging::

           * CRITICAL
           * ERROR
           * WARNING
           * INFO
           * DEBUG

        :type loglevel: str
        :param logtostdout: whether to sent log messages to stdout.
        :type logtostdout: boolean
         N/A levels N/A 3 CRITICAL 2 ERROR 1 WARNING 0 INFO -1 DEBUG N/A logging CRITICAL N/A logging CRITICAL N/A logging ERROR N/A logging ERROR N/A logging WARNING N/A logging WARNING N/A logging INFO N/A logging INFO N/A logging DEBUG N/A logging DEBUG N/A loglevel N/A N/A N/A loglevel N/A N/A levels keys WARNING N/A levels N/A loglevel N/A datefmt %b %d %H:%M:%S N/A logformat %(asctime)s %(levelname)-8s glacier-cmd %(message)s N/A logtostdout N/A N/A N/A N/A logging basicConfig level loglevel stream N/A sys stdout format logformat datefmt datefmt N/A N/A logfile N/A N/A N/A N/A N/A open logfile a N/A N/A N/A IOError N/A N/A N/A N/A logging basicConfig level loglevel stream N/A sys stderr format logformat datefmt datefmt N/A N/A N/A N/A logging basicConfig level loglevel filename logfile format logformat datefmt datefmt N/A N/A N/A N/A logging basicConfig level WARNING stream N/A sys stdout format logformat datefmt datefmt N/A glacier_connect N/A N/A func N/A N/A N/A 
        Decorator which handles the connection to Amazon Glacier.

        :param func: Function to wrap
        :type func: function

        :returns: wrapper function
        :rtype: function
        :raises: :py:exc:`glacier.glacierexception.ConnectionException`
         glacier_connect_wrap N/A N/A N/A args kwargs N/A N/A self N/A args N/A 0 N/A N/A N/A N/A hasattr self glacierconn N/A N/A hasattr self glacierconn N/A N/A self glacierconn N/A N/A N/A N/A N/A N/A N/A self logger debug                         Connecting to Amazon Glacier with
                        aws_access_key %s
                        aws_secret_key %s
                        region %s                         N/A self aws_access_key N/A self aws_secret_key N/A self region N/A N/A self glacierconn N/A GlacierConnection N/A self aws_access_key N/A self aws_secret_key region_name N/A self region N/A N/A N/A N/A N/A boto exception AWSConnectionError N/A e N/A N/A N/A ConnectionException Cannot connect to Amazon Glacier. cause N/A e cause code GlacierConnectionError N/A N/A func args kwargs N/A N/A wraps func N/A log_class_call Connecting to Amazon Glacier. Connection to Amazon Glacier successful. N/A glacier_connect_wrap N/A sdb_connect N/A N/A func N/A N/A N/A 
        Decorator which connects to Amazon SimpleDB.

        :param func: Function to wrap
        :type func: function

        :returns: wrapper function
        :rtype: function
        :raises: :py:exc:`glacier.glacierexception.ConnectionException`
         sdb_connect_wrap N/A N/A N/A args kwargs N/A N/A self N/A args N/A 0 N/A N/A N/A self bookkeeping N/A N/A N/A func args kwargs N/A N/A N/A self bookkeeping_domain_name N/A N/A N/A InputException Bookkeeping enabled but no Amazon SimpleDB domain given.
Provide a domain in either the config file or via the
command line, or disable bookkeeping. code SdbConnectionError N/A N/A N/A hasattr self sdb_conn N/A N/A N/A N/A N/A N/A N/A self logger debug Connecting to Amazon SimpleDB domain %s with
aws_access_key %s
aws_secret_key %s N/A self bookkeeping_domain_name N/A self aws_access_key N/A self aws_secret_key N/A N/A self sdb_conn N/A N/A N/A boto sdb connect_to_region N/A self sdb_region aws_access_key_id N/A self sdb_access_key aws_secret_access_key N/A self sdb_secret_key N/A domain_name N/A self bookkeeping_domain_name N/A N/A self sdb_domain N/A N/A N/A self sdb_conn create_domain domain_name N/A N/A N/A N/A N/A N/A boto exception AWSConnectionError N/A N/A boto exception SDBResponseError N/A e N/A N/A N/A ConnectionException Cannot connect to Amazon SimpleDB. cause e code SdbConnectionError N/A N/A func args kwargs N/A N/A wraps func N/A log_class_call Connecting to Amazon SimpleDB. Connection to Amazon SimpleDB successful. N/A sdb_connect_wrap N/A sns_connect N/A N/A func N/A N/A N/A 
        Decorator which connects to Amazon SNS.

        :param func: Function to wrap
        :type func: function

        :returns: wrapper function
        :rtype: function
        :raises: GlacierWrapper.ConnectionException
         sns_connect_wrap N/A N/A N/A args kwargs N/A N/A self N/A args N/A 0 N/A N/A N/A hasattr self sns_conn N/A N/A N/A N/A N/A self sns_conn N/A N/A N/A boto sns connect_to_region aws_access_key_id N/A self aws_access_key aws_secret_access_key N/A self aws_secret_key region_name N/A self region N/A N/A N/A N/A N/A boto exception AWSConnectionError N/A e N/A N/A N/A ConnectionException Cannot connect to Amazon SNS. cause N/A e cause code SNSConnectionError N/A N/A func args kwargs N/A N/A wraps func N/A sns_connect_wrap N/A _check_vault_name N/A N/A self name N/A N/A N/A 
        Checks whether we have a valid vault name.

        :param name: Vault name
        :type name: str

        :returns: True if valid, raises exception otherwise.
        :rtype: boolean
        :raises: :py:exc:`glacier.glacierexception.InputException`
         N/A N/A N/A len name N/A self MAX_VAULT_NAME_LENGTH N/A N/A N/A InputException N/A Vault name can be at most %s characters long. N/A self MAX_VAULT_NAME_LENGTH cause N/A Vault name more than %s characters long. N/A self MAX_VAULT_NAME_LENGTH code VaultNameError N/A N/A N/A len name 0 N/A N/A N/A InputException Vault name has to be at least 1 character long. cause Vault name has to be at least 1 character long. code VaultNameError N/A m N/A N/A re match N/A self VAULT_NAME_ALLOWED_CHARACTERS name N/A N/A N/A m N/A N/A m end 0 N/A len name N/A N/A N/A InputException Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), and '.' (period) cause Illegal characters in the vault name. code VaultNameError N/A True N/A N/A log_class_call Checking whether vault name is valid. Vault name is valid. _check_vault_description N/A N/A self description N/A N/A N/A 
        Checks whether a vault description is valid (at least one character,
        not too long, no illegal characters).

        :param description: Vault description
        :type description: str

        :returns: True if valid, raises exception otherwise.
        :rtype: boolean
        :raises: :py:exc:`glacier.glacierexception.InputException`
         N/A N/A N/A len description N/A self MAX_VAULT_DESCRIPTION_LENGTH N/A N/A N/A InputException N/A Description must be no more than %s characters. N/A self MAX_VAULT_DESCRIPTION_LENGTH cause N/A Vault description contains more than %s characters. N/A self MAX_VAULT_DESCRIPTION_LENGTH code VaultDescriptionError N/A char description N/A N/A n N/A ord char N/A N/A N/A n 32 N/A n 126 N/A N/A N/A InputException The allowed characters are 7-bit ASCII without control codes, specifically ASCII values 32-126 decimal or 0x20-0x7E hexadecimal. cause Invalid characters in the vault name. code VaultDescriptionError N/A True N/A N/A log_class_call Checking whether vault description is valid. Vault description is valid. _check_id N/A N/A self amazon_id id_type N/A N/A N/A 
        Checks if an id (jobID, uploadID, archiveID) is valid.
        A jobID or uploadID is 92 characters long, an archiveID is
        138 characters long.
        Valid characters are a-z, A-Z, 0-9, '-' and '_'.

        :param amazon_id: id to be validated
        :type amazon_id: str
        :param id_type: the case-sensity type of id (JobId, UploadId, ArchiveId).
        :type id_type: str

        :returns: True if valid, raises exception otherwise.
        :rtype: boolean
        :raises: :py:exc:`glacier.glacierexception.InputException`
         N/A length N/A JobId UploadId ArchiveId 92 92 138 N/A N/A N/A N/A self logger debug N/A Checking a %s. id_type N/A N/A N/A len amazon_id N/A length N/A id_type N/A N/A N/A InputException N/A A %s must be %s characters long. This ID is %s characters. N/A id_type N/A length N/A id_type N/A len amazon_id cause N/A Incorrect length of the %s string. id_type code IdError N/A m N/A N/A re match N/A self ID_ALLOWED_CHARACTERS amazon_id N/A N/A N/A m N/A N/A m end 0 N/A len amazon_id N/A N/A N/A InputException N/A This %s contains invalid characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore) and '-' (hyphen) id_type cause N/A Illegal characters in the %s string. id_type code IdError N/A True N/A N/A log_class_call Checking whether id is valid. Id is valid. _check_region N/A N/A self region N/A N/A N/A 
        Checks whether the region given is valid.

        :param region: the region to be validated.
        :type region: str

        :returns: True if valid, raises exception otherwise.
        :rtype: boolean
        :raises: GlacierWrapper.InputException
         N/A N/A N/A region N/A self AVAILABLE_REGIONS N/A N/A N/A InputException N/A self AVAILABLE_REGIONS_MESSAGE cause N/A Invalid region code: %s. region code RegionError N/A True N/A N/A log_class_call Validating region. Region is valid. _check_part_size N/A N/A self part_size total_size N/A N/A N/A 
        Check the part size:

        - check whether we have a part size, if not: use default.
        - check whether part size is a power of two: if not,
            increase until it is.
        - check wehther part size is big enough for the archive
            total size: if not, increase until it is.

        Return part size to use.
         _part_size_for_total_size N/A N/A total_size N/A N/A N/A N/A N/A self _next_power_of_2 N/A int N/A N/A math ceil N/A N/A float total_size N/A N/A 1024 1024 N/A self MAX_PARTS N/A N/A N/A part_size 0 N/A N/A N/A total_size 0 N/A N/A part_size N/A _part_size_for_total_size total_size N/A N/A part_size N/A GlacierWriter DEFAULT_PART_SIZE N/A N/A ps N/A N/A self _next_power_of_2 part_size N/A N/A N/A ps part_size N/A N/A N/A N/A N/A self logger warning N/A Part size in MB must be a power of 2, e.g. 1, 2, 4, 8 MB; automatically increased part size from %s to %s. N/A part_size ps N/A part_size ps N/A N/A total_size N/A N/A N/A part_size 1024 1024 N/A self MAX_PARTS N/A N/A part_size N/A _part_size_for_total_size total_size N/A N/A N/A N/A self logger warning N/A Part size given is too small; using %s MB parts to upload. part_size N/A part_size N/A _next_power_of_2 N/A N/A self v N/A N/A N/A 
        Returns the next power of 2, or the argument if it's
        already a power of 2.

        :param v: the value to be tested.
        :type v: int

        :returns: the next power of 2.
        :rtype: int
         N/A N/A v 0 N/A N/A 1 N/A v 1 N/A v N/A v 1 N/A v N/A v 2 N/A v N/A v 4 N/A v N/A v 8 N/A v N/A v 16 N/A N/A v 1 N/A _bold N/A N/A self msg N/A N/A N/A 
        Uses ANSI codes to make text bold for printing on the tty.
         N/A N/A [1m%s[0m msg N/A _progress N/A N/A self msg N/A N/A N/A 
        A progress indicator. Prints the progress message if stdout
        is connected to a tty (i.e. run from the command prompt).

        :param msg: the progress message to be printed.
        :type msg: str
         N/A N/A N/A N/A sys stdout isatty N/A N/A cols N/A N/A N/A struct unpack hh N/A N/A fcntl ioctl N/A sys stdout N/A termios TIOCGWINSZ 1234 N/A 1 N/A msg N/A N/A N/A len msg cols N/A msg N/A cols msg N/A N/A N/A len msg cols N/A N/A i N/A range N/A cols N/A len msg N/A N/A msg N/A N/A N/A N/A sys stdout write N/A msg N/A N/A N/A N/A sys stdout flush N/A _size_fmt N/A N/A self num decimals N/A 1 N/A N/A 
        Formats byte sizes in human readable format. Anything bigger
        than TB is returned as TB.
        Number of decimals is optional, defaults to 1.

        :param num: the size in bytes.
        :type num: int
        :param decimals: the number of decimals to return.
        :type decimals: int

        :returns: the formatted number.
        :rtype: str
         N/A fmt N/A %%3.%sf %%s decimals N/A x N/A bytes KB MB GB N/A N/A N/A num 1024.0 N/A N/A N/A fmt N/A num x N/A num 1024.0 N/A N/A fmt N/A num TB N/A _decode_error_message N/A N/A self e N/A N/A N/A N/A N/A e N/A N/A N/A json loads e N/A message N/A N/A N/A N/A e None N/A e N/A lsvault N/A N/A self limit N/A None N/A N/A 
        Lists available vaults.

        :returns: List of vault descriptions.

            .. code-block:: python

                [{u'CreationDate': u'2012-09-20T14:29:14.710Z',
                  u'LastInventoryDate': u'2012-10-01T02:10:12.497Z',
                  u'NumberOfArchives': 15,
                  u'SizeInBytes': 33932739443L,
                  u'VaultARN': u'arn:aws:glacier:us-east-1:012345678901:vaults/your_vault_name',
                  u'VaultName': u'your_vault_name'},
                  ...
                ]

        :rtype: list
        :raises: :py:exc:`glacier.glacierexception.CommunicationException`,
                 :py:exc:`glacier.glacierexception.ResponseException`
         N/A marker None N/A vault_list N/A N/A True N/A N/A N/A N/A response N/A N/A N/A self glacierconn list_vaults marker marker N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException Failed to recieve vault list. cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A vault_list N/A N/A N/A response copy N/A VaultList N/A marker N/A N/A N/A response copy N/A Marker N/A N/A limit N/A N/A len vault_list limit N/A N/A vault_list N/A vault_list N/A limit N/A N/A N/A marker N/A N/A N/A vault_list N/A glacier_connect N/A log_class_call Listing vaults. Listing vaults complete. mkvault N/A N/A self vault_name N/A N/A N/A 
        Creates a new vault.

        :param vault_name: Name of vault to be created.
        :type vault_name: str

        :returns: Response data.
        :rtype: :py:class:`boto.glacier.response.GlacierResponse`
        :raises: :py:exc:`glacier.glacierexception.CommunicationException`
         N/A N/A N/A self _check_vault_name vault_name N/A N/A N/A response N/A N/A N/A self glacierconn create_vault vault_name N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to create vault with name %s. vault_name cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A N/A N/A response copy N/A glacier_connect N/A log_class_call Creating vault. Vault creation completed. rmvault N/A N/A self vault_name N/A N/A N/A 
        Removes a vault. Vault must be empty before it can be removed.

        :param vault_name: Name of vault to be removed.
        :type vault_name: str

        :returns: Response data. Raises exception on failure.

            .. code-block:: python

                [('x-amzn-requestid', 'Example_rkQ-xzxHfrI-997hphbfdcIbL74IhDf_Example'),
                 ('date', 'Mon, 01 Oct 2012 13:54:06 GMT')]

        :rtype: list
        :raises: :py:exc:`glacier.glacierexception.CommunicationException`
         N/A N/A N/A self _check_vault_name vault_name N/A N/A N/A response N/A N/A N/A self glacierconn delete_vault vault_name N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to remove vault with name %s. vault_name cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A N/A self bookkeeping N/A N/A query N/A select * from `%s` where vault='%s' N/A N/A self bookkeeping_domain_name vault_name N/A result N/A N/A N/A self sdb_domain select query N/A N/A N/A item result N/A N/A N/A N/A N/A self sdb_domain delete_item item N/A N/A N/A N/A self logger debug N/A Deleted orphaned archive from the database: %s. N/A item name N/A N/A N/A N/A N/A boto exception SDBResponseError N/A e N/A N/A N/A ResponseException SimpleDB did not respond correctly to our orphaned listings check. cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A N/A N/A response copy N/A glacier_connect sdb_connect N/A log_class_call Removing vault. Vault removal complete. describevault N/A N/A self vault_name N/A N/A N/A 
        Describes vault inventory and other details.

        :param vault_name: Name of vault.
        :type vault_name: str

        :returns: vault description.

            .. code-block:: python

                {u'CreationDate': u'2012-10-01T13:24:55.791Z',
                 u'LastInventoryDate': None,
                 u'NumberOfArchives': 0,
                 u'SizeInBytes': 0,
                 u'VaultARN': u'arn:aws:glacier:us-east-1:012345678901:vaults/your_vault_name',
                 u'VaultName': u'your_vault_name'}

        :rtype: dict
        :raises: :py:exc:`glacier.glacierexception.CommunicationException`
         N/A N/A N/A self _check_vault_name vault_name N/A N/A N/A response N/A N/A N/A self glacierconn describe_vault vault_name N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to get description of vault with name %s. vault_name cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A N/A N/A response copy N/A glacier_connect N/A log_class_call Requesting vault description. Vault description received. list_jobs N/A N/A self vault_name completed status_code limit N/A None None None N/A N/A 
        Provides a list of current Glacier jobs with status and other
        job details.
        If no jobs active it returns an empty list.

        :param vault_name: Name of vault.
        :type vault_name: str

        :returns: job list

            .. code-block:: python

                [{u'Action': u'InventoryRetrieval',
                  u'ArchiveId': None,
                  u'ArchiveSizeInBytes': None,
                  u'Completed': False,
                  u'CompletionDate': None,
                  u'CreationDate': u'2012-10-01T14:54:51.919Z',
                  u'InventorySizeInBytes': None,
                  u'JobDescription': None,
                  u'JobId': u'Example_rctvAMVd3tgAbCuQkD2vjNQ6aw9ifwACvhjhIeKtNnZqeSIuMYRo3JUKsK_0M-VNYvb0-eEreSUp_Example',
                  u'SHA256TreeHash': None,
                  u'SNSTopic': None,
                  u'StatusCode': u'InProgress',
                  u'StatusMessage': None,
                  u'VaultARN': u'arn:aws:glacier:us-east-1:012345678901:vaults/your_vault_name'},
                  {...}]

        :rtype: list
        :raises: :py:exc:`glacier.glacierexception.ResponseException`
         N/A N/A N/A self _check_vault_name vault_name N/A marker None N/A job_list N/A N/A True N/A N/A N/A N/A response N/A N/A N/A self glacierconn list_jobs vault_name completed completed status_code status_code marker marker N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to recieve the jobs list for vault %s. vault_name cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A job_list N/A N/A N/A response copy N/A JobList N/A marker N/A N/A N/A response copy N/A Marker N/A N/A limit N/A N/A len job_list limit N/A N/A job_list N/A job_list N/A limit N/A N/A N/A marker N/A N/A N/A job_list N/A glacier_connect N/A log_class_call Requesting jobs list. Active jobs list received. describejob N/A N/A self vault_name job_id N/A N/A N/A 
        Gives detailed description of a job.

        :param vault_name: Name of vault.
        :type vault_name: str
        :param job_id: id of job to be described.
        :type job_id: str

        :returns: List of job properties.

            .. code-block:: python

                {u'Action': u'InventoryRetrieval',
                 u'ArchiveId': None,
                 u'ArchiveSizeInBytes': None,
                 u'Completed': False,
                 u'CompletionDate': None,
                 u'CreationDate': u'2012-10-01T14:54:51.919Z',
                 u'InventorySizeInBytes': None,
                 u'JobDescription': None,
                 u'JobId': u'Example_d3tgAbCuQ9vPRqRJkD2vjNQ6wBgga7Xaw9ifwACvhjhIeKtNnZqeSIuMYRo3JUKsK_0M-VNYvb0-_Example',
                 u'SHA256TreeHash': None,
                 u'SNSTopic': None,
                 u'StatusCode': u'InProgress',
                 u'StatusMessage': None,
                 u'VaultARN': u'arn:aws:glacier:us-east-1:012345678901:vaults/your_vault_name'}

        :rtype: dict
        :raises: :py:exc:`glacier.glacierexception.CommunicationException`
         N/A N/A N/A self _check_vault_name vault_name N/A N/A N/A self _check_id job_id JobId N/A N/A N/A response N/A N/A N/A self glacierconn describe_job vault_name job_id N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to get description of job with job id %s. job_id cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A N/A N/A response copy N/A glacier_connect N/A log_class_call Requesting job description. Job description received. abortmultipart N/A N/A self vault_name upload_id N/A N/A N/A 
        Aborts an incomplete multipart upload, causing any uploaded data to be
        removed from Amazon Glacier.

        :param vault_name: Name of the vault.
        :type vault_name: str
        :param upload_id: the UploadId of the multipart upload to be aborted.
        :type upload_id: str

        :returns: server response.

            .. code-block:: python

                [('x-amzn-requestid', 'Example_ZJwjlLbvg8Dg_lnYUnC8bjV6cvlTBTO_Example'),
                 ('date', 'Mon, 01 Oct 2012 16:08:23 GMT')]

        :rtype: list
        :raises: :py:exc:`glacier.glacierexception.CommunicationException`
         N/A N/A N/A self _check_vault_name vault_name N/A N/A N/A self _check_id upload_id UploadId N/A N/A N/A response N/A N/A N/A self glacierconn abort_multipart_upload vault_name upload_id N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to abort multipart upload with id %s. upload_id cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A N/A N/A response copy N/A glacier_connect N/A log_class_call Aborting multipart upload. Multipart upload successfully aborted. listmultiparts N/A N/A self vault_name limit N/A None N/A N/A 
        Provids a list of all currently active multipart uploads.

        :param vault_name: Name of the vault.
        :type vault_name: str

        :return: list of uploads, or None.

            .. code-block:: python

                [{u'ArchiveDescription': u'myfile.tgz',
                  u'CreationDate': u'2012-09-30T15:21:35.890Z',
                  u'MultipartUploadId': u'Example_oiuhncYLvBRZLzYgVw7MO_OO4l6i78va8N83R9xLNqrFaa8Vyz4W_JsaXhLNicCCbi_OdsHD8dHK_Example',
                  u'PartSizeInBytes': 134217728,
                  u'VaultARN': u'arn:aws:glacier:us-east-1:012345678901:vaults/your_vault_name'},
                  {...}]

        :rtype: list
        :raises: :py:exc:`glacier.glacierexception.CommunicationException`
         N/A N/A N/A self _check_vault_name vault_name N/A marker None N/A uploads N/A N/A True N/A N/A N/A N/A response N/A N/A N/A self glacierconn list_multipart_uploads vault_name marker marker N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to get a list of multipart uploads for vault %s. vault_name cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A uploads N/A N/A N/A response copy N/A UploadsList N/A marker N/A N/A N/A response copy N/A Marker N/A N/A limit N/A N/A len uploads limit N/A N/A uploads N/A uploads N/A limit N/A N/A N/A marker N/A N/A N/A uploads N/A glacier_connect N/A log_class_call Listing multipart uploads. Multipart uploads list received successfully. upload N/A N/A self vault_name file_name description region stdin alternative_name part_size uploadid resume N/A N/A N/A 
        Uploads a file to Amazon Glacier.

        :param vault_name: Name of the vault.
        :type vault_name: str
        :param file_name: Name of the file to upload.
        :type file_name: str
        :param description: Description of the upload.
        :type description: str
        :param region: region where to upload to.
        :type region: str
        :param stdin: whether to use stdin to read data from.
        :type stdin: boolan
        :param part_size: the size (in MB) of the blocks to upload.
        :type part_size: int

        :returns: Tupple of (archive_id, sha256hash)
        :rtype: tupple
        :raises: :py:exc:`glacier.glacierexception.InputException`,
                 :py:exc:`glacier.glacierexception.ResponseException`
         N/A N/A N/A N/A N/A self logger getEffectiveLevel 10 N/A N/A N/A N/A N/A N/A logging getLogger boto setLevel N/A logging INFO N/A N/A N/A self _check_vault_name vault_name N/A N/A N/A self _check_region region N/A N/A description N/A N/A description N/A file_name file_name No description. N/A description N/A N/A N/A N/A self _check_vault_description description N/A uploadid N/A N/A N/A N/A self _check_id uploadid UploadId N/A N/A resume stdin N/A N/A N/A InputException You must provide the UploadId to resume upload of streams from stdin.
Use glacier-cmd listmultiparts <vault> to find the UploadId. code CommandError N/A total_size 0 N/A reader None N/A mmapped_file None N/A N/A stdin N/A N/A N/A file_name N/A N/A N/A InputException No file name given for upload. code CommandError N/A N/A N/A f N/A open file_name rb N/A mmapped_file N/A mmap f N/A total_size N/A N/A N/A os path getsize file_name N/A N/A N/A IOError N/A e N/A N/A N/A InputException N/A Could not access file: %s. file_name cause e code FileError N/A N/A N/A N/A N/A select select N/A N/A sys stdin N/A N/A 0.0 N/A 0 N/A N/A reader N/A sys stdin N/A total_size 0 N/A N/A N/A InputException There is nothing to upload. code CommandError N/A uploadid N/A N/A N/A N/A N/A self logger info N/A Attempting resumption of upload of %s to %s. N/A N/A file_name file_name data from stdin vault_name N/A N/A resume N/A N/A N/A N/A N/A self logger info N/A Attempting resumption of upload of %s to %s. N/A file_name vault_name N/A N/A N/A N/A N/A self logger info N/A Starting upload of %s to %s.
Description: %s N/A N/A file_name file_name data from stdin vault_name description N/A part_size N/A N/A self _check_part_size part_size total_size N/A part_size_in_bytes N/A N/A part_size 1024 1024 N/A upload None N/A uploadid N/A N/A uploads N/A N/A self listmultiparts vault_name N/A upload uploads N/A N/A N/A uploadid N/A upload N/A MultipartUploadId N/A N/A N/A N/A N/A self logger debug Found a matching upload id. Continuing upload resumption attempt. N/A N/A N/A N/A self logger debug upload N/A part_size_in_bytes N/A upload N/A PartSizeInBytes N/A N/A N/A N/A InputException Can not resume upload of this data as no existing job with this uploadid could be found. code IdError N/A writer N/A GlacierWriter N/A self glacierconn vault_name description description part_size_in_bytes part_size_in_bytes uploadid uploadid logger N/A self logger N/A upload N/A N/A marker None N/A True N/A N/A N/A N/A response N/A N/A N/A self glacierconn list_parts vault_name uploadid marker marker N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to get a list already uploaded parts for interrupted upload %s. uploadid cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A list_parts_response N/A N/A response copy N/A current_position 0 N/A stop 0 N/A part N/A list_parts_response N/A Parts N/A N/A N/A start stop N/A N/A int p N/A p N/A N/A N/A part N/A RangeInBytes split - N/A stop 1 N/A N/A N/A start current_position N/A N/A stdin N/A N/A N/A InputException Cannot verify non-sequential upload data from stdin. code ResumeError N/A reader N/A N/A N/A N/A reader seek start N/A N/A mmapped_file N/A stop N/A mmapped_file size N/A N/A N/A InputException File does not match uploaded data; please check your uploadid and try again. cause File is smaller than uploaded data. code ResumeError N/A data None N/A data N/A reader N/A N/A reader read N/A stop start N/A mmapped_file N/A start stop N/A data N/A N/A data_hash N/A N/A glaciercorecalls tree_hash N/A N/A glaciercorecalls chunk_hashes data N/A N/A N/A N/A glaciercorecalls bytes_to_hex data_hash N/A part N/A SHA256TreeHash N/A N/A N/A N/A N/A self logger debug N/A Part %s hash matches. N/A part N/A RangeInBytes N/A N/A N/A N/A writer tree_hashes append data_hash N/A N/A N/A InputException Received data does not match uploaded data; please check your uploadid and try again. cause SHA256 hash mismatch. code ResumeError N/A N/A N/A InputException Received data does not match uploaded data; please check your uploadid and try again. cause No or not enough data to match. code ResumeError N/A current_position N/A stop start N/A marker N/A list_parts_response N/A Marker N/A N/A writer uploaded_size stop N/A N/A marker N/A N/A N/A N/A total_size 0 N/A N/A msg N/A Checked %s of %s (%s%%). N/A N/A N/A self _size_fmt N/A writer uploaded_size N/A N/A self _size_fmt total_size N/A N/A self _bold N/A str N/A int N/A N/A 100 N/A writer uploaded_size total_size N/A N/A msg N/A Checked %s. N/A N/A self _size_fmt N/A writer uploaded_size N/A N/A N/A self _progress msg N/A N/A N/A N/A self logger info N/A Already uploaded: %s. Continuing from there. N/A N/A self _size_fmt stop N/A N/A total_size 0 N/A N/A msg N/A Checked %s of %s (%s%%). Check done; resuming upload. N/A N/A N/A self _size_fmt N/A writer uploaded_size N/A N/A self _size_fmt total_size N/A N/A self _bold N/A str N/A int N/A N/A 100 N/A writer uploaded_size total_size N/A N/A msg N/A Checked %s. Check done; resuming upload. N/A N/A self _size_fmt N/A writer uploaded_size N/A N/A N/A self _progress msg N/A start_time current_time previous_time N/A N/A time time N/A start_bytes N/A writer uploaded_size N/A True N/A N/A reader N/A N/A part N/A N/A reader read part_size_in_bytes N/A N/A N/A N/A mmapped_file size N/A N/A writer uploaded_size part_size_in_bytes N/A N/A part N/A mmapped_file N/A N/A writer uploaded_size N/A N/A writer uploaded_size part_size_in_bytes N/A N/A part N/A mmapped_file N/A N/A writer uploaded_size N/A N/A part N/A N/A N/A N/A N/A writer write part N/A current_time N/A N/A time time N/A overall_rate N/A int N/A N/A N/A writer uploaded_size start_bytes N/A current_time start_time N/A N/A total_size 0 N/A N/A current_rate N/A int N/A part_size_in_bytes N/A current_time previous_time N/A N/A overall_rate 0 N/A N/A time_left N/A N/A total_size N/A writer uploaded_size overall_rate N/A eta_seconds N/A current_time time_left N/A N/A N/A N/A N/A datetime fromtimestamp eta_seconds day N/A N/A N/A datetime now day N/A N/A eta_template %a, %d %b, %H:%M:%S N/A N/A eta_template %H:%M:%S N/A eta N/A N/A time strftime eta_template N/A N/A time localtime eta_seconds N/A N/A time_left Unknown N/A eta Unknown N/A msg N/A Wrote %s of %s (%s%%). Rate %s/s, average %s/s, ETA %s. N/A N/A N/A self _size_fmt N/A writer uploaded_size N/A N/A self _size_fmt total_size N/A N/A self _bold N/A str N/A int N/A N/A 100 N/A writer uploaded_size total_size N/A N/A self _size_fmt current_rate 2 N/A N/A self _size_fmt overall_rate 2 eta N/A N/A msg N/A Wrote %s. Rate %s/s. N/A N/A N/A self _size_fmt N/A writer uploaded_size N/A N/A self _size_fmt overall_rate 2 N/A N/A N/A self _progress msg N/A previous_time current_time N/A N/A N/A N/A self logger debug msg N/A N/A N/A writer close N/A N/A stdin N/A N/A N/A N/A f close N/A current_time N/A N/A time time N/A overall_rate N/A int N/A N/A writer uploaded_size N/A current_time start_time N/A msg N/A Wrote %s. Rate %s/s.
 N/A N/A N/A self _size_fmt N/A writer uploaded_size N/A N/A self _size_fmt overall_rate 2 N/A N/A N/A self _progress msg N/A N/A N/A N/A self logger info msg N/A archive_id N/A N/A writer get_archive_id N/A sha256hash N/A N/A writer get_hash N/A location N/A N/A writer get_location N/A N/A self bookkeeping N/A N/A N/A N/A N/A self logger info Writing upload information into the bookkeeping database. N/A file_name N/A alternative_name alternative_name file_name N/A file_name N/A file_name file_name Data from stdin. N/A file_attrs N/A region vault filename archive_id location description date hash size region vault_name file_name archive_id location description N/A %s N/A N/A N/A N/A datetime utcnow replace tzinfo N/A pytz utc sha256hash N/A writer uploaded_size N/A N/A N/A N/A self sdb_domain put_attributes N/A file_attrs N/A filename file_attrs N/A N/A archive_id sha256hash N/A glacier_connect sdb_connect N/A log_class_call Uploading archive. Upload of archive finished. getarchive N/A N/A self vault_name archive_id N/A N/A N/A 
        Requests Amazon Glacier to make archive available for download.

        If retrieval job is not yet initiated:

        - initiate a job,
        - return tuple ("initiated", job, None)

        If retrieval job is already initiated:

        - return tuple ("running", job, None).

        If the file is ready for download:

        - return tuple ("ready", job, jobId).

        :param vault: Vault name from where we want to retrieve the archive.
        :type vault: str
        :param archive: ArchiveID of archive to be retrieved.
        :type archive: str

        :returns: Tuple of (status, job, JobId)

        TODO: Return example

        :rtype: (str, dict, str)
        :raises: :py:exc:`glacier.glacierexception.ResponseException`
         N/A results None N/A N/A N/A self _check_vault_name vault_name N/A N/A N/A self _check_id archive_id ArchiveId N/A job_list N/A N/A self list_jobs vault_name N/A job job_list N/A N/A N/A N/A job N/A ArchiveId archive_id N/A N/A N/A job N/A Completed N/A N/A N/A ready job N/A job N/A JobId N/A N/A running job None N/A job_data N/A ArchiveId Type archive_id archive-retrieval N/A N/A N/A response N/A N/A N/A self glacierconn initiate_job vault_name job_data N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to initiate an archive retrieval job for archive %s in vault %s. N/A archive_id vault_name cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A job N/A N/A response copy N/A N/A initiated job None N/A glacier_connect N/A log_class_call Processing archive retrieval job. Archive retrieval job response received. download N/A N/A self vault_name archive_id part_size out_file_name overwrite N/A None False N/A N/A 
        Download a file from Glacier, and store it in out_file.
        If no out_file is given, the file will be dumped on stdout.
         N/A N/A N/A self _check_vault_name vault_name N/A N/A N/A self _check_id archive_id ArchiveId N/A job_list N/A N/A self list_jobs vault_name N/A job_id None N/A job job_list N/A N/A N/A N/A job N/A ArchiveId archive_id N/A N/A download_job job N/A N/A N/A job N/A Completed N/A N/A N/A CommunicationException Archive retrieval request not completed yet. Please try again later. code NotReady N/A N/A N/A N/A self logger debug Archive retrieval completed; archive is available for download now. N/A N/A N/A N/A InputException Requested archive not available. Please make sure your archive ID is correct, and start a retrieval job using 'getarchive' if necessary. code IdError N/A out_file None N/A out_file_name N/A N/A N/A N/A N/A N/A os path isfile out_file_name N/A overwrite N/A N/A N/A InputException File exists already, aborting. Use the overwrite flag to overwrite existing file. code FileError N/A N/A N/A out_file N/A open out_file_name w N/A N/A N/A IOError N/A e N/A N/A N/A InputException Cannot access the ouput file. cause e code FileError N/A total_size N/A download_job N/A ArchiveSizeInBytes N/A part_size_in_bytes N/A N/A N/A N/A self _check_part_size part_size total_size 1024 1024 N/A start_bytes downloaded_size 0 N/A hash_list N/A N/A start_time current_time previous_time N/A N/A time time N/A out_file N/A N/A N/A N/A N/A self logger debug N/A Starting download of archive to file %s. out_file_name N/A N/A N/A N/A N/A self logger debug Starting download of archive to stdout. N/A N/A downloaded_size total_size N/A N/A from_bytes downloaded_size N/A to_bytes N/A min N/A downloaded_size part_size_in_bytes total_size N/A N/A N/A response N/A N/A N/A self glacierconn get_job_output vault_name N/A download_job N/A JobId byte_range N/A from_bytes N/A to_bytes 1 N/A data N/A N/A response read N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to download archive %s. archive_id cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A N/A N/A hash_list append N/A N/A N/A glaciercorecalls chunk_hashes data N/A 0 N/A downloaded_size to_bytes N/A out_file N/A N/A N/A N/A N/A N/A out_file write N/A N/A response read N/A N/A N/A IOError N/A e N/A N/A N/A InputException Cannot write data to the specified file. cause e code FileError N/A N/A N/A N/A N/A sys stdout write N/A N/A response read N/A N/A N/A N/A sys stdout flush N/A current_time N/A N/A time time N/A overall_rate N/A int N/A N/A downloaded_size start_bytes N/A current_time start_time N/A current_rate N/A int N/A part_size_in_bytes N/A current_time previous_time N/A time_left N/A N/A total_size downloaded_size overall_rate N/A eta_seconds N/A current_time time_left N/A N/A N/A N/A N/A datetime fromtimestamp eta_seconds day N/A N/A N/A datetime now day N/A N/A eta_template %a, %d %b, %H:%M:%S N/A N/A eta_template %H:%M:%S N/A eta N/A N/A time strftime eta_template N/A N/A time localtime eta_seconds N/A msg N/A Read %s of %s (%s%%). Rate %s/s, average %s/s, ETA %s. N/A N/A N/A self _size_fmt downloaded_size N/A N/A self _size_fmt total_size N/A N/A self _bold N/A str N/A int N/A N/A 100 downloaded_size total_size N/A N/A self _size_fmt current_rate 2 N/A N/A self _size_fmt overall_rate 2 eta N/A N/A N/A self _progress msg N/A previous_time current_time N/A N/A N/A N/A self logger debug msg N/A out_file N/A N/A N/A N/A out_file close N/A N/A N/A N/A glaciercorecalls bytes_to_hex N/A N/A glaciercorecalls tree_hash hash_list N/A download_job N/A SHA256TreeHash N/A N/A N/A CommunicationException Downloaded data hash mismatch code DownloadError cause None N/A N/A N/A N/A self logger debug Download of archive finished successfully. N/A current_time N/A N/A time time N/A overall_rate N/A int N/A downloaded_size N/A current_time start_time N/A msg N/A Wrote %s. Rate %s/s.
 N/A N/A N/A self _size_fmt downloaded_size N/A N/A self _size_fmt overall_rate 2 N/A N/A N/A self _progress msg N/A N/A N/A N/A self logger info msg N/A glacier_connect sdb_connect N/A log_class_call Download an archive. Download archive done. search N/A N/A self vault region file_name search_term N/A None None None None N/A N/A 
        Searches for archives using SimpleDB

        :param vault: Vault name where you want to search.
        :type vault: str
        :param region: Region where you want to search.
        :type region: str
        :param file_name: Name of the file
        :type file_name: str
        :param search_term: Additional search term to use
        :type search_term: str

        TODO: Search examples

        :returns: List of archives that match

        TODO: Return example

        :rtype: list
         N/A N/A N/A self bookkeeping N/A N/A N/A InputException You must enable bookkeeping to be able to do searches. cause Bookkeeping not enabled. code BookkeepingError N/A vault N/A N/A N/A N/A self _check_vault_name vault N/A region N/A N/A N/A N/A self _check_region region N/A N/A N/A N/A self logger debug N/A Search terms: vault %s, region %s, file name %s, search term %s N/A vault region file_name search_term N/A search_params N/A N/A region N/A N/A search_params N/A N/A region='%s' N/A region N/A vault N/A N/A search_params N/A N/A vault='%s' N/A vault N/A file_name N/A N/A search_params N/A N/A N/A filename like '% N/A N/A file_name replace ' '' %' N/A search_term N/A N/A search_params N/A N/A N/A description like '% N/A N/A search_term replace ' '' %' N/A search_params N/A N/A search_params N/A N/A  and  join search_params N/A query N/A select * from `%s` where %s N/A N/A self bookkeeping_domain_name search_params N/A N/A query N/A select * from `%s` N/A self bookkeeping_domain_name N/A N/A N/A N/A self logger debug N/A Query: "%s" query N/A result N/A N/A N/A self sdb_domain select query N/A items N/A N/A N/A N/A item result N/A N/A N/A N/A N/A self logger debug N/A Next search result:
%s item N/A N/A N/A item has_key archive_id N/A N/A N/A N/A items append item N/A N/A N/A N/A N/A boto exception SDBResponseError N/A e N/A N/A N/A ResponseException N/A SimpleDB did not like your query with parameters %s. search_params cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A items N/A glacier_connect sdb_connect N/A log_class_call Searching for archive. Search done. rmarchive N/A N/A self vault_name archive_id N/A N/A N/A 
        Remove an archive from an Amazon Glacier vault.

        :param vault: the vault name.
        :type vault: str
        :param archive: the archive ID
        :type archive: str

        :raises: :py:exc:`glacier.glacierexception.CommunicationException`,
                 :py:exc:`glacier.glacierexception.ResponseException`
         N/A N/A N/A self _check_vault_name vault_name N/A N/A N/A self _check_id archive_id ArchiveId N/A N/A N/A N/A N/A N/A self glacierconn delete_archive vault_name archive_id N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to remove archive %s from vault %s. N/A archive_id vault_name cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A N/A self bookkeeping N/A N/A N/A N/A item N/A N/A N/A self sdb_domain get_item archive_id N/A item N/A N/A N/A N/A N/A self sdb_domain delete_item item N/A N/A N/A N/A N/A boto exception SDBResponseError N/A e N/A N/A N/A CommunicationException Cannot delete item from Amazon SimpleDB. code SdbWriteError cause e N/A glacier_connect sdb_connect N/A log_class_call Deleting archive. Archive deleted. inventory N/A N/A self vault_name refresh N/A N/A N/A 
        Retrieves inventory and returns retrieval job, or if it's already retrieved
        returns overview of the inventoy. If force=True it will force start a new
        inventory taking job.

        :param vault_name: Vault name
        :type vault_name: str
        :param refresh: Force new inventory retrieval.
        :type refresh: boolean

        :returns: Tuple of retrieval job and inventory data (as list) if available.

            .. code-block:: python

                ({u'CompletionDate': None,
                  u'VaultARN':
                  u'arn:aws:glacier:us-east-1:012345678901:vaults/your_vault_name',
                  u'SNSTopic': None,
                  u'SHA256TreeHash': None,
                  u'Completed': False,
                  u'InventorySizeInBytes': None,
                  u'JobId': u'Example_d3tgAbCuQ9vPRqRJkD2vjNQ6wBgga7Xaw9ifwACvhjhIeKtNnZqeSIuMYRo3JUKsK_0M-VNYvb0-_Example',
                  u'ArchiveId': None,
                  u'JobDescription': None,
                  u'StatusCode': u'InProgress',
                  u'Action': u'InventoryRetrieval',
                  u'CreationDate': u'2012-10-01T14:54:51.919Z',
                  u'StatusMessage': None,
                  u'ArchiveSizeInBytes': None},
                  None
                )
        :rtype: (list, list)

        :raises: :py:exc:`glacier.glacierexception.CommunicationException`,
                 :py:exc:`glacier.glacierexception.ResponseException`
         N/A N/A N/A self _check_vault_name vault_name N/A inventory None N/A inventory_job None N/A N/A refresh N/A N/A job_list N/A N/A self list_jobs vault_name N/A inventory_done False N/A job job_list N/A N/A N/A N/A job N/A Action InventoryRetrieval N/A N/A N/A job N/A Completed N/A N/A N/A N/A N/A self logger debug N/A Found finished inventory job %s. job N/A d N/A N/A N/A dtparse N/A job N/A CompletionDate replace tzinfo N/A pytz utc N/A N/A job N/A inventory_date d N/A inventory_done True N/A inventory_job job N/A N/A N/A N/A N/A self logger debug N/A Found running inventory job %s. job N/A inventory_job job N/A inventory_done N/A N/A N/A N/A N/A self logger debug Fetching results of finished inventory retrieval. N/A response N/A N/A N/A self glacierconn get_job_output vault_name N/A inventory_job N/A JobId N/A inventory N/A N/A response copy N/A archives N/A N/A N/A N/A self bookkeeping N/A N/A len N/A inventory N/A ArchiveList 0 N/A N/A N/A N/A N/A self logger debug Updating the bookkeeping with the latest inventory. N/A items N/A N/A item N/A inventory N/A ArchiveList N/A N/A N/A items N/A N/A item N/A ArchiveId N/A vault archive_id description date hash size region vault_name N/A item N/A ArchiveId N/A item N/A ArchiveDescription N/A %s N/A N/A N/A dtparse N/A item N/A CreationDate replace tzinfo N/A pytz utc N/A item N/A SHA256TreeHash N/A item N/A Size N/A self region N/A N/A N/A archives append N/A item N/A ArchiveId N/A N/A N/A len items 25 N/A N/A N/A N/A N/A self logger debug Writing batch of 25 inventory items to the bookkeeping db. N/A N/A N/A N/A N/A N/A self sdb_domain batch_put_attributes items N/A N/A N/A N/A N/A boto exception SDBResponseError N/A e N/A N/A N/A CommunicationException Cannot update inventory cache, Amazon SimpleDB is not happy. cause e code SdbWriteError N/A items N/A N/A items N/A N/A N/A N/A N/A self logger debug N/A Writing final batch of %s inventory items to the bookkeeping db. N/A len items N/A N/A N/A N/A N/A N/A self sdb_domain batch_put_attributes items N/A N/A N/A N/A N/A boto exception SDBResponseError N/A e N/A N/A N/A CommunicationException Cannot update inventory cache, Amazon SimpleDB is not happy. cause e code SdbWriteError N/A query N/A select * from `%s` where vault='%s' N/A N/A self bookkeeping_domain_name vault_name N/A result N/A N/A N/A self sdb_domain select query N/A N/A N/A item result N/A N/A N/A N/A N/A item name archives N/A N/A N/A N/A N/A self sdb_domain delete_item item N/A N/A N/A N/A self logger debug N/A Deleted orphaned archive from the database: %s. N/A item name N/A N/A N/A N/A N/A boto exception SDBResponseError N/A e N/A N/A N/A ResponseException SimpleDB did not respond correctly to our inventory check. cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A N/A refresh N/A inventory_job N/A N/A N/A N/A N/A self logger debug No inventory jobs finished or running; starting a new job. N/A job_data N/A Type inventory-retrieval N/A N/A N/A new_job N/A N/A N/A self glacierconn initiate_job vault_name job_data N/A N/A N/A N/A N/A N/A boto glacier exceptions UnexpectedHTTPResponseError N/A e N/A N/A N/A ResponseException N/A Failed to create a new inventory retrieval job for vault %s. vault_name cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A inventory_job N/A N/A self describejob vault_name N/A new_job N/A JobId N/A N/A inventory_job inventory N/A glacier_connect sdb_connect N/A log_class_call Requesting inventory overview. Inventory response received. get_tree_hash N/A N/A self file_name N/A N/A N/A 
        Calculate the tree hash of a file.

        :param file_name: the file name to calculate a hash of.
        :type file_name: str

        :returns: the tree hash of the file.
        :rtype: str
         N/A N/A N/A reader N/A open file_name rb N/A N/A N/A IOError N/A e N/A N/A N/A InputException N/A Could not access the file given: %s. file_name cause e code FileError N/A hashes N/A N/A N/A N/A N/A hashlib sha256 part digest N/A part N/A iter N/A N/A N/A N/A N/A N/A reader read N/A 1024 1024 N/A N/A N/A glaciercorecalls bytes_to_hex N/A N/A glaciercorecalls tree_hash hashes N/A _init_events_for_vault N/A N/A self vault_name topic N/A N/A N/A config N/A SNSTopic Events topic N/A ArchiveRetrievalCompleted InventoryRetrievalCompleted N/A N/A N/A N/A self glacierconn set_vault_notifications vault_name vault_name notification_config config N/A _init_events_for_vaults N/A N/A self vaults topic N/A N/A N/A results N/A N/A vault_name vaults N/A N/A N/A N/A collections N/A result N/A N/A collections OrderedDict N/A N/A N/A AttributeError N/A N/A result N/A dict N/A N/A result N/A Vault Name vault_name N/A N/A result N/A Request Id N/A N/A N/A self _init_events_for_vault vault_name topic N/A RequestId N/A results N/A result N/A results N/A sns_sync N/A N/A self sns_options output N/A N/A N/A options sns_options N/A N/A N/A options N/A topics_present N/A N/A topic N/A N/A N/A N/A N/A N/A self sns_conn create_topic N/A options N/A topic N/A CreateTopicResponse N/A CreateTopicResult N/A TopicArn N/A N/A N/A options get vaults None N/A N/A vaults N/A N/A N/A options N/A vaults split , N/A N/A vaults N/A N/A N/A N/A N/A fvault N/A VaultARN split vaults/ N/A -1 N/A fvault N/A N/A self lsvault N/A N/A N/A self _init_events_for_vaults vaults topic N/A N/A results N/A N/A topic N/A options N/A topics N/A N/A vaults N/A N/A N/A N/A topic get options None N/A N/A N/A N/A N/A N/A topic get options get vaults None N/A N/A vaults N/A N/A N/A N/A N/A N/A topic get options get vaults split , N/A vaults N/A N/A N/A vaults N/A -1 N/A vaults N/A -1 vaults N/A methods N/A N/A N/A N/A topic get options None N/A N/A N/A N/A N/A N/A topic get options get method None N/A N/A methods N/A N/A N/A N/A N/A N/A topic get options get method split ; N/A methods N/A N/A N/A methods N/A -1 N/A methods N/A -1 methods N/A N/A vaults N/A N/A vaults N/A N/A N/A N/A N/A fvault N/A VaultARN split vaults/ N/A -1 N/A fvault N/A N/A self lsvault N/A topic_arn N/A N/A N/A N/A N/A N/A self sns_conn create_topic N/A topic N/A topic N/A CreateTopicResponse N/A CreateTopicResult N/A TopicArn N/A topic_results N/A N/A self _init_events_for_vaults vaults topic_arn N/A methods N/A N/A method methods N/A N/A N/A N/A N/A protocol endpoint N/A N/A method split , N/A N/A N/A ValueError N/A N/A N/A InputException If you specify method, you should use format 'protocol1,endpoint1;protocol2,endpoint2'. cause Wrong method format in configuration file. code SNSConfigurationError N/A results_subscribe N/A N/A self sns_subscribe protocol endpoint topic N/A N/A N/A topic_arn split : N/A -1 sns_options sns_options N/A N/A i vault N/A enumerate topic_results N/A N/A N/A N/A collections N/A result N/A N/A collections OrderedDict N/A N/A N/A AttributeError N/A N/A result N/A dict N/A N/A output print N/A N/A N/A i N/A N/A N/A result N/A Topic N/A topic N/A topic N/A methods N/A N/A N/A result N/A Subscribe Result N/A N/A results_subscribe N/A 0 N/A SubscribeResult N/A N/A N/A result N/A Subscribe Result N/A N/A N/A result N/A Topic N/A N/A result N/A Subscribe Result N/A N/A N/A result N/A Topic N/A topic N/A topic N/A methods N/A N/A N/A result N/A Subscribe Result N/A N/A results_subscribe N/A 0 N/A SubscribeResult N/A N/A N/A result N/A Subscribe Result N/A N/A result N/A Vault Name N/A vault N/A Vault Name N/A N/A result N/A Request Id N/A vault N/A Request Id N/A results N/A result N/A results N/A glacier_connect sns_connect sns_subscribe N/A N/A self protocol endpoint topic sns_options vault_names N/A None N/A N/A all_topics N/A N/A N/A N/A N/A N/A self sns_conn get_all_topics N/A ListTopicsResponse N/A ListTopicsResult N/A Topics N/A topic_arn N/A N/A N/A N/A N/A N/A self sns_conn create_topic topic N/A CreateTopicResponse N/A CreateTopicResult N/A TopicArn N/A vault_names N/A N/A vaults N/A N/A vault_names split , N/A N/A N/A self _init_events_for_vaults vaults topic_arn N/A topic_arns N/A topic_arn N/A N/A len topic_arns N/A N/A N/A N/A results N/A N/A arn topic_arns N/A N/A result N/A N/A N/A N/A self sns_conn subscribe arn protocol endpoint N/A SubscribeResponse N/A results N/A N/A SubscribeResult RequestId N/A N/A result N/A SubscribeResult N/A SubscriptionArn N/A N/A result N/A ResponseMetadata N/A RequestId N/A results N/A N/A N/A N/A N/A boto exception BotoServerError N/A e N/A N/A N/A ResponseException N/A Failed to subscribe to notifications for vault %s. vault_name cause N/A N/A self _decode_error_message N/A e body code N/A e code N/A N/A N/A Exception No vaults matching that name found. N/A glacier_connect sns_connect sns_list_topics N/A N/A self sns_options N/A N/A N/A topics N/A N/A N/A N/A N/A N/A self sns_conn get_all_topics N/A ListTopicsResponse N/A ListTopicsResult N/A Topics N/A results N/A N/A topic topics N/A N/A results N/A N/A Topic Topic ARN N/A N/A N/A N/A topic N/A TopicArn split : N/A -1 N/A topic N/A TopicArn N/A results N/A glacier_connect sns_connect sns_list_subscriptions N/A N/A self protocol endpoint topic sns_options N/A N/A N/A subscriptions N/A N/A N/A N/A N/A N/A self sns_conn get_all_subscriptions N/A ListSubscriptionsResponse N/A ListSubscriptionsResult N/A Subscriptions N/A results N/A N/A sub subscriptions N/A N/A N/A N/A collections N/A result N/A N/A collections OrderedDict N/A N/A N/A AttributeError N/A N/A result N/A dict N/A subtopic N/A N/A N/A N/A sub N/A TopicArn split : N/A -1 N/A subprotocol N/A sub N/A Protocol N/A subendpoint N/A sub N/A Endpoint N/A subarn N/A sub N/A SubscriptionArn N/A N/A topic N/A subtopic topic N/A N/A N/A N/A protocol N/A subprotocol protocol N/A N/A N/A N/A endpoint N/A subendpoint endpoint N/A N/A N/A N/A result N/A Account # N/A sub N/A Owner N/A N/A result N/A Section subtopic N/A N/A result N/A Protocol subprotocol N/A N/A result N/A Endpoint subendpoint N/A N/A result N/A ARN subarn N/A results N/A result N/A results N/A glacier_connect sns_connect sns_unsubscribe N/A N/A self protocol endpoint topic sns_options N/A N/A N/A N/A N/A protocol N/A endpoint N/A topic N/A N/A N/A InputException You must specify at least one parameter that will by which subscriptions will be canceled. cause No parameters given for unsubscribe. code SNSParameterError N/A matching_subs N/A N/A self sns_list_subscriptions protocol endpoint topic sns_options sns_options N/A unsubscribed N/A N/A res matching_subs N/A N/A N/A N/A res N/A ARN PendingConfirmation N/A N/A N/A N/A N/A self sns_conn unsubscribe N/A res N/A ARN N/A unsubscribed N/A res N/A unsubscribed N/A glacier_connect sns_connect __init__ N/A N/A self aws_access_key aws_secret_key region bookkeeping no_bookkeeping bookkeeping_domain_name sdb_access_key sdb_secret_key sdb_region logfile loglevel logtostdout N/A False None None None None None None WARNING True N/A N/A 
        Constructor, sets up important variables and so for GlacierWrapper.

        :param aws_access_key: your AWS access key.
        :type aws_access_key: str
        :param aws_secret_key: your AWS secret key.
        :type aws_secret_key: str
        :param region: name of your default region, see :ref:`regions`.
        :type region: str
        :param bookkeeping: whether to enable bookkeeping, see :reg:`bookkeeping`.
        :type bookkeeping: boolean
        :param bookkeeping_domain_name: your Amazon SimpleDB domain name where the bookkeeping information will be stored.
        :type bookkeeping_domain_name: str
        :param sdb_access_key: your SimpleDB access key.
        :type sdb_access_key: str
        :param sdb_secret_key: your SimpleDB secret key.
        :type sdb_secret_key: str
        :param sdb_region: name of your sdb region, see :ref:`regions`.
        :type sdb_region: str
        :param logfile: complete file name of where to log messages.
        :type logfile: str
        :param loglevel: the desired loglevel, see :py:func:`setuplogging`
        :type loglevel: str
        :param logtostdout: whether to log messages to stdout instead of to file.
        :type logtostdout: boolean
         N/A N/A self aws_access_key aws_access_key N/A N/A self aws_secret_key aws_secret_key N/A N/A self bookkeeping bookkeeping N/A no_bookkeeping N/A N/A N/A self bookkeeping False N/A N/A self bookkeeping_domain_name bookkeeping_domain_name N/A N/A self region region N/A N/A self sdb_access_key N/A sdb_access_key sdb_access_key aws_access_key N/A N/A self sdb_secret_key N/A sdb_secret_key sdb_secret_key aws_secret_key N/A N/A self sdb_region N/A sdb_region sdb_region region N/A N/A N/A self setuplogging logfile loglevel logtostdout N/A N/A self logger N/A N/A logging getLogger N/A N/A self __class__ __name__ N/A N/A N/A self _check_region region N/A N/A N/A N/A self logger debug Creating GlacierWrapper instance with
    aws_access_key=%s,
    aws_secret_key=%s,
    bookkeeping=%s,
    nobookkeeping=%s,
    bookkeeping_domain_name=%s,
    region=%s,
    sdb_access_key=%s,
    sdb_secret_key=%s,
    sdb_region=%s,
    logfile %s,
    loglevel %s,
    logging to stdout %s. aws_access_key aws_secret_key bookkeeping no_bookkeeping bookkeeping_domain_name region sdb_access_key sdb_secret_key sdb_region logfile loglevel logtostdout N/A N/A