Module Expr Str Assign NameStore Str 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 alias ImportFrom alias ImportFrom alias alias ImportFrom alias Expr Call AttributeLoad NameLoad attr ImportFrom alias Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ClassDef bases NameLoad body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Pass decorator_list ClassDef bases body Expr Str Assign NameStore Dict Assign NameStore Dict Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Print BinOpMod Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Num Num attr If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num attr Str Index Num attr Return BinOpAdd Str Call NameLoad NameLoad orelse Return Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Dict For NameStore NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Return Dict Str Str Str NameLoad BinOpAdd BinOpAdd NameLoad Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str NameLoad orelse Return BinOpAdd Call NameLoad NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore BinOpMod Str NameLoad FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Dict Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad For NameStore NameLoad body For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr body If Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Return Dict Str Str Str NameLoad BinOpAdd BinOpAdd NameLoad Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Str NameLoad orelse Return BinOpAdd Call NameLoad NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore BinOpMod Str NameLoad FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Dict Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad For NameStore NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args NameParam NameParam defaults Dict Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad While NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num If CompareEq NameLoad Str body Break orelse Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad Str attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad Str attr Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIn NameLoad NameLoad UnaryOpNot AttributeLoad NameLoad attr body If CompareEq NameLoad SubscriptLoad NameLoad Index NameLoad body Print BinOpMod Str NameLoad Assign NameStore NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore Num Print BinOpMod Str NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareIn Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Continue Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Dict Dict Assign NameStore TupleLoad Call AttributeLoad Str attr ListLoad Str Call AttributeLoad NameLoad attr Str Str BinOpMod Str NameLoad BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Assign NameStore Str For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad BinOpSub Call NameLoad NameLoad Num body Break If NameLoad body Assign NameStore NameLoad orelse AugAssignAdd NameStore Str AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body If CompareIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index NameLoad Dict Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Print Str Call NameLoad NameLoad Str Assign NameStore ListLoad Assign NameStore Call NameLoad ListComp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Num While CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad If CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListComp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num If Call NameLoad NameLoad body Print AttributeLoad NameLoad attr Str Print AttributeLoad NameLoad attr Str Print AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq Call NameLoad NameLoad Num body Continue Print AttributeLoad NameLoad attr Str NameLoad Str Call AttributeLoad Str attr NameLoad Print AttributeLoad NameLoad attr Str Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad NameLoad AugAssignAdd NameStore Num If BoolOpAnd CompareGt NameLoad Num UnaryOpNot AttributeLoad NameLoad attr body Print Str NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Num If BoolOpAnd CompareGt NameLoad Num AttributeLoad NameLoad attr body Assign NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad If NameLoad body Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr Str body If NameLoad body AugAssignAdd NameStore Str Assign NameStore NameLoad AugAssignAdd NameStore BinOpAdd Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs Call NameLoad NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str SubscriptLoad NameLoad Index Str orelse Assign NameStore Str orelse Assign NameStore BinOpMod Str NameLoad Return NameLoad orelse If CompareIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad orelse If CompareIs Call NameLoad NameLoad NameLoad body Return IfExp NameLoad Str Str orelse Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareGt Call AttributeLoad NameLoad attr NameLoad Num body Return NameLoad Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad BoolOpOr NameLoad Dict attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad BoolOpOr NameLoad Dict attr body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad Call NameLoad NameLoad attr Str Str attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad If NameLoad body Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr Str body If NameLoad body AugAssignAdd NameStore Str Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad BoolOpOr NameLoad Dict attr body If Call NameLoad NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Str orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad Call NameLoad NameLoad attr Str Str attr Str Str If NameLoad body AugAssignAdd NameStore Str Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad BoolOpOr NameLoad Dict attr body If Call NameLoad NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Str orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad Call NameLoad NameLoad attr Str Str attr Str Str If NameLoad body AugAssignAdd NameStore Str Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad BoolOpOr NameLoad Dict attr body If NameLoad body AugAssignAdd NameStore Str Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Print NameLoad Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Call NameLoad AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Num Index Num Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str attr Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Assert Call NameLoad NameLoad Str BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Continue Assign TupleStore NameStore NameStore NameStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Assign NameStore Str For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad BinOpSub Call NameLoad NameLoad Num body Break If NameLoad body Assign NameStore NameLoad orelse AugAssignAdd NameStore Str AugAssignAdd NameStore NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIn Str NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Str If NameLoad body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr orelse Assign NameStore Str Assign NameStore ListComp TupleLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword IfExp CompareEq SubscriptLoad NameLoad Index Num Str BinOpMod Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num keyword SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad Assign NameStore BoolOpOr Call AttributeLoad Str attr NameLoad Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad keyword Str keyword NameLoad orelse Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Continue If CompareIs NameLoad NameLoad body Continue Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad orelse For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Continue If CompareIs NameLoad NameLoad body Continue Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Return Str decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str Str ListLoad Str Str Str Assign NameStore Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore GeneratorExp Call NameLoad NameLoad Str comprehension NameStore NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Print Str Assign NameStore Call NameLoad Str Str Assign NameStore Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore GeneratorExp Call NameLoad NameLoad Str comprehension NameStore NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Print Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad BoolOpOr NameLoad Dict attr body If Call NameLoad NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str SubscriptLoad NameLoad Index Str orelse Assign NameStore Str orelse Assign NameStore BinOpMod Str NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Str orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Str orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num If Call AttributeLoad NameLoad attr Str body Continue If CompareNotIn NameLoad AttributeLoad NameLoad attr body Continue Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad For NameStore NameLoad body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpMod Str NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpMod Str Call NameLoad NameLoad AugAssignAdd NameStore BinOpMod Str Call NameLoad NameLoad If CompareIs NameLoad NameLoad body AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass Print BinOpAdd BinOpAdd Str NameLoad Str If AttributeLoad AttributeLoad NameLoad attr attr body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore NameLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad NameLoad orelse Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Print Str Print Str Print Str If NameLoad body Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list
N/A N/A Functions for generating Python service interfaces from service definitions N/A __author__ Adam R. Smith, Thomas Lennan, Stephen Henrie, Dave Foster, Seman Said N/A datetime N/A fnmatch N/A inspect N/A pkgutil N/A os N/A re N/A sys N/A string N/A yaml N/A hashlib N/A traceback collections OrderedDict pyon.core.path list_files_recursive pyon.core.interfaces.interface_util get_object_definition_from_datastore get_service_definition_from_datastore pyon.ion.service BaseService pyon.core.bootstrap CFG set_config pyon.util yaml_ordered_dict N/A N/A N/A yaml_ordered_dict apply_yaml_patch pyon.ion.directory_standalone DirectoryStandalone N/A templates N/A file clientsholder client_file class dep_client dep_client_imports rr_client_prop clssdocstr svcname depends method arg methdocstr at_see at_param at_return at_throws #!/usr/bin/env python
#
# File generated on ${when_generated}
#

from zope.interface import Interface, implements

from collections import OrderedDict, defaultdict

import interface.objects
from pyon.core.bootstrap import IonObject
from pyon.ion.resregistry import ResourceRegistryServiceWrapper
from pyon.ion.service import BaseService, BaseClients
from pyon.net.endpoint import RPCClient
from pyon.ion.endpoint import ProcessRPCClient
from pyon.ion.conversation import ConversationRPCClient
from pyon.util.log import log
${dep_client_imports}

${clientsholder}

${classes}

${client}
 class ${name}DependentClients(BaseClients):
    def __init__(self, process=None):
        self._process = process
        BaseClients.__init__(self)
${dep_clients}
${dep_clients_extra}
 #!/usr/bin/env python
#
# File generated on ${when_generated}
#
${client_imports}
 class I${name}(Interface):
${classdocstring}
${methods}
class Base${name}(BaseService):
    implements(I${name})
${classdocstring}
${servicename}
${dependencies}

    def __init__(self, *args, **kwargs):
        BaseService.__init__(self, *args, **kwargs)
        self.clients = ${name}DependentClients(process=self)

${classmethods}
         self.${svc} = ${clientclass}(process=process) from ${clientmodule} import ${clientclass} 
    @property
    def resource_registry(self):
        if self._process.container is not None and self._process.container.has_capability("RESOURCE_REGISTRY"):
            return ResourceRegistryServiceWrapper(self._process.container.resource_registry, self._process)
        return self._resource_registry
     """${classdocstr}
    """     name = '${name}'     dependencies = ${namelist} 
    def ${name}(${args}):
        ${methoddocstring}
        pass
 ${name}=${val} """${methoddocstr}
        """ 
        @see ${link} 
        @param ${in_name}    ${in_type} 
        @retval ${out_name}    ${out_type} 
        @throws ${except_name}    ${except_info} N/A client_templates N/A full class method obj_arg obj_arg_no_def rpcclient processrpcclient conversationrpcclient 
${client}

${rpcclient}

${processrpcclient}

${conversationrpcclient}
 class ${name}ClientMixin(object):
    """
    ${clientdocstring}
    """
    #implements(I${name})

${methods}
 
    def ${name}(${args}, headers=None, timeout=None):
        ${methoddocstring}
        return self.request(IonObject('${req_in_obj_name}', **{$req_in_obj_args}), op='${name}', headers=headers, timeout=timeout)
 '${name}': ${name} or ${default} '${name}': ${name} class ${name}Client(RPCClient, ${name}ClientMixin):
    def __init__(self, to_name=None, name=None, node=None, **kwargs):
        if name is not None:
            log.warn("${name}Client: 'name' parameter is deprecated, please use to_name")
        to_name = to_name or name or '${targetname}'
        RPCClient.__init__(self, to_name=to_name, node=node, **kwargs)
        ${name}ClientMixin.__init__(self)
 class ${name}ProcessClient(ProcessRPCClient, ${name}ClientMixin):
    def __init__(self, process=None, to_name=None, name=None, node=None, **kwargs):
        if name is not None:
            log.warn("${name}Client: 'name' parameter is deprecated, please use to_name")
        to_name = to_name or name or '${targetname}'
        ProcessRPCClient.__init__(self, process=process, to_name=to_name, node=node, **kwargs)
        ${name}ClientMixin.__init__(self)
 class ${name}ProcessClient(ConversationRPCClient, ${name}ClientMixin):
    def __init__(self, process=None, to_name=None, name=None, node=None, **kwargs):
        if name is not None:
            log.warn("${name}Client: 'name' parameter is deprecated, please use to_name")
        to_name = to_name or name or '${targetname}'
        ConversationRPCClient.__init__(self, process=process, to_name=to_name, node=node, **kwargs)
        ${name}ClientMixin.__init__(self)
 N/A html_doc_templates N/A confluence_service_page_include method_doc arg exception ${methods} <div class="panel" style="border-width: 1px;"><div class="panelContent">
<h3>${name}</h3>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Description: </th>
<td class='confluenceTd'> ${methoddocstring}</td>
</tr>
<tr>
<th class='confluenceTh'> Input Parameters: </th>
<td class='confluenceTd'>${inargs}</td>
</tr>

<tr>
<th class='confluenceTh'> Output Parameters: </th>
<td class='confluenceTd'>${outargs}</td>
</tr>
<tr>
<th class='confluenceTh'> Error Exception(s): </th>
<td class='confluenceTd'> ${exceptions} </td>
</tr>
</tbody></table>
</div>
</div></div>

<p><br class="atl-forced-newline" /></p> ${name}: ${val}<BR> ${type}: ${description}<BR> N/A templates N/A dict N/A N/A k N/A N/A string Template v N/A N/A k v N/A N/A templates iteritems N/A client_templates N/A dict N/A N/A k N/A N/A string Template v N/A N/A k v N/A N/A client_templates iteritems N/A html_doc_templates N/A dict N/A N/A k N/A N/A string Template v N/A N/A k v N/A N/A html_doc_templates iteritems IonServiceDefinitionError N/A Exception N/A N/A N/A IonYamlLoader N/A N/A yaml Loader N/A N/A  For ION-specific overrides of YAML loading behavior.  N/A N/A ServiceObjectGenerator N/A N/A N/A 
     Generates service definitions
     N/A object_references N/A N/A enums_by_name N/A N/A currtime N/A str N/A N/A N/A datetime datetime today __init__ N/A N/A self system_name read_from_yaml_file N/A None False N/A N/A N/A self system_name system_name N/A N/A self read_from_yaml_file read_from_yaml_file N/A N/A self service_definitions_filename N/A OrderedDict N/A generate N/A N/A self opts N/A N/A N/A 
        Generates services
         N/A N/A service_dir interface_dir N/A obj/services interface N/A data_yaml_text N/A N/A self get_object_definition N/A service_yaml_text N/A N/A self get_service_definition N/A enum_tag !enum N/A N/A self opts opts N/A N/A set_config N/A rpv_convos_enabled N/A N/A CFG get_safe container.messaging.endpoint.rpc_conversation_enabled False N/A N/A RPC conversations enabled: %s rpv_convos_enabled enum_constructor N/A N/A loader node N/A N/A N/A val_str N/A str N/A node value N/A val_str N/A N/A N/A val_str N/A 1 -1 strip N/A N/A name val_str N/A N/A name_str N/A N/A N/A N/A N/A N/A N/A N/A val_str split , 1 N/A 0 split = N/A 1 strip N/A N/A ! N/A str name_str N/A N/A Enum Name Not Provided N/A N/A N/A N/A yaml add_constructor enum_tag enum_constructor Loader IonYamlLoader N/A defs N/A N/A yaml load_all data_yaml_text Loader IonYamlLoader N/A def_dict N/A N/A def_set defs N/A N/A N/A name _def N/A N/A def_set iteritems N/A N/A N/A isinstance _def OrderedDict N/A N/A N/A def_dict N/A name _def N/A tag N/A !%s name constructor N/A N/A loader node N/A N/A N/A value N/A N/A N/A node tag strip ! N/A N/A value N/A self enums_by_name N/A N/A N/A __IsEnum value type True N/A N/A value . N/A N/A N/A self enums_by_name N/A value N/A default value N/A N/A N/A N/A str value () N/A N/A N/A N/A yaml add_constructor tag constructor Loader IonYamlLoader N/A xtag N/A !Extends_%s name extends_constructor N/A N/A loader node N/A N/A N/A N/A isinstance node N/A yaml MappingNode N/A N/A value N/A N/A loader construct_mapping node N/A N/A value N/A N/A value N/A N/A N/A N/A yaml add_constructor xtag extends_constructor Loader IonYamlLoader N/A defs N/A N/A yaml load_all service_yaml_text Loader IonYamlLoader N/A def_set defs N/A N/A N/A name _def N/A N/A N/A N/A def_set get obj N/A iteritems N/A N/A N/A isinstance _def OrderedDict N/A N/A N/A def_dict N/A name _def N/A tag N/A !%s name constructor N/A N/A loader node N/A N/A N/A value N/A N/A N/A node tag strip ! N/A N/A value N/A self enums_by_name N/A N/A N/A __IsEnum value type True N/A N/A value . N/A N/A N/A self enums_by_name N/A value N/A default value N/A N/A N/A N/A str value () N/A N/A N/A N/A yaml add_constructor tag constructor Loader IonYamlLoader N/A xtag N/A !Extends_%s name extends_constructor N/A N/A loader node N/A N/A N/A N/A isinstance node N/A yaml MappingNode N/A N/A value N/A N/A loader construct_mapping node N/A N/A value N/A N/A value N/A N/A N/A N/A yaml add_constructor xtag extends_constructor Loader IonYamlLoader N/A yaml_text data_yaml_text N/A defs N/A N/A yaml load_all yaml_text Loader IonYamlLoader N/A def_set defs N/A N/A N/A name _def N/A N/A def_set iteritems N/A N/A tag N/A !%s name N/A N/A N/A yaml add_constructor tag N/A self doc_tag_constructor N/A xtag N/A !Extends_%s name N/A N/A N/A yaml add_constructor xtag N/A N/A N/A loader node N/A N/A N/A svc_signatures N/A N/A sigfile N/A N/A N/A os path join interface .svc_signatures.yml N/A N/A N/A N/A os path exists sigfile N/A N/A N/A open sigfile r f N/A N/A cnts N/A N/A f read N/A svc_signatures N/A N/A yaml load cnts N/A count 0 N/A raw_services N/A N/A service_dep_graph N/A N/A client_defs N/A N/A yaml_file_re N/A N/A re compile (obj)/(.*)[.](yml) N/A yaml_file N/A N/A self get_service_definition_file_path service_dir N/A N/A file_path N/A N/A N/A N/A yaml_file_re match yaml_file group 2 N/A N/A interface_base interface_name N/A N/A N/A N/A os path dirname file_path N/A N/A N/A os path basename file_path N/A interface_file N/A N/A N/A os path join interface interface_base N/A i%s.py interface_name N/A parent_dir N/A N/A N/A os path dirname interface_file N/A N/A N/A N/A N/A os path exists parent_dir N/A N/A N/A N/A os makedirs parent_dir N/A parent parent_dir N/A True N/A N/A curdir N/A N/A N/A N/A os path split N/A N/A N/A os path abspath parent N/A 1 N/A N/A curdir services N/A N/A N/A N/A parent N/A N/A N/A N/A os path split N/A N/A N/A os path abspath parent N/A 0 N/A pkg_file N/A N/A N/A os path join parent __init__.py N/A N/A N/A N/A N/A self opts dryrun N/A N/A N/A N/A os path exists pkg_file N/A N/A N/A N/A N/A open pkg_file w close N/A pkg_file N/A N/A N/A os path join parent_dir __init__.py N/A N/A N/A N/A N/A self opts dryrun N/A N/A N/A N/A os path exists pkg_file N/A N/A N/A N/A N/A open pkg_file w close N/A skip_file False N/A yaml_text N/A N/A self get_yaml_text yaml_file N/A yaml_text N/A N/A m N/A N/A hashlib md5 N/A N/A N/A m update yaml_text N/A cur_md5 N/A N/A m hexdigest N/A N/A N/A yaml_file svc_signatures N/A N/A opts force N/A N/A N/A cur_md5 N/A svc_signatures N/A yaml_file N/A N/A N/A Skipping   %40s (md5 signature match) interface_name N/A skip_file True N/A N/A opts dryrun N/A N/A count 1 N/A N/A Changed    %40s (needs update) interface_name N/A skip_file True N/A N/A skip_file N/A N/A N/A svc_signatures N/A yaml_file cur_md5 N/A defs N/A N/A yaml load_all yaml_text N/A def_set defs N/A N/A N/A obj def_set N/A N/A obj_name N/A def_set N/A obj N/A N/A tag N/A !%s obj_name N/A N/A N/A yaml add_constructor tag N/A self doc_tag_constructor N/A N/A service_name N/A N/A def_set get name None N/A class_docstring N/A N/A def_set get docstring class docstring N/A spec N/A N/A def_set get spec None N/A dependencies N/A N/A def_set get dependencies None N/A meth_list N/A N/A N/A def_set get methods N/A N/A N/A client_path N/A N/A N/A . join N/A interface N/A N/A interface_base replace / . N/A i%s interface_name N/A %sProcessClient N/A N/A self service_name_from_file_name interface_name N/A class_docstring_lines N/A N/A class_docstring split N/A first_time True N/A class_docstring_formatted N/A i N/A range N/A len class_docstring_lines N/A N/A class_docstring_line N/A class_docstring_lines N/A i N/A N/A N/A class_docstring_line N/A i N/A N/A len class_docstring_lines 1 N/A N/A N/A first_time N/A N/A first_time False N/A N/A class_docstring_formatted N/A class_docstring_formatted class_docstring_line N/A N/A skip_file N/A N/A N/A service_name raw_services N/A N/A N/A StandardError N/A Duplicate service name found: %s service_name N/A N/A raw_services N/A service_name N/A name docstring spec dependencies methods interface_file interface_name client_path service_name class_docstring_formatted spec dependencies meth_list interface_file interface_name client_path N/A N/A N/A service_name service_dep_graph N/A N/A N/A service_dep_graph N/A service_name N/A set N/A dep dependencies N/A N/A N/A N/A N/A service_dep_graph N/A service_name add dep N/A N/A client_defs N/A service_name client_path N/A  About to generate N/A len raw_services service interfaces N/A sorted_services N/A N/A service_set N/A set N/A k N/A N/A k v N/A N/A service_dep_graph iteritems N/A N/A len v 0 N/A N/A N/A len service_set 0 N/A N/A n N/A N/A service_set pop N/A N/A n raw_services N/A N/A N/A N/A sorted_services append N/A n N/A raw_services N/A n N/A depending_services N/A k N/A N/A k v N/A N/A service_dep_graph iteritems N/A n v N/A depending_service depending_services N/A N/A N/A N/A N/A service_dep_graph N/A depending_service remove n N/A N/A N/A len N/A service_dep_graph N/A depending_service 0 N/A N/A N/A N/A service_set add depending_service N/A remaining_deps N/A set N/A k N/A N/A k v N/A N/A service_dep_graph iteritems N/A N/A len v 0 N/A N/A len remaining_deps N/A N/A N/A sys stderr ********************************************************************** N/A N/A sys stderr Error in dependency resolution: either a cycle or a missing dependency N/A N/A sys stderr Service -> Conflicting Dependency table: N/A N/A k v N/A N/A service_dep_graph iteritems N/A N/A N/A N/A len v 0 N/A N/A N/A N/A sys stderr k -> N/A N/A , join v N/A N/A sys stderr ********************************************************************** N/A N/A StandardError N/A Cycle found in dependencies: could not resolve %s N/A str remaining_deps N/A svc sorted_services N/A N/A N/A svc_name raw_def svc N/A N/A N/A self generate_service N/A raw_def N/A interface_file raw_def client_defs opts rpv_convos_enabled N/A count 1 N/A N/A N/A count 0 N/A N/A opts dryrun N/A N/A  Writing signature file to sigfile N/A N/A open sigfile w f N/A N/A N/A N/A f write N/A N/A yaml dump svc_signatures N/A N/A N/A self load_mods interface/services True N/A base_subtypes N/A N/A self find_subtypes BaseService N/A N/A N/A self load_mods ion False N/A 
            clientfile = os.path.join('interface', 'clients.py')
            print "Writing public client file to", clientfile

            with open(clientfile, 'w') as f:
                f.write(templates['client_file'].substitute(when_generated=self.currtime,
                                                            client_imports="
".join([templates['dep_client_imports'].substitute(clientmodule=x[0], clientclass=x[1]) for x in client_defs.itervalues()])))
             N/A N/A N/A self generate_validation_report N/A exitcode 0 N/A N/A N/A count 0 N/A opts dryrun N/A N/A exitcode 1 N/A exitcode N/A build_class_doc_string N/A N/A self base_doc_str _def_spec N/A N/A N/A 
        Builds class document string
         N/A doc_str base_doc_str N/A _def_spec N/A N/A first_time True N/A url N/A N/A _def_spec split N/A N/A first_time N/A N/A doc_str N/A first_time False N/A doc_str N/A 
    @see  url N/A doc_str N/A _get_default N/A N/A self v N/A N/A N/A N/A N/A type v str N/A N/A N/A N/A v startswith ! N/A N/A val N/A N/A v strip ! N/A N/A val N/A self enums_by_name N/A N/A enum_def N/A N/A self enums_by_name N/A val N/A val N/A N/A N/A interface.objects. val . N/A enum_def N/A default N/A N/A val None N/A N/A val N/A '%s' v N/A val N/A N/A N/A N/A type v N/A int long float N/A N/A N/A str v N/A N/A N/A N/A type v bool N/A N/A N/A v True False N/A N/A None N/A find_object_reference N/A N/A self arg N/A N/A N/A N/A obj node N/A N/A N/A self object_references iteritems N/A N/A N/A N/A N/A node find arg -1 N/A N/A obj N/A dict N/A build_exception_doc_html N/A N/A self _def N/A N/A N/A args N/A N/A N/A key val N/A N/A N/A _def N/A iteritems N/A N/A N/A N/A args append N/A N/A N/A html_doc_templates N/A exception substitute type key description val N/A args_str N/A N/A join args N/A args_str N/A build_args_doc_html N/A N/A self _def N/A N/A N/A args N/A N/A N/A key val N/A N/A N/A _def N/A iteritems N/A N/A N/A isinstance val N/A datetime datetime N/A N/A val datetime N/A N/A N/A isinstance val dict N/A N/A val N/A N/A self find_object_reference key N/A N/A N/A isinstance val list N/A N/A val list N/A N/A val N/A N/A N/A N/A N/A str N/A type val replace <type ' replace '> N/A N/A N/A args append N/A N/A N/A html_doc_templates N/A arg substitute name key val val N/A args_str N/A N/A join args N/A args_str N/A build_args_doc_string N/A N/A self base_doc_str _def_spec _def_in _def_out _def_throws N/A N/A N/A doc_str base_doc_str N/A _def_spec N/A N/A first_time True N/A url N/A N/A _def_spec split N/A N/A first_time N/A N/A doc_str N/A first_time False N/A doc_str N/A N/A N/A templates N/A at_see substitute link url N/A first_time True N/A N/A key val N/A N/A N/A _def_in N/A iteritems N/A N/A N/A isinstance val basestring N/A N/A N/A N/A val startswith ! N/A N/A val N/A N/A val strip ! N/A N/A val str N/A N/A N/A isinstance val N/A datetime datetime N/A N/A val datetime N/A N/A N/A isinstance val dict N/A N/A val N/A N/A self find_object_reference key N/A N/A N/A isinstance val list N/A N/A val list N/A N/A val N/A N/A N/A N/A N/A str N/A type val replace <type ' replace '> N/A first_time N/A N/A doc_str N/A first_time False N/A doc_str N/A N/A N/A templates N/A at_param substitute in_name key in_type val N/A N/A key val N/A N/A N/A _def_out N/A iteritems N/A N/A N/A isinstance val basestring N/A N/A N/A N/A val startswith ! N/A N/A val N/A N/A val strip ! N/A N/A val str N/A N/A N/A isinstance val N/A datetime datetime N/A N/A val datetime N/A N/A N/A isinstance val dict N/A N/A val N/A N/A self find_object_reference key N/A N/A N/A isinstance val list N/A N/A val list N/A N/A val N/A N/A N/A N/A N/A str N/A type val replace <type ' replace '> N/A first_time N/A N/A doc_str N/A first_time False N/A doc_str N/A N/A N/A templates N/A at_return substitute out_name key out_type val N/A _def_throws N/A N/A N/A key val N/A N/A N/A _def_throws N/A iteritems N/A N/A first_time N/A N/A doc_str N/A first_time False N/A doc_str N/A N/A N/A templates N/A at_throws substitute except_name key except_info val N/A doc_str N/A doc_tag_constructor N/A N/A self loader node N/A N/A N/A 
        This method is only used for the tags which represent resource objects in the YAML. It still returns a dict object,
        however, it keeps a dict of object names and a reference to the line in the yaml so that it can be found later
        for generating HMTL doc. This probably is only a 90% solution
         N/A N/A key_node value_node N/A node value N/A N/A key_node  =  value_node N/A N/A N/A self object_references N/A N/A str N/A N/A node tag N/A 1 N/A str N/A node start_mark N/A N/A str N/A node tag N/A service_name_from_file_name N/A N/A self file_name N/A N/A N/A 
        Construct service name from file name
         N/A file_name N/A N/A N/A N/A N/A N/A os path basename file_name split . 1 N/A 0 N/A N/A N/A N/A N/A N/A N/A file_name title replace _ replace - N/A find_subtypes N/A N/A self clz N/A N/A N/A 
        Finds subtype
         N/A res N/A N/A cls N/A N/A clz __subclasses__ N/A N/A N/A hasattr cls name N/A Service class must define name value. Service class in error: %s cls N/A N/A N/A res append cls N/A res N/A generate_service N/A N/A self interface_file svc_def client_defs opts rpv_convos_enabled N/A N/A N/A 
        Generates a single service/client/interface definition.

        @param  interface_file      The file on disk this def should be written to.
        @param  svc_def             Hash of info about service.
        @param  client_defs         Static mapping of service names to their defined clients.
         N/A service_name N/A svc_def N/A name N/A class_docstring N/A svc_def N/A docstring N/A class_spec N/A svc_def N/A spec N/A dependencies N/A svc_def N/A dependencies N/A meth_list N/A svc_def N/A methods N/A interface_name N/A svc_def N/A interface_name N/A class_name N/A N/A self service_name_from_file_name interface_name N/A N/A service_name None N/A N/A N/A IonServiceDefinitionError N/A Service definition file %s does not define name attribute interface_file N/A N/A  Generating %40s -> %s N/A interface_name interface_file N/A methods N/A N/A class_methods N/A N/A client_methods N/A N/A doc_methods N/A N/A N/A op_name op_def N/A N/A meth_list iteritems N/A N/A N/A op_def N/A N/A N/A N/A def_docstring def_spec def_in def_out def_throws N/A N/A N/A op_def get docstring @todo document this interface!!! N/A N/A op_def get spec None N/A N/A op_def get in None N/A N/A op_def get out None N/A N/A op_def get throws None N/A docstring_lines N/A N/A def_docstring split N/A first_time True N/A docstring_formatted N/A i N/A range N/A len docstring_lines N/A N/A docstring_line N/A docstring_lines N/A i N/A N/A N/A docstring_line N/A i N/A N/A len docstring_lines 1 N/A N/A N/A first_time N/A N/A first_time False N/A N/A docstring_formatted N/A docstring_formatted docstring_line N/A N/A N/A def_in None N/A headers def_in N/A N/A N/A StandardError N/A Reserved argument name 'headers' found in method '%s' of service '%s', please rename N/A op_name service_name N/A N/A args_str class_args_str N/A N/A N/A self build_args_str def_in False N/A N/A self build_args_str def_in True N/A docstring_str N/A N/A N/A templates N/A methdocstr substitute methoddocstr N/A N/A self build_args_doc_string docstring_formatted def_spec def_in def_out def_throws N/A outargs_str N/A N/A 
        #  join N/A N/A N/A N/A yaml dump def_out split N/A N/A N/A methods append N/A N/A N/A templates N/A method substitute name op_name args args_str methoddocstring docstring_str outargs outargs_str N/A N/A N/A class_methods append N/A N/A N/A templates N/A method substitute name op_name args class_args_str methoddocstring docstring_str outargs outargs_str N/A clientobjargs N/A def_in N/A N/A all_client_obj_args N/A N/A N/A k v N/A N/A def_in iteritems N/A N/A d N/A N/A self _get_default v N/A N/A d None N/A N/A N/A N/A all_client_obj_args append N/A N/A N/A client_templates N/A obj_arg substitute name k default d N/A N/A N/A N/A all_client_obj_args append N/A N/A N/A client_templates N/A obj_arg_no_def substitute name k N/A clientobjargs N/A N/A , join all_client_obj_args N/A req_in_obj_name N/A %s_%s_in N/A service_name op_name N/A N/A N/A client_methods append N/A N/A N/A client_templates N/A method substitute name op_name args class_args_str methoddocstring docstring_str req_in_obj_name req_in_obj_name req_in_obj_args clientobjargs outargs outargs_str N/A N/A opts servicedoc N/A N/A doc_inargs_str N/A N/A self build_args_doc_html def_in N/A doc_outargs_str N/A N/A self build_args_doc_html def_out N/A doc_exceptions_str N/A N/A self build_exception_doc_html def_throws N/A methoddocstring N/A N/A docstring_formatted replace method docstring N/A N/A N/A doc_methods append N/A N/A N/A html_doc_templates N/A method_doc substitute name op_name inargs doc_inargs_str methoddocstring methoddocstring outargs doc_outargs_str exceptions doc_exceptions_str N/A N/A resource_registry dependencies N/A N/A dep_clients_extra N/A N/A N/A templates N/A rr_client_prop substitute N/A N/A dep_clients_extra N/A dep_clients N/A N/A x N/A N/A client_defs N/A x N/A 1 N/A x dependencies N/A dep_clients_str N/A N/A join N/A map N/A N/A N/A x2 N/A N/A N/A N/A templates N/A dep_client substitute svc N/A N/A N/A x2 N/A 0 resource_registry N/A _%s N/A x2 N/A 0 N/A x2 N/A 0 clientclass N/A x2 N/A 1 dep_clients N/A dep_client_imports_str N/A N/A join N/A N/A N/A N/A templates N/A dep_client_imports substitute clientmodule N/A N/A client_defs N/A x N/A 0 clientclass N/A N/A client_defs N/A x N/A 1 N/A x dependencies N/A service_name_str N/A N/A N/A templates N/A svcname substitute name service_name N/A class_docstring_str N/A N/A N/A templates N/A clssdocstr substitute classdocstr N/A N/A self build_class_doc_string class_docstring class_spec N/A dependencies_str N/A N/A N/A templates N/A depends substitute namelist dependencies N/A methods_str N/A N/A N/A join methods     pass
 N/A classmethods_str N/A N/A join class_methods N/A _class N/A N/A N/A templates N/A class substitute name class_name classdocstring class_docstring_str servicename service_name_str dependencies dependencies_str methods methods_str classmethods classmethods_str N/A clients_holder_str N/A N/A N/A templates N/A clientsholder substitute name class_name dep_clients dep_clients_str dep_clients_extra dep_clients_extra N/A _client_methods N/A N/A join client_methods N/A _client_class N/A N/A N/A client_templates N/A class substitute name class_name clientdocstring # @todo Fill in client documentation. methods _client_methods N/A _client_rpcclient N/A N/A N/A client_templates N/A rpcclient substitute name class_name targetname service_name N/A rpv_convos_enabled N/A N/A _client_convorpc_client N/A N/A N/A client_templates N/A conversationrpcclient substitute name class_name targetname service_name N/A _client N/A N/A N/A client_templates N/A full substitute client _client_class rpcclient _client_rpcclient processrpcclient conversationrpcclient _client_convorpc_client N/A N/A _client_processrpc_client N/A N/A N/A client_templates N/A processrpcclient substitute name class_name targetname service_name N/A _client N/A N/A N/A client_templates N/A full substitute client _client_class rpcclient _client_rpcclient processrpcclient _client_processrpc_client conversationrpcclient N/A interface_contents N/A N/A N/A templates N/A file substitute dep_client_imports dep_client_imports_str clientsholder clients_holder_str classes _class when_generated N/A self currtime client _client N/A N/A N/A N/A self opts dryrun N/A N/A N/A open interface_file w f N/A N/A N/A N/A f write interface_contents N/A doc_methods_str N/A N/A join doc_methods N/A doc_page_contents N/A N/A N/A html_doc_templates N/A confluence_service_page_include substitute name class_name methods doc_methods_str N/A N/A N/A N/A N/A self opts dryrun N/A opts servicedoc N/A N/A doc_file N/A N/A interface_file replace .py .html N/A doc_file N/A N/A doc_file replace /services/ /service_html/ N/A parent_dir N/A N/A N/A os path dirname doc_file N/A N/A N/A N/A N/A os path exists parent_dir N/A N/A N/A N/A os makedirs parent_dir N/A N/A open doc_file w f1 N/A N/A N/A N/A f1 write doc_page_contents N/A get_service_definition_file_path N/A N/A self service_dir N/A None N/A N/A yaml_file_re N/A N/A re compile (obj)/(.*)[.](yml) N/A service_definitions_filename N/A OrderedDict N/A N/A self read_from_yaml_file N/A N/A N/A root dirs files N/A N/A os walk service_dir N/A N/A filename N/A N/A fnmatch filter files *yml N/A N/A yaml_file N/A N/A N/A os path join root filename N/A file_match N/A N/A yaml_file_re match yaml_file N/A N/A .svc_signatures filename N/A N/A N/A N/A file_match None N/A N/A N/A N/A service_definitions_filename N/A yaml_file yaml_file N/A service_definitions_filename N/A N/A key N/A N/A N/A self service_definitions_filename keys N/A N/A filename N/A N/A self service_definitions_filename N/A key N/A file_match N/A N/A yaml_file_re match filename N/A N/A .svc_signatures filename N/A N/A N/A N/A file_match None N/A N/A N/A N/A service_definitions_filename N/A filename filename N/A service_definitions_filename N/A get_yaml_text N/A N/A self path N/A N/A N/A 
        Get the content of a file or datastore using a path to the data
         N/A N/A self read_from_yaml_file N/A N/A N/A open path r f N/A N/A N/A N/A f read N/A N/A N/A self dir N/A DirectoryStandalone sysname N/A self system_name N/A data N/A N/A N/A self dir lookup_by_path path N/A item data N/A N/A N/A N/A N/A item value N/A attributes N/A definition N/A N/A get_object_definition N/A N/A self N/A N/A N/A N/A self read_from_yaml_file N/A N/A data_yaml_files N/A list_files_recursive obj/data *.yml N/A ion.yml resource.yml shared.yml N/A data N/A N/A join N/A N/A N/A file read N/A file N/A N/A open path r N/A path data_yaml_files N/A N/A N/A os path exists path N/A N/A data N/A get_object_definition_from_datastore N/A self system_name N/A data N/A get_service_definition N/A N/A self N/A N/A N/A N/A self read_from_yaml_file N/A N/A  Service interface generator: reading service definitions from files N/A service_yaml_files N/A list_files_recursive obj/services *.yml N/A data N/A N/A join N/A N/A N/A file read N/A file N/A N/A open path r N/A path service_yaml_files N/A N/A N/A os path exists path N/A N/A  Service interface generator: reading service definitions from datastore N/A data N/A get_service_definition_from_datastore N/A self system_name N/A data N/A build_args_str N/A N/A self _def include_self N/A True N/A N/A 
        Handle case where method has no parameters
         N/A args N/A N/A include_self N/A N/A N/A N/A args append self N/A N/A key val N/A N/A N/A _def N/A iteritems N/A N/A N/A isinstance val basestring N/A N/A N/A N/A val startswith ! N/A N/A val N/A N/A val strip ! N/A N/A val N/A self enums_by_name N/A N/A enum_def N/A N/A self enums_by_name N/A val N/A val N/A N/A N/A interface.objects. val . N/A enum_def N/A default N/A N/A val None N/A N/A val N/A '%s' val N/A N/A N/A isinstance val N/A datetime datetime N/A N/A val N/A '%s' val N/A N/A N/A isinstance val list N/A N/A val None N/A N/A N/A isinstance val dict N/A N/A val None N/A N/A N/A isinstance val tuple N/A N/A val None N/A N/A N/A args append N/A N/A N/A templates N/A arg substitute name key val val N/A args_str N/A N/A ,  join args N/A args_str N/A generate_validation_report N/A N/A self N/A N/A pyon.core bootstrap N/A N/A N/A bootstrap bootstrap_pyon N/A validation_results N/A N/A Report generated on  N/A self currtime N/A N/A N/A self load_mods interface/services True N/A base_subtypes N/A N/A self find_subtypes BaseService N/A N/A N/A self load_mods ion False N/A N/A N/A self load_mods examples False N/A base_subtype base_subtypes N/A N/A base_subtype_name N/A N/A N/A base_subtype __module__ . N/A base_subtype __name__ N/A compare_methods N/A N/A method_tuple N/A N/A inspect getmembers base_subtype N/A inspect ismethod N/A N/A method_name N/A method_tuple N/A 0 N/A method N/A method_tuple N/A 1 N/A N/A N/A method_name startswith _ N/A N/A N/A N/A method_name N/A base_subtype __dict__ N/A N/A N/A N/A compare_methods N/A method_name method N/A impl_subtypes N/A N/A self find_subtypes base_subtype N/A N/A N/A len impl_subtypes 0 N/A N/A validation_results N/A 
Base service: %s 
 base_subtype_name N/A validation_results   No impl subtypes found
 N/A impl_subtype N/A N/A self find_subtypes base_subtype N/A N/A impl_subtype_name N/A N/A N/A impl_subtype __module__ . N/A impl_subtype __name__ N/A added_class_names False N/A found_error False N/A key compare_methods N/A N/A N/A key N/A impl_subtype __dict__ N/A N/A found_error True N/A N/A added_class_names N/A N/A added_class_names True N/A validation_results N/A 
Base service: %s
 base_subtype_name N/A validation_results N/A Impl subtype: %s
 impl_subtype_name N/A validation_results N/A   Method '%s' not implemented
 key N/A N/A base_params N/A N/A inspect getargspec N/A compare_methods N/A key N/A impl_params N/A N/A inspect getargspec N/A N/A impl_subtype __dict__ N/A key N/A N/A base_params impl_params N/A N/A found_error True N/A N/A added_class_names N/A N/A added_class_names True N/A validation_results N/A 
Base service: %s
 base_subtype_name N/A validation_results N/A Impl subtype: %s
 impl_subtype_name N/A validation_results N/A   Method '%s' implementation is out of sync
 key N/A validation_results N/A     Base: %s
 N/A str base_params N/A validation_results N/A     Impl: %s
 N/A str impl_params N/A N/A found_error False N/A N/A validation_results N/A 
Base service: %s
 base_subtype_name N/A validation_results N/A Impl subtype: %s
 impl_subtype_name N/A validation_results   OK
 N/A reportfile N/A N/A N/A os path join interface validation_report.txt N/A N/A N/A N/A N/A os unlink reportfile N/A N/A N/A N/A N/A N/A N/A  Writing service implementation validation report to ' reportfile ' N/A N/A N/A self opts dryrun N/A N/A N/A open reportfile w f N/A N/A N/A N/A f write validation_results N/A load_mods N/A N/A self path interfaces N/A N/A N/A mod_prefix N/A N/A string replace path / . N/A encountered_load_error False N/A N/A mod_imp mod_name is_pkg N/A N/A pkgutil iter_modules N/A path N/A N/A is_pkg N/A N/A N/A N/A self load_mods N/A N/A path / mod_name interfaces N/A N/A mod_qual N/A %s.%s N/A mod_prefix mod_name N/A N/A N/A N/A __import__ mod_qual N/A N/A N/A Exception N/A ex N/A N/A encountered_load_error True N/A N/A Import module '%s' failed: %s N/A mod_qual ex N/A N/A N/A traceback print_exc N/A N/A interfaces N/A N/A Make sure that you have defined an __init__.py in your directory, you have imported the correct service base type N/A and your module does not have syntax/interpreter errors.  Module load will fail if the interpreter encounters N/A syntax errors in your code or in the modules your code imports.
 N/A encountered_load_error N/A N/A N/A N/A sys exit 1 N/A N/A