Module Expr Str ImportFrom alias 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 identifier Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Num TryExcept body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body TryExcept body Return Call Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body TryExcept body Return Call Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Dict Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num attr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad orelse Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad orelse For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Assign NameStore Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str Assign NameStore Call AttributeLoad Str attr NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body For NameStore AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str NameLoad body Continue If CompareIn NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str Index NameLoad Index Str If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad If BoolOpOr CompareIs NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Raise Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Assign NameStore ListLoad Assign NameStore ListLoad If BoolOpOr CompareIn Str NameLoad CompareIn Str NameLoad CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Dict For NameStore AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str NameLoad body Continue For NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore TupleLoad Str Str Str Str body If CompareNotIn NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad If BoolOpAnd NameLoad UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num For NameStore NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If Call AttributeLoad NameLoad attr body Assign NameStore Str orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad Str attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Dict Assign NameStore Dict Assign NameStore ListLoad If BoolOpAnd CompareIn Str NameLoad CompareIs SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Str For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Continue If Call SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad body Continue If CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr While CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Delete SubscriptDel NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Dict attr Str Dict Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad If Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str body For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Continue Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore NameLoad body Assign NameStore Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareIs Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Str NameLoad NameLoad body Continue If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad NameLoad body Continue Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore IfExp CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign SubscriptStore NameLoad Index NameLoad Dict Str Str NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Dict For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Continue Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Dict Str Call AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Raise Call NameLoad Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Continue Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num NameLoad AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str If CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num attr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Str If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad orelse For NameStore NameLoad body If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore TupleLoad Str Str Str Str Str body If CompareNotIn NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Return NameLoad For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad body Return NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Str If UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Raise Call NameLoad Str decorator_list decorator_list
N/A N/A 
This module provides the point of entry to SPM, the Salt Package Manager

.. versionadded:: 2015.8.0
 __future__ absolute_import print_function N/A os N/A yaml N/A tarfile N/A shutil N/A msgpack N/A datetime N/A hashlib N/A logging N/A pwd N/A grp N/A sys N/A salt.config N/A salt.loader N/A salt.utils N/A salt.utils.http http N/A salt.syspaths syspaths N/A salt.ext.six six salt.ext.six string_types salt.ext.six.moves input salt.ext.six.moves zip salt.ext.six.moves filter N/A log N/A N/A logging getLogger __name__ SPMException N/A Exception N/A N/A 
    Base class for SPMClient exceptions
     N/A SPMInvocationError N/A SPMException N/A N/A 
    Wrong number of arguments or other usage error
     N/A SPMPackageError N/A SPMException N/A N/A 
    Problem with package file or package installation
     N/A SPMDatabaseError N/A SPMException N/A N/A 
    SPM database not found, etc
     N/A SPMOperationCanceled N/A SPMException N/A N/A 
    SPM install or uninstall was canceled
     N/A SPMClient N/A object N/A N/A 
    Provide an SPM Client
     __init__ N/A N/A self ui opts N/A None N/A N/A N/A self ui ui N/A N/A opts N/A N/A opts N/A N/A N/A salt config spm_config N/A N/A N/A os path join N/A syspaths CONFIG_DIR spm N/A N/A self opts opts N/A N/A self db_prov N/A N/A N/A self opts get spm_db_provider sqlite3 N/A N/A self files_prov N/A N/A N/A self opts get spm_files_provider local N/A N/A N/A self _prep_pkgdb N/A N/A N/A self _prep_pkgfiles N/A N/A N/A self _init N/A _prep_pkgdb N/A N/A self N/A N/A N/A N/A self pkgdb N/A N/A N/A salt loader pkgdb N/A self opts N/A _prep_pkgfiles N/A N/A self N/A N/A N/A N/A self pkgfiles N/A N/A N/A salt loader pkgfiles N/A self opts N/A _init N/A N/A self N/A N/A N/A N/A self db_conn N/A N/A self _pkgdb_fun init N/A N/A self files_conn N/A N/A self _pkgfiles_fun init N/A run N/A N/A self args N/A N/A N/A 
        Run the SPM command
         N/A command N/A args N/A 0 N/A N/A N/A N/A command install N/A N/A N/A N/A self _install args N/A N/A N/A command local N/A N/A N/A N/A self _local args N/A N/A N/A command remove N/A N/A N/A N/A self _remove args N/A N/A N/A command build N/A N/A N/A N/A self _build args N/A N/A N/A command update_repo N/A N/A N/A N/A self _download_repo_metadata args N/A N/A N/A command create_repo N/A N/A N/A N/A self _create_repo args N/A N/A N/A command files N/A N/A N/A N/A self _list_files args N/A N/A N/A command info N/A N/A N/A N/A self _info args N/A N/A N/A SPMInvocationError N/A N/A Invalid command '{0}' format command N/A N/A N/A SPMException N/A exc N/A N/A N/A N/A N/A self ui error N/A str exc N/A _pkgdb_fun N/A N/A self func N/A args kwargs N/A N/A N/A N/A N/A N/A getattr N/A getattr N/A self pkgdb N/A self db_prov func args kwargs N/A N/A N/A AttributeError N/A N/A N/A N/A N/A self pkgdb N/A N/A N/A {0}.{1} format N/A self db_prov func args kwargs N/A _pkgfiles_fun N/A N/A self func N/A args kwargs N/A N/A N/A N/A N/A N/A getattr N/A getattr N/A self pkgfiles N/A self files_prov func args kwargs N/A N/A N/A AttributeError N/A N/A N/A N/A N/A self pkgfiles N/A N/A N/A {0}.{1} format N/A self files_prov func args kwargs N/A _local N/A N/A self args N/A N/A N/A 
        Process local commands
         N/A N/A N/A args pop 0 N/A command N/A args N/A 0 N/A N/A command install N/A N/A N/A N/A self _local_install args N/A N/A N/A command files N/A N/A N/A N/A self _local_list_files args N/A N/A N/A command info N/A N/A N/A N/A self _local_info args N/A N/A N/A SPMInvocationError N/A N/A Invalid local command '{0}' format command N/A _install N/A N/A self args N/A N/A N/A 
        Install a package from a repo
         N/A N/A N/A len args 2 N/A N/A N/A SPMInvocationError A package must be specified N/A packages N/A args N/A 1 N/A file_map N/A N/A optional N/A N/A recommended N/A N/A to_install N/A N/A pkg packages N/A N/A N/A N/A pkg endswith .spm N/A N/A N/A N/A self _pkgfiles_fun path_exists pkg N/A N/A comps N/A N/A pkg split - N/A comps N/A N/A N/A N/A - join N/A comps N/A -2 split / N/A pkg_name N/A comps N/A -1 N/A formula_tar N/A N/A tarfile open pkg r:bz2 N/A formula_ref N/A N/A formula_tar extractfile N/A N/A {0}/FORMULA format pkg_name N/A formula_def N/A N/A yaml safe_load formula_ref N/A N/A file_map N/A pkg_name pkg N/A N/A to_ op_ re_ N/A N/A self _check_all_deps pkg_name pkg_name pkg_file pkg formula_def formula_def N/A N/A N/A to_install extend to_ N/A N/A N/A optional extend op_ N/A N/A N/A recommended extend re_ N/A N/A N/A SPMInvocationError N/A N/A Package file {0} not found format pkg N/A N/A N/A to_ op_ re_ N/A N/A self _check_all_deps pkg_name pkg N/A N/A N/A to_install extend to_ N/A N/A N/A optional extend op_ N/A N/A N/A recommended extend re_ N/A optional N/A set N/A filter len optional N/A N/A N/A N/A self ui status N/A N/A The following dependencies are optional:
	{0}
 format N/A N/A join optional N/A recommended N/A set N/A filter len recommended N/A N/A N/A N/A self ui status N/A N/A The following dependencies are recommended:
	{0}
 format N/A N/A join recommended N/A to_install N/A set N/A filter len to_install N/A msg N/A N/A Installing packages:
	{0}
 format N/A N/A join to_install N/A N/A N/A N/A self opts N/A assume_yes N/A N/A N/A N/A N/A self ui confirm msg N/A repo_metadata N/A N/A self _get_repo_metadata N/A package to_install N/A N/A N/A package file_map N/A N/A N/A N/A self _install_indv_pkg package N/A file_map N/A package N/A N/A repo repo_metadata N/A N/A repo_info N/A repo_metadata N/A repo N/A N/A package N/A N/A repo_metadata N/A repo N/A packages N/A N/A cache_path N/A N/A {0}/{1} format N/A N/A self opts N/A spm_cache_dir repo N/A dl_path N/A N/A {0}/{1} format N/A N/A repo_info N/A info N/A url N/A N/A N/A repo_info N/A packages N/A package N/A filename N/A out_file N/A N/A {0}/{1} format cache_path N/A N/A N/A repo_info N/A packages N/A package N/A filename N/A N/A N/A N/A N/A os path exists cache_path N/A N/A N/A N/A os makedirs cache_path N/A N/A N/A dl_path startswith file:// N/A N/A dl_path N/A N/A dl_path replace file:// N/A N/A N/A shutil copyfile dl_path out_file N/A N/A N/A N/A http query dl_path text_out out_file N/A N/A N/A self _install_indv_pkg package out_file N/A N/A _local_install N/A N/A self args pkg_name N/A None N/A N/A 
        Install a package from a file
         N/A N/A N/A len args 2 N/A N/A N/A SPMInvocationError A package file must be specified N/A N/A N/A self _install args N/A _check_all_deps N/A N/A self pkg_name pkg_file formula_def N/A None None None N/A N/A 
        Starting with one package, check all packages for dependencies
         N/A N/A pkg_file N/A N/A N/A N/A os path exists pkg_file N/A N/A N/A SPMInvocationError N/A N/A Package file {0} not found format pkg_file N/A N/A self repo_metadata N/A N/A self _get_repo_metadata N/A N/A formula_def N/A N/A repo N/A self repo_metadata N/A N/A N/A N/A isinstance N/A N/A N/A self repo_metadata N/A repo N/A packages dict N/A N/A N/A N/A pkg_name N/A N/A N/A self repo_metadata N/A repo N/A packages N/A N/A formula_def N/A N/A N/A N/A N/A self repo_metadata N/A repo N/A packages N/A pkg_name N/A info N/A N/A formula_def N/A N/A N/A SPMInvocationError N/A N/A Unable to read formula for {0} format pkg_name N/A pkg_info N/A N/A self _pkgdb_fun info pkg_name N/A self db_conn N/A pkgs_to_install N/A N/A N/A N/A pkg_info None N/A N/A self opts N/A force N/A N/A N/A N/A pkgs_to_install append pkg_name N/A N/A N/A N/A pkg_info None N/A N/A N/A self opts N/A force N/A N/A N/A SPMPackageError N/A N/A Package {0} already installed, not installing again format N/A formula_def N/A name N/A optional_install N/A N/A recommended_install N/A N/A N/A N/A dependencies formula_def N/A optional formula_def N/A recommended formula_def N/A N/A N/A self avail_pkgs N/A N/A repo N/A self repo_metadata N/A N/A N/A N/A isinstance N/A N/A N/A self repo_metadata N/A repo N/A packages dict N/A N/A N/A pkg N/A N/A N/A self repo_metadata N/A repo N/A packages N/A N/A N/A N/A self avail_pkgs N/A pkg repo N/A N/A needs unavail optional recommended N/A N/A self _resolve_deps formula_def N/A N/A N/A len unavail 0 N/A N/A N/A SPMPackageError N/A N/A Cannot install {0}, the following dependencies are needed:

{1} format N/A formula_def N/A name N/A N/A join unavail N/A optional N/A N/A N/A N/A optional_install extend optional N/A dep_pkg optional N/A N/A pkg_info N/A N/A self _pkgdb_fun info N/A formula_def N/A name N/A msg dep_pkg N/A N/A isinstance pkg_info dict N/A N/A msg N/A N/A {0} [Installed] format dep_pkg N/A N/A N/A optional_install append msg N/A recommended N/A N/A N/A N/A recommended_install extend recommended N/A dep_pkg recommended N/A N/A pkg_info N/A N/A self _pkgdb_fun info N/A formula_def N/A name N/A msg dep_pkg N/A N/A isinstance pkg_info dict N/A N/A msg N/A N/A {0} [Installed] format dep_pkg N/A N/A N/A recommended_install append msg N/A needs N/A N/A N/A N/A pkgs_to_install extend needs N/A dep_pkg needs N/A N/A pkg_info N/A N/A self _pkgdb_fun info N/A formula_def N/A name N/A msg dep_pkg N/A N/A isinstance pkg_info dict N/A N/A msg N/A N/A {0} [Installed] format dep_pkg N/A N/A pkgs_to_install optional_install recommended_install N/A _install_indv_pkg N/A N/A self pkg_name pkg_file N/A N/A N/A 
        Install one individual package
         N/A N/A N/A N/A self ui status N/A N/A ... installing {0} format pkg_name N/A formula_tar N/A N/A tarfile open pkg_file r:bz2 N/A formula_ref N/A N/A formula_tar extractfile N/A N/A {0}/FORMULA format pkg_name N/A formula_def N/A N/A yaml safe_load formula_ref N/A field N/A version release summary description N/A N/A N/A field formula_def N/A N/A N/A SPMPackageError N/A N/A Invalid package: the {0} was not found format field N/A pkg_files N/A N/A formula_tar getmembers N/A existing_files N/A N/A self _pkgfiles_fun check_existing pkg_name pkg_files formula_def N/A N/A existing_files N/A N/A N/A self opts N/A force N/A N/A N/A SPMPackageError N/A N/A Not installing {0} due to existing files:

{1} format pkg_name N/A N/A join existing_files N/A N/A N/A self _pkgdb_fun register_pkg pkg_name formula_def N/A self db_conn N/A uid N/A N/A N/A self opts get spm_uid N/A N/A os getuid N/A gid N/A N/A N/A self opts get spm_gid N/A N/A os getgid N/A uname N/A N/A N/A pwd getpwuid uid N/A 0 N/A gname N/A N/A N/A grp getgrgid gid N/A 0 N/A member pkg_files N/A N/A N/A member uid uid N/A N/A member gid gid N/A N/A member uname uname N/A N/A member gname gname N/A out_path N/A N/A self _pkgfiles_fun install_file pkg_name formula_tar member formula_def N/A self files_conn N/A N/A out_path False N/A N/A N/A N/A member isdir N/A N/A digest N/A N/A N/A N/A self _verbose N/A N/A Installing file {0} to {1} format N/A member name out_path N/A log trace N/A file_hash N/A N/A hashlib sha1 N/A digest N/A N/A self _pkgfiles_fun hash_file N/A N/A N/A os path join out_path N/A member name file_hash N/A self files_conn N/A N/A N/A self _pkgdb_fun register_file pkg_name member out_path digest N/A self db_conn N/A N/A N/A formula_tar close N/A _resolve_deps N/A N/A self formula_def N/A N/A N/A 
        Return a list of packages which need to be installed, to resolve all
        dependencies
         N/A pkg_info N/A N/A N/A self pkgdb N/A N/A N/A {0}.info format N/A self db_prov N/A formula_def N/A name N/A N/A N/A isinstance pkg_info dict N/A N/A pkg_info N/A N/A can_has N/A N/A cant_has N/A N/A N/A N/A dependencies formula_def N/A N/A formula_def N/A dependencies None N/A N/A N/A formula_def N/A dependencies N/A dep N/A N/A N/A N/A formula_def get dependencies split , N/A N/A dep N/A N/A dep strip N/A N/A dep N/A N/A N/A N/A N/A N/A self pkgdb N/A N/A N/A {0}.info format N/A self db_prov dep N/A N/A N/A N/A dep N/A self avail_pkgs N/A N/A N/A can_has N/A dep N/A N/A self avail_pkgs N/A dep N/A N/A N/A N/A cant_has append dep N/A optional N/A N/A N/A N/A formula_def get optional split , N/A recommended N/A N/A N/A N/A formula_def get recommended split , N/A inspected N/A N/A to_inspect N/A N/A can_has copy N/A N/A N/A len to_inspect 0 N/A N/A dep N/A next N/A N/A six iterkeys to_inspect N/A N/A to_inspect N/A dep N/A N/A dep inspected N/A N/A N/A N/A N/A inspected append dep N/A repo_contents N/A N/A N/A self repo_metadata get N/A can_has N/A dep N/A N/A repo_packages N/A N/A repo_contents get packages N/A N/A dep_formula N/A N/A N/A N/A repo_packages get dep N/A get info N/A N/A N/A also_can also_cant opt_dep rec_dep N/A N/A self _resolve_deps dep_formula N/A N/A N/A can_has update also_can N/A cant_has N/A sorted N/A set N/A cant_has also_cant N/A optional N/A sorted N/A set N/A optional opt_dep N/A recommended N/A sorted N/A set N/A recommended rec_dep N/A N/A can_has cant_has optional recommended N/A _traverse_repos N/A N/A self callback repo_name N/A None N/A N/A 
        Traverse through all repo files and apply the functionality provided in
        the callback to them
         N/A repo_files N/A N/A N/A N/A N/A os path exists N/A N/A self opts N/A spm_repos_config N/A N/A N/A N/A repo_files append N/A N/A self opts N/A spm_repos_config N/A N/A dirpath dirnames filenames N/A N/A os walk N/A N/A {0}.d format N/A N/A self opts N/A spm_repos_config N/A N/A repo_file filenames N/A N/A N/A N/A N/A repo_file endswith .repo N/A N/A N/A N/A N/A repo_files append repo_file N/A N/A N/A N/A N/A os path exists N/A N/A self opts N/A spm_cache_dir N/A N/A N/A N/A os makedirs N/A N/A self opts N/A spm_cache_dir N/A repo_file repo_files N/A N/A repo_path N/A N/A {0}.d/{1} format N/A N/A self opts N/A spm_repos_config repo_file N/A N/A N/A N/A salt utils fopen repo_path rph N/A N/A repo_data N/A N/A yaml safe_load rph N/A repo repo_data N/A N/A N/A N/A N/A N/A repo_data N/A repo get enabled True False N/A N/A N/A N/A N/A repo_name None N/A repo repo_name N/A N/A N/A N/A callback repo N/A repo_data N/A repo N/A _download_repo_metadata N/A N/A self args N/A N/A N/A 
        Connect to all repos and download metadata
         _update_metadata N/A N/A repo repo_info N/A N/A N/A dl_path N/A N/A {0}/SPM-METADATA format N/A repo_info N/A url N/A N/A N/A dl_path startswith file:// N/A N/A dl_path N/A N/A dl_path replace file:// N/A N/A N/A N/A salt utils fopen dl_path r rpm N/A N/A metadata N/A N/A yaml safe_load rpm N/A N/A response N/A N/A http query dl_path text True N/A metadata N/A N/A response get text N/A N/A cache_path N/A N/A {0}/{1}.p format N/A N/A self opts N/A spm_cache_dir repo N/A N/A N/A N/A salt utils fopen cache_path w cph N/A N/A N/A N/A msgpack dump metadata cph N/A N/A repo_name N/A N/A N/A len args 1 N/A args N/A 1 None N/A N/A N/A self _traverse_repos _update_metadata repo_name N/A _get_repo_metadata N/A N/A self N/A N/A N/A 
        Return cached repo metadata
         N/A metadata N/A N/A N/A N/A N/A N/A os path exists N/A N/A self opts N/A spm_cache_dir N/A N/A N/A N/A os makedirs N/A N/A self opts N/A spm_cache_dir _read_metadata N/A N/A repo repo_info N/A N/A N/A cache_path N/A N/A {0}/{1}.p format N/A N/A self opts N/A spm_cache_dir repo N/A N/A N/A N/A N/A os path exists cache_path N/A N/A N/A SPMPackageError N/A N/A SPM cache {0} not found format cache_path N/A N/A N/A N/A salt utils fopen cache_path r cph N/A N/A N/A metadata N/A repo N/A info packages repo_info N/A N/A msgpack load cph N/A N/A N/A N/A self _traverse_repos _read_metadata N/A metadata N/A _create_repo N/A N/A self args N/A N/A N/A 
        Scan a directory and create an SPM-METADATA file which describes
        all of the SPM files in that directory.
         N/A N/A N/A len args 2 N/A N/A N/A SPMInvocationError A path to a directory must be specified N/A N/A N/A args N/A 1 . N/A N/A repo_path N/A N/A os environ N/A PWD N/A N/A repo_path N/A args N/A 1 N/A repo_metadata N/A N/A N/A dirpath dirnames filenames N/A N/A os walk repo_path N/A N/A spm_file filenames N/A N/A N/A N/A N/A spm_file endswith .spm N/A N/A N/A spm_path N/A N/A {0}/{1} format repo_path spm_file N/A N/A N/A N/A tarfile is_tarfile spm_path N/A N/A N/A comps N/A N/A spm_file split - N/A spm_name N/A N/A - join N/A comps N/A -2 N/A spm_fh N/A N/A tarfile open spm_path r:bz2 N/A formula_handle N/A N/A spm_fh extractfile N/A N/A {0}/FORMULA format spm_name N/A formula_conf N/A N/A yaml safe_load N/A N/A formula_handle read N/A N/A repo_metadata N/A spm_name N/A info N/A N/A formula_conf copy N/A N/A N/A repo_metadata N/A spm_name N/A filename spm_file N/A metadata_filename N/A N/A {0}/SPM-METADATA format repo_path N/A N/A N/A N/A salt utils fopen metadata_filename w mfh N/A N/A N/A N/A yaml dump repo_metadata mfh indent 4 canonical False default_flow_style False N/A N/A N/A log debug N/A N/A Wrote {0} format metadata_filename N/A _remove N/A N/A self args N/A N/A N/A 
        Remove a package
         N/A N/A N/A len args 2 N/A N/A N/A SPMInvocationError A package must be specified N/A packages N/A args N/A 1 N/A msg N/A N/A Removing packages:
	{0} format N/A N/A join packages N/A N/A N/A N/A self opts N/A assume_yes N/A N/A N/A N/A N/A self ui confirm msg N/A package packages N/A N/A N/A N/A N/A self ui status N/A N/A ... removing {0} format package N/A N/A N/A N/A self _pkgdb_fun db_exists N/A N/A self opts N/A spm_db N/A N/A N/A SPMDatabaseError N/A N/A No database at {0}, cannot remove {1} format N/A N/A self opts N/A spm_db package N/A pkg_info N/A N/A self _pkgdb_fun info package N/A self db_conn N/A N/A pkg_info None N/A N/A N/A SPMInvocationError N/A N/A Package {0} not installed format package N/A files N/A N/A self _pkgdb_fun list_files package N/A self db_conn N/A dirs N/A N/A filerow files N/A N/A N/A N/A self _pkgfiles_fun path_isdir N/A filerow N/A 0 N/A N/A N/A N/A dirs append N/A filerow N/A 0 N/A N/A file_hash N/A N/A hashlib sha1 N/A digest N/A N/A self _pkgfiles_fun hash_file N/A filerow N/A 0 file_hash N/A self files_conn N/A N/A N/A filerow N/A 1 digest N/A N/A N/A N/A self _verbose N/A N/A Removing file {0} format N/A filerow N/A 0 N/A log trace N/A N/A N/A self _pkgfiles_fun remove_file N/A filerow N/A 0 N/A self files_conn N/A N/A N/A N/A self _verbose N/A N/A Not removing file {0} format N/A filerow N/A 0 N/A log trace N/A N/A N/A self _pkgdb_fun unregister_file N/A filerow N/A 0 package N/A self db_conn N/A dir_ N/A sorted dirs reverse True N/A N/A N/A N/A self _pkgdb_fun unregister_file dir_ package N/A self db_conn N/A N/A N/A N/A N/A self _verbose N/A N/A Removing directory {0} format dir_ N/A log trace N/A N/A N/A os rmdir dir_ N/A N/A N/A OSError N/A N/A N/A N/A self _verbose N/A N/A Cannot remove directory {0}, probably not empty format dir_ N/A log trace N/A N/A N/A self _pkgdb_fun unregister_pkg package N/A self db_conn N/A _verbose N/A N/A self msg level N/A N/A log debug N/A N/A 
        Display verbose information
         N/A N/A N/A N/A N/A self opts get verbose False True N/A N/A N/A N/A N/A self ui status msg N/A N/A level msg N/A _local_info N/A N/A self args N/A N/A N/A 
        List info for a package file
         N/A N/A N/A len args 2 N/A N/A N/A SPMInvocationError A package filename must be specified N/A pkg_file N/A args N/A 1 N/A N/A N/A N/A N/A os path exists pkg_file N/A N/A N/A SPMInvocationError N/A N/A Package file {0} not found format pkg_file N/A comps N/A N/A pkg_file split - N/A comps N/A N/A N/A N/A - join N/A comps N/A -2 split / N/A name N/A comps N/A -1 N/A formula_tar N/A N/A tarfile open pkg_file r:bz2 N/A formula_ref N/A N/A formula_tar extractfile N/A N/A {0}/FORMULA format name N/A formula_def N/A N/A yaml safe_load formula_ref N/A N/A N/A N/A self ui status N/A N/A self _get_info formula_def N/A _info N/A N/A self args N/A N/A N/A 
        List info for a package
         N/A N/A N/A len args 2 N/A N/A N/A SPMInvocationError A package must be specified N/A package N/A args N/A 1 N/A pkg_info N/A N/A self _pkgdb_fun info package N/A self db_conn N/A N/A pkg_info None N/A N/A N/A SPMPackageError N/A N/A package {0} not installed format package N/A N/A N/A N/A self ui status N/A N/A self _get_info pkg_info N/A _get_info N/A N/A self formula_def N/A N/A N/A 
        Get package info
         N/A fields N/A name os os_family release version dependencies os_dependencies os_family_dependencies summary description N/A item fields N/A N/A N/A item formula_def N/A N/A N/A formula_def N/A item None N/A N/A installed formula_def N/A N/A N/A formula_def N/A installed Not installed N/A N/A N/A Name: {name}
Version: {version}
Release: {release}
Install Date: {installed}
Supported OSes: {os}
Supported OS families: {os_family}
Dependencies: {dependencies}
OS Dependencies: {os_dependencies}
OS Family Dependencies: {os_family_dependencies}
Summary: {summary}
Description:
{description} format formula_def N/A _local_list_files N/A N/A self args N/A N/A N/A 
        List files for a package file
         N/A N/A N/A len args 2 N/A N/A N/A SPMInvocationError A package filename must be specified N/A pkg_file N/A args N/A 1 N/A N/A N/A N/A N/A os path exists pkg_file N/A N/A N/A SPMPackageError N/A N/A Package file {0} not found format pkg_file N/A formula_tar N/A N/A tarfile open pkg_file r:bz2 N/A pkg_files N/A N/A formula_tar getmembers N/A member pkg_files N/A N/A N/A N/A N/A self ui status N/A member name N/A _list_files N/A N/A self args N/A N/A N/A 
        List files for an installed package
         N/A N/A N/A len args 2 N/A N/A N/A SPMInvocationError A package name must be specified N/A package N/A args N/A 1 N/A files N/A N/A self _pkgdb_fun list_files package N/A self db_conn N/A N/A files None N/A N/A N/A SPMPackageError N/A N/A package {0} not installed format package N/A N/A file_ files N/A N/A N/A N/A self opts N/A verbose N/A N/A status_msg N/A N/A , join file_ N/A N/A status_msg N/A file_ N/A 0 N/A N/A N/A N/A self ui status status_msg N/A _build N/A N/A self args N/A N/A N/A 
        Build a package
         N/A N/A N/A len args 2 N/A N/A N/A SPMInvocationError A path to a formula must be specified N/A N/A self abspath N/A N/A N/A args N/A 1 rstrip / N/A comps N/A N/A N/A self abspath split / N/A N/A self relpath N/A comps N/A -1 N/A formula_path N/A N/A {0}/FORMULA format N/A self abspath N/A N/A N/A N/A N/A os path exists formula_path N/A N/A N/A SPMPackageError N/A N/A Formula file {0} not found format formula_path N/A N/A N/A N/A salt utils fopen formula_path fp_ N/A N/A formula_conf N/A N/A yaml safe_load fp_ N/A field N/A name version release summary description N/A N/A N/A field formula_conf N/A N/A N/A SPMPackageError N/A N/A Invalid package: a {0} must be defined format field N/A out_path N/A N/A {0}/{1}-{2}-{3}.spm format N/A N/A self opts N/A spm_build_dir N/A formula_conf N/A name N/A formula_conf N/A version N/A formula_conf N/A release N/A N/A N/A N/A N/A os path exists N/A N/A self opts N/A spm_build_dir N/A N/A N/A N/A os mkdir N/A N/A self opts N/A spm_build_dir N/A N/A self formula_conf formula_conf N/A formula_tar N/A N/A tarfile open out_path w:bz2 N/A N/A N/A N/A N/A formula_tar add formula_path N/A formula_conf N/A name filter N/A self _exclude N/A N/A N/A formula_tar add N/A self abspath N/A formula_conf N/A name filter N/A self _exclude N/A N/A N/A TypeError N/A N/A N/A N/A formula_tar add formula_path N/A formula_conf N/A name exclude N/A self _exclude N/A N/A N/A formula_tar add N/A self abspath N/A formula_conf N/A name exclude N/A self _exclude N/A N/A N/A formula_tar close N/A N/A N/A N/A self ui status N/A N/A Built package {0} format out_path N/A _exclude N/A N/A self member N/A N/A N/A 
        Exclude based on opts
         N/A N/A isinstance member string_types N/A N/A None N/A item N/A N/A self opts N/A spm_build_exclude N/A N/A N/A N/A N/A member name startswith N/A N/A {0}/{1} format N/A N/A self formula_conf N/A name item N/A N/A None N/A N/A N/A N/A N/A member name startswith N/A N/A {0}/{1} format N/A self abspath item N/A N/A None N/A member N/A N/A SPMUserInterface N/A object N/A N/A 
    Handle user interaction with an SPMClient object
     status N/A N/A self msg N/A N/A N/A 
        Report an SPMClient status message
         N/A N/A NotImplementedError N/A error N/A N/A self msg N/A N/A N/A 
        Report an SPM error message
         N/A N/A NotImplementedError N/A confirm N/A N/A self action N/A N/A N/A 
        Get confirmation from the user before performing an SPMClient action.
        Return if the action is confirmed, or raise SPMOperationCanceled(<msg>)
        if canceled.
         N/A N/A NotImplementedError N/A N/A SPMCmdlineInterface N/A SPMUserInterface N/A N/A 
    Command-line interface to SPMClient
     status N/A N/A self msg N/A N/A N/A N/A print msg N/A error N/A N/A self msg N/A N/A N/A N/A print msg file N/A sys stderr N/A confirm N/A N/A self action N/A N/A N/A N/A print action N/A res N/A input Proceed? [N/y]  N/A N/A N/A N/A N/A N/A res lower startswith y N/A N/A N/A SPMOperationCanceled canceled N/A N/A