Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Num If NameLoad body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad kwarg body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str For NameStore NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword Dict Str Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Break If CompareIn Str Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Str ListLoad Str NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Return SubscriptLoad Call AttributeLoad NameLoad attr Str ListLoad Str keyword Dict Str Str Index Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Return SubscriptLoad Call AttributeLoad NameLoad attr Str ListLoad Str Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str ListLoad Str keyword Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str ListLoad Str keyword Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list For NameStore Call AttributeLoad NameLoad attr body If CompareNotEq Call AttributeLoad NameLoad attr Str body For NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Slice Num Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn Str NameLoad body Return NameLoad If BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str If Call NameLoad BinOpBitAnd Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore BoolOpOr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults BinOpAdd Str NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad keyword Call NameLoad Str Str body If AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Continue orelse If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Continue Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num attr Str Str Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword IfExp AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Str keyword IfExp AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareNotIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AugAssignAdd NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad If CompareEq AttributeLoad NameLoad attr Str body If AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore NameLoad If BoolOpOr CompareEq AttributeLoad NameLoad attr Str CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str Num keyword IfExp NameLoad BinOpAdd Str Call NameLoad NameLoad Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Str Str For NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Str Str BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr Slice Num Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore NameLoad If BoolOpOr CompareEq AttributeLoad NameLoad attr Str CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str Num keyword IfExp NameLoad BinOpAdd Str Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword IfExp AttributeLoad NameLoad attr BinOpAdd Str NameLoad Str keyword IfExp NameLoad NameLoad Str keyword IfExp AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num keyword NameLoad For NameStore NameLoad body AugAssignAdd NameStore SubscriptLoad NameLoad Index Num For NameStore NameLoad body AugAssignAdd NameStore SubscriptLoad NameLoad Index Num AugAssignAdd NameStore NameLoad If NameLoad body AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad If NameLoad body AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body TryExcept body Return Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Return Str decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Str Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Str orelse If BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Str Str orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Str orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad While CompareEq NameLoad Call NameLoad body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str BinOpSub Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str Str SubscriptLoad NameLoad Index Num Str Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num attr Str Str If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad NameLoad Index Num keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad NameLoad Index Num keyword AttributeLoad NameLoad attr keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad AugAssignAdd NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad AugAssignAdd NameStore NameLoad orelse If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Str Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num attr Str Str If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad AugAssignAdd NameStore NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad AugAssignAdd NameStore NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Return TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Print NameLoad Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Return NameLoad Assign NameStore ListLoad Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str If Call NameLoad NameLoad NameLoad body Expr Call NameLoad orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore SubscriptLoad NameLoad Index Str body If Call AttributeLoad NameLoad attr Str body Return NameLoad If CompareEq Call AttributeLoad NameLoad attr Str NameLoad body Return NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Dict For NameStore NameLoad body Assign NameStore NameLoad If CompareIn Str SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If CompareNotEq SubscriptLoad NameLoad Index Num Str body Assign NameStore BinOpAdd Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Continue If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore NameLoad If CompareIn Str SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str orelse Assign NameStore Str If CompareIn Str SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str orelse Assign NameStore Str Assign NameStore NameStore NameLoad If CompareLt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Str Assign NameStore Num If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body For NameStore SubscriptLoad NameLoad Index Str body If CompareNotIn Str NameLoad body Continue Assign NameStore NameLoad For NameStore SubscriptLoad NameLoad Index Str body If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign NameStore NameLoad If NameLoad body AugAssignAdd NameStore Num orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Num BinOpSub BinOpAdd NameLoad SubscriptLoad NameLoad Index Str NameLoad For NameStore Call NameLoad Num Call NameLoad Call NameLoad NameLoad NameLoad NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq SubscriptLoad NameLoad Slice Num Call AttributeLoad AttributeLoad NameLoad attr attr Str body Continue Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIn Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Continue Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad NameLoad NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad For NameStore SubscriptLoad NameLoad Index Str body If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Index Str Continue If BoolOpAnd Call AttributeLoad NameLoad attr CompareIn Str NameLoad CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body Assign NameStore NameLoad If CompareNotIn Str NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad body Continue orelse For NameStore SubscriptLoad NameLoad Index Str body If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad If UnaryOpNot NameLoad body Continue Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Continue Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body For NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Call NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str While NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return If UnaryOpNot AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpSub Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ExceptHandler body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareEq SubscriptLoad NameLoad Index Str Str CompareEq SubscriptLoad NameLoad Index Str Str CompareEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Str ListLoad TupleLoad Str Str Return ListLoad Call AttributeLoad Str attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body TryExcept body If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str body For NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler body Print AttributeLoad NameLoad attr Print TupleLoad Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Raise finalbody Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Print NameLoad Print Str Expr Call AttributeLoad NameLoad attr Print Str Print Call AttributeLoad Call NameLoad attr Expr Call AttributeLoad NameLoad attr orelse If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If CompareNotEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Str If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr finalbody Expr Call NameLoad NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Num While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMult NameLoad Num If CompareGt NameLoad Num body Assign NameStore Num Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareGt BinOpSub Call AttributeLoad NameLoad attr NameLoad Num body Assign NameStore Num Expr Call AttributeLoad NameLoad attr BinOpMult Call AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad
N/A N/A # marathon-lb
### Overview
The marathon-lb is a service discovery and load balancing tool
for Marathon based on HAProxy. It reads the Marathon task information
and dynamically generates HAProxy configuration details.

To gather the task information, marathon-lb needs to know where
to find Marathon. The service configuration details are stored in labels.

Every service port in Marathon can be configured independently.

### Configuration
Service configuration lives in Marathon via labels.
Marathon-lb just needs to know where to find Marathon.
To run in listening mode you must also specify the address + port at
which marathon-lb can be reached by Marathon.

### Command Line Usage
 operator attrgetter shutil move tempfile mkstemp wsgiref.simple_server make_server six.moves.urllib parse itertools cycle common * config * lrucache * utils * N/A argparse N/A json N/A logging N/A os N/A os.path N/A stat N/A re N/A requests N/A shlex N/A subprocess N/A sys N/A time N/A dateutil.parser N/A threading N/A traceback N/A random N/A hashlib N/A logger N/A N/A logging getLogger marathon_lb N/A SERVICE_PORT_ASSIGNER N/A ServicePortAssigner MarathonBackend N/A object N/A __init__ N/A N/A self host ip port draining N/A N/A N/A N/A self host host N/A 
        The host that is running this task.
         N/A N/A self ip ip N/A 
        The IP address used to access the task.  For tasks using IP-per-task,
        this is the actual IP address of the task; otherwise, it is the IP
        address resolved from the hostname.
         N/A N/A self port port N/A 
        The port used to access a particular service on a task.  For tasks
        using IP-per-task, this is the actual port exposed by the task;
        otherwise, it is the port exposed on the host.
         N/A N/A self draining draining N/A 
        Whether we should be draining access to this task in the LB.
         N/A __hash__ N/A N/A self N/A N/A N/A N/A hash N/A N/A self host N/A self port N/A __repr__ N/A N/A self N/A N/A N/A N/A MarathonBackend(%r, %r, %r) N/A N/A self host N/A self ip N/A self port N/A N/A MarathonService N/A object N/A __init__ N/A N/A self appId servicePort healthCheck N/A N/A N/A N/A self appId appId N/A N/A self servicePort servicePort N/A N/A self backends N/A set N/A N/A self hostname None N/A N/A self proxypath None N/A N/A self revproxypath None N/A N/A self redirpath None N/A N/A self haproxy_groups N/A frozenset N/A N/A self path None N/A N/A self authRealm None N/A N/A self authUser None N/A N/A self authPasswd None N/A N/A self sticky False N/A N/A self redirectHttpToHttps False N/A N/A self useHsts False N/A N/A self sslCert None N/A N/A self bindOptions None N/A N/A self bindAddr * N/A N/A self groups N/A frozenset N/A N/A self mode tcp N/A N/A self balance roundrobin N/A N/A self healthCheck healthCheck N/A N/A self labels N/A N/A N/A self backend_weight 0 N/A healthCheck N/A N/A N/A N/A healthCheck N/A protocol HTTP N/A N/A N/A self mode http N/A add_backend N/A N/A self host ip port draining N/A N/A N/A N/A N/A N/A self backends add N/A MarathonBackend host ip port draining N/A __hash__ N/A N/A self N/A N/A N/A N/A hash N/A self servicePort N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A self servicePort N/A other servicePort N/A __repr__ N/A N/A self N/A N/A N/A N/A MarathonService(%r, %r) N/A N/A self appId N/A self servicePort N/A N/A MarathonApp N/A object N/A __init__ N/A N/A self marathon appId app N/A N/A N/A N/A self app app N/A N/A self groups N/A frozenset N/A N/A self appId appId N/A N/A self services N/A dict N/A __hash__ N/A N/A self N/A N/A N/A N/A hash N/A self appId N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A self appId N/A other appId N/A N/A Marathon N/A object N/A __init__ N/A N/A self hosts health_check auth N/A N/A N/A N/A self __hosts hosts N/A N/A self __health_check health_check N/A N/A self __auth auth N/A N/A self __cycle_hosts N/A cycle N/A self __hosts N/A api_req_raw N/A N/A self method path auth body N/A None kwargs N/A N/A host N/A self __hosts N/A N/A path_str N/A N/A N/A os path join host v2 N/A path_elem path N/A N/A path_str N/A N/A path_str / path_elem N/A response N/A N/A requests request method path_str auth auth headers N/A Accept Content-Type application/json application/json kwargs N/A N/A N/A logger debug %s %s method N/A response url N/A N/A N/A response status_code 200 N/A N/A N/A N/A message N/A N/A response json N/A N/A N/A response reason N/A %s (%s) N/A N/A response reason N/A N/A N/A response json N/A message N/A N/A N/A response raise_for_status N/A response N/A api_req N/A N/A self method path N/A kwargs N/A N/A N/A N/A N/A N/A self api_req_raw method path N/A self __auth kwargs json N/A create N/A N/A self app_json N/A N/A N/A N/A N/A self api_req POST N/A apps app_json N/A get_app N/A N/A self appid N/A N/A N/A N/A N/A logger info fetching app %s appid N/A N/A N/A N/A self api_req GET N/A apps appid N/A app N/A list N/A N/A self N/A N/A N/A N/A N/A logger info fetching apps N/A N/A N/A N/A self api_req GET N/A apps params N/A embed apps.tasks N/A apps N/A health_check N/A N/A self N/A N/A N/A N/A self __health_check N/A tasks N/A N/A self N/A N/A N/A N/A N/A logger info fetching tasks N/A N/A N/A N/A self api_req GET N/A tasks N/A tasks N/A add_subscriber N/A N/A self callbackUrl N/A N/A N/A N/A N/A self api_req POST N/A eventSubscriptions params N/A callbackUrl callbackUrl N/A remove_subscriber N/A N/A self callbackUrl N/A N/A N/A N/A N/A self api_req DELETE N/A eventSubscriptions params N/A callbackUrl callbackUrl N/A get_event_stream N/A N/A self N/A N/A N/A url N/A N/A self host /v2/events N/A N/A N/A logger info N/A N/A SSE Active, trying fetch events from {0} format url N/A headers N/A Cache-Control Accept no-cache text/event-stream N/A resp N/A N/A requests get url stream True headers headers auth N/A self __auth Event N/A object N/A __init__ N/A N/A self data N/A N/A N/A N/A self data data N/A N/A N/A line N/A N/A resp iter_lines N/A N/A N/A N/A N/A line strip N/A N/A real_event_data N/A N/A re split \r\n N/A N/A line decode utf-8 N/A N/A N/A N/A real_event_data N/A 6 data:  N/A N/A event N/A Event data N/A real_event_data N/A 6 N/A N/A event N/A host N/A N/A self N/A N/A N/A N/A next N/A self __cycle_hosts N/A property N/A has_group N/A N/A groups app_groups N/A N/A N/A N/A * groups N/A N/A True N/A N/A N/A N/A len groups 0 N/A N/A len app_groups 0 N/A N/A N/A Exception No groups specified N/A N/A len N/A N/A frozenset app_groups groups N/A N/A True N/A False N/A config N/A N/A apps groups bind_http_https ssl_certs templater N/A N/A N/A N/A N/A logger info generating config N/A config N/A templater haproxy_head N/A groups N/A frozenset groups N/A _ssl_certs N/A ssl_certs /etc/ssl/mesosphere.com.pem N/A _ssl_certs N/A N/A _ssl_certs split , N/A bind_http_https N/A N/A http_frontends N/A templater haproxy_http_frontend_head N/A https_frontends N/A N/A N/A templater haproxy_https_frontend_head format sslCerts N/A N/A join N/A map N/A N/A N/A cert N/A N/A crt  cert _ssl_certs N/A userlists N/A str N/A frontends N/A str N/A backends N/A str N/A http_appid_frontends N/A templater haproxy_http_frontend_appid_head N/A apps_with_http_appid_backend N/A N/A http_frontend_list N/A N/A https_frontend_list N/A N/A app N/A sorted apps key N/A attrgetter appId servicePort N/A N/A N/A app haproxy_groups N/A N/A N/A N/A has_group groups N/A app haproxy_groups N/A N/A N/A N/A N/A N/A has_group groups N/A app groups N/A N/A N/A N/A N/A logger debug configuring app %s N/A app appId N/A backend N/A N/A N/A N/A N/A N/A app appId N/A 1 replace / _ _ N/A str N/A app servicePort N/A N/A N/A logger debug frontend at %s:%d with backend %s N/A app bindAddr N/A app servicePort backend N/A N/A app hostname N/A N/A N/A app mode http N/A N/A app authUser N/A N/A userlist_head N/A N/A templater haproxy_userlist_head app N/A userlists N/A N/A userlist_head format backend backend user N/A app authUser passwd N/A app authPasswd N/A frontend_head N/A N/A templater haproxy_frontend_head app N/A frontends N/A N/A frontend_head format bindAddr N/A app bindAddr backend backend servicePort N/A app servicePort mode N/A app mode sslCert N/A N/A app sslCert N/A  ssl crt  N/A app sslCert bindOptions N/A N/A app bindOptions N/A N/A app bindOptions N/A backend_head N/A N/A templater haproxy_backend_head app N/A backends N/A N/A backend_head format backend backend balance N/A app balance mode N/A app mode N/A N/A bind_http_https N/A app hostname N/A N/A N/A backend_weight p_fe s_fe N/A generateHttpVhostAcl templater app backend N/A N/A N/A http_frontend_list append N/A backend_weight p_fe N/A N/A N/A https_frontend_list append N/A backend_weight s_fe N/A N/A N/A N/A app mode http N/A N/A app appId apps_with_http_appid_backend N/A N/A N/A N/A logger debug adding virtual host for app with id %s N/A app appId N/A apps_with_http_appid_backend N/A N/A app appId N/A cleanedUpAppId N/A N/A re sub [^a-zA-Z0-9\-] _ N/A app appId N/A http_appid_frontend_acl N/A N/A templater haproxy_http_frontend_appid_acl app N/A http_appid_frontends N/A N/A http_appid_frontend_acl format cleanedUpAppId cleanedUpAppId hostname N/A app hostname appId N/A app appId backend backend N/A N/A N/A app mode http N/A N/A N/A app useHsts N/A N/A backends N/A N/A templater haproxy_backend_hsts_options app N/A backends N/A N/A templater haproxy_backend_http_options app N/A backend_http_backend_proxypass N/A N/A templater haproxy_http_backend_proxypass app N/A N/A app proxypath N/A N/A backends N/A N/A backend_http_backend_proxypass format hostname N/A app hostname proxypath N/A app proxypath N/A backend_http_backend_revproxy N/A N/A templater haproxy_http_backend_revproxy app N/A N/A app revproxypath N/A N/A backends N/A N/A backend_http_backend_revproxy format hostname N/A app hostname rootpath N/A app revproxypath N/A backend_http_backend_redir N/A N/A templater haproxy_http_backend_redir app N/A N/A app redirpath N/A N/A backends N/A N/A backend_http_backend_redir format hostname N/A app hostname redirpath N/A app redirpath N/A N/A app healthCheck N/A N/A health_check_options None N/A N/A N/A N/A app mode tcp N/A N/A N/A app healthCheck N/A protocol TCP N/A N/A health_check_options N/A N/A templater haproxy_backend_tcp_healthcheck_options app N/A N/A N/A N/A app mode http N/A N/A health_check_options N/A N/A templater haproxy_backend_http_healthcheck_options app N/A health_check_options N/A N/A healthCheckPort N/A N/A N/A app healthCheck get port N/A backends N/A N/A health_check_options format healthCheck N/A app healthCheck healthCheckPortIndex N/A N/A N/A app healthCheck get portIndex healthCheckPort healthCheckPort healthCheckProtocol N/A N/A app healthCheck N/A protocol healthCheckPath N/A N/A N/A app healthCheck get path / healthCheckTimeoutSeconds N/A N/A app healthCheck N/A timeoutSeconds healthCheckIntervalSeconds N/A N/A app healthCheck N/A intervalSeconds healthCheckIgnoreHttp1xx N/A N/A app healthCheck N/A ignoreHttp1xx healthCheckGracePeriodSeconds N/A N/A app healthCheck N/A gracePeriodSeconds healthCheckMaxConsecutiveFailures N/A N/A app healthCheck N/A maxConsecutiveFailures healthCheckFalls N/A N/A N/A app healthCheck N/A maxConsecutiveFailures 1 healthCheckPortOptions N/A healthCheckPort N/A  port  N/A str healthCheckPort N/A N/A app sticky N/A N/A N/A N/A logger debug turning on sticky sessions N/A backends N/A N/A templater haproxy_backend_sticky_options app N/A frontend_backend_glue N/A N/A templater haproxy_frontend_backend_glue app N/A frontends N/A N/A frontend_backend_glue format backend backend N/A key_func N/A attrgetter host port N/A backendServer N/A sorted N/A app backends key key_func N/A N/A N/A N/A logger debug backend server %s:%d on %s N/A backendServer ip N/A backendServer port N/A backendServer host N/A N/A N/A backendServer host N/A backendServer ip N/A N/A serverName N/A N/A re sub [^a-zA-Z0-9\-] _ N/A N/A N/A N/A N/A backendServer host _ N/A backendServer ip _ N/A str N/A backendServer port N/A N/A serverName N/A N/A re sub [^a-zA-Z0-9\-] _ N/A N/A N/A backendServer ip _ N/A str N/A backendServer port N/A shortHashedServerName N/A N/A N/A N/A N/A hashlib sha1 N/A N/A serverName encode hexdigest N/A 10 N/A healthCheckOptions None N/A N/A app healthCheck N/A N/A server_health_check_options None N/A N/A N/A N/A app mode tcp N/A N/A N/A app healthCheck N/A protocol TCP N/A N/A server_health_check_options N/A N/A templater haproxy_backend_server_tcp_healthcheck_options app N/A N/A N/A N/A app mode http N/A N/A server_health_check_options N/A N/A templater haproxy_backend_server_http_healthcheck_options app N/A server_health_check_options N/A N/A healthCheckPort N/A N/A N/A app healthCheck get port N/A healthCheckOptions N/A N/A server_health_check_options format healthCheck N/A app healthCheck healthCheckPortIndex N/A N/A N/A app healthCheck get portIndex healthCheckPort healthCheckPort healthCheckProtocol N/A N/A app healthCheck N/A protocol healthCheckPath N/A N/A N/A app healthCheck get path / healthCheckTimeoutSeconds N/A N/A app healthCheck N/A timeoutSeconds healthCheckIntervalSeconds N/A N/A app healthCheck N/A intervalSeconds healthCheckIgnoreHttp1xx N/A N/A app healthCheck N/A ignoreHttp1xx healthCheckGracePeriodSeconds N/A N/A app healthCheck N/A gracePeriodSeconds healthCheckMaxConsecutiveFailures N/A N/A app healthCheck N/A maxConsecutiveFailures healthCheckFalls N/A N/A N/A app healthCheck N/A maxConsecutiveFailures 1 healthCheckPortOptions N/A healthCheckPort N/A  port  N/A str healthCheckPort N/A backend_server_options N/A N/A templater haproxy_backend_server_options app N/A backends N/A N/A backend_server_options format host N/A backendServer host host_ipv4 N/A backendServer ip port N/A backendServer port serverName serverName cookieOptions N/A N/A app sticky N/A  check cookie  shortHashedServerName healthCheckOptions N/A healthCheckOptions healthCheckOptions otherOptions N/A N/A backendServer draining  disabled N/A N/A N/A http_frontend_list sort key N/A N/A N/A x N/A N/A x N/A 0 reverse True N/A N/A N/A https_frontend_list sort key N/A N/A N/A x N/A N/A x N/A 0 reverse True N/A backend http_frontend_list N/A N/A http_frontends N/A backend N/A 1 N/A backend https_frontend_list N/A N/A https_frontends N/A backend N/A 1 N/A config userlists N/A bind_http_https N/A N/A config http_frontends N/A config http_appid_frontends N/A bind_http_https N/A N/A config https_frontends N/A config frontends N/A config backends N/A config N/A get_haproxy_pids N/A N/A N/A N/A N/A N/A N/A N/A N/A subprocess check_output pidof haproxy stderr N/A subprocess STDOUT shell True N/A N/A N/A N/A subprocess CalledProcessError N/A ex N/A N/A N/A reloadConfig N/A N/A N/A N/A N/A reloadCommand N/A N/A N/A args command N/A N/A reloadCommand N/A N/A shlex split N/A args command N/A N/A N/A N/A logger debug N/A No reload command provided, trying to find out how to  reload the configuration N/A N/A N/A N/A os path isfile /etc/init/haproxy.conf N/A N/A N/A N/A logger debug we seem to be running on an Upstart based system N/A reloadCommand N/A reload haproxy N/A N/A N/A N/A N/A N/A os path isfile /usr/lib/systemd/system/haproxy.service N/A N/A N/A os path isfile /etc/systemd/system/haproxy.service N/A N/A N/A N/A logger debug we seem to be running on systemd based system N/A reloadCommand N/A systemctl reload haproxy N/A N/A N/A N/A N/A os path isfile /etc/init.d/haproxy N/A N/A N/A N/A logger debug we seem to be running on a sysvinit based system N/A reloadCommand N/A /etc/init.d/haproxy reload N/A N/A N/A N/A logger debug no haproxy detected. won't reload. N/A reloadCommand None N/A reloadCommand N/A N/A N/A N/A logger info reloading using %s N/A N/A join reloadCommand N/A N/A N/A start_time N/A N/A time time N/A pids N/A get_haproxy_pids N/A N/A N/A subprocess check_call reloadCommand close_fds True N/A N/A pids N/A get_haproxy_pids N/A N/A N/A N/A time sleep 0.1 N/A N/A N/A logger debug reload finished, took %s seconds N/A N/A N/A time time start_time N/A N/A N/A OSError N/A ex N/A N/A N/A N/A logger error unable to reload config using command %s N/A N/A join reloadCommand N/A N/A N/A logger error OSError: %s ex N/A N/A N/A subprocess CalledProcessError N/A ex N/A N/A N/A N/A logger error unable to reload config using command %s N/A N/A join reloadCommand N/A N/A N/A logger error reload returned non-zero: %s ex N/A generateHttpVhostAcl N/A N/A templater app backend N/A N/A N/A staging_http_frontends N/A staging_https_frontends N/A N/A , N/A app hostname N/A N/A N/A N/A logger debug vhost label specifies multiple hosts: %s N/A app hostname N/A vhosts N/A N/A N/A app hostname split , N/A acl_name N/A N/A N/A N/A re sub [^a-zA-Z0-9\-] _ N/A vhosts N/A 0 _ N/A N/A N/A N/A app appId N/A 1 replace / _ N/A N/A app path N/A N/A N/A app authRealm N/A N/A N/A N/A logger debug adding path acl, path=%s N/A app path N/A http_frontend_acl N/A N/A templater haproxy_http_frontend_acl_only_with_path_and_auth app N/A staging_http_frontends N/A N/A http_frontend_acl format path N/A app path cleanedUpHostname acl_name hostname N/A vhosts N/A 0 realm N/A app authRealm backend backend N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl_only_with_path app N/A staging_https_frontends N/A N/A https_frontend_acl format path N/A app path cleanedUpHostname acl_name hostname N/A vhosts N/A 0 realm N/A app authRealm backend backend N/A N/A N/A N/A logger debug adding path acl, path=%s N/A app path N/A http_frontend_acl N/A N/A templater haproxy_http_frontend_acl_only_with_path app N/A staging_http_frontends N/A N/A http_frontend_acl format path N/A app path backend backend N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl_only_with_path app N/A staging_https_frontends N/A N/A https_frontend_acl format path N/A app path backend backend N/A vhost_hostname vhosts N/A N/A N/A N/A logger debug processing vhost %s vhost_hostname N/A http_frontend_acl N/A N/A templater haproxy_http_frontend_acl_only app N/A staging_http_frontends N/A N/A http_frontend_acl format cleanedUpHostname acl_name hostname vhost_hostname N/A N/A app path N/A N/A N/A app authRealm N/A N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl_with_auth_and_path app N/A staging_https_frontends N/A N/A https_frontend_acl format cleanedUpHostname acl_name hostname vhost_hostname appId N/A app appId realm N/A app authRealm backend backend N/A N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl_with_path app N/A staging_https_frontends N/A N/A https_frontend_acl format cleanedUpHostname acl_name hostname vhost_hostname appId N/A app appId backend backend N/A N/A N/A app authRealm N/A N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl_with_auth app N/A staging_https_frontends N/A N/A https_frontend_acl format cleanedUpHostname acl_name hostname vhost_hostname appId N/A app appId realm N/A app authRealm backend backend N/A N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl app N/A staging_https_frontends N/A N/A https_frontend_acl format cleanedUpHostname acl_name hostname vhost_hostname appId N/A app appId backend backend N/A N/A app redirectHttpToHttps N/A N/A N/A N/A logger debug writing rule to redirect http to https traffic N/A N/A app path N/A N/A haproxy_backend_redirect_http_to_https N/A N/A templater haproxy_backend_redirect_http_to_https_with_path app N/A frontend N/A N/A haproxy_backend_redirect_http_to_https format bindAddr N/A app bindAddr cleanedUpHostname acl_name backend backend N/A staging_http_frontends frontend N/A N/A haproxy_backend_redirect_http_to_https N/A N/A templater haproxy_backend_redirect_http_to_https app N/A frontend N/A N/A haproxy_backend_redirect_http_to_https format bindAddr N/A app bindAddr cleanedUpHostname acl_name N/A staging_http_frontends frontend N/A N/A N/A app path N/A N/A N/A app authRealm N/A N/A http_frontend_route N/A N/A templater haproxy_http_frontend_routing_only_with_path_and_auth app N/A staging_http_frontends N/A N/A http_frontend_route format cleanedUpHostname acl_name realm N/A app authRealm backend backend N/A N/A http_frontend_route N/A N/A templater haproxy_http_frontend_routing_only_with_path app N/A staging_http_frontends N/A N/A http_frontend_route format cleanedUpHostname acl_name backend backend N/A N/A N/A app authRealm N/A N/A http_frontend_route N/A N/A templater haproxy_http_frontend_routing_only_with_auth app N/A staging_http_frontends N/A N/A http_frontend_route format cleanedUpHostname acl_name realm N/A app authRealm backend backend N/A N/A http_frontend_route N/A N/A templater haproxy_http_frontend_routing_only app N/A staging_http_frontends N/A N/A http_frontend_route format cleanedUpHostname acl_name backend backend N/A N/A N/A N/A logger debug adding virtual host for app with hostname %s N/A app hostname N/A acl_name N/A N/A N/A N/A re sub [^a-zA-Z0-9\-] _ N/A app hostname _ N/A N/A N/A N/A app appId N/A 1 replace / _ N/A N/A app path N/A N/A N/A app redirectHttpToHttps N/A N/A http_frontend_acl N/A N/A templater haproxy_http_frontend_acl_only app N/A staging_http_frontends N/A N/A http_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname N/A http_frontend_acl N/A N/A templater haproxy_http_frontend_acl_only_with_path app N/A staging_http_frontends N/A N/A http_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname path N/A app path backend backend N/A haproxy_backend_redirect_http_to_https N/A N/A templater haproxy_backend_redirect_http_to_https_with_path app N/A frontend N/A N/A haproxy_backend_redirect_http_to_https format bindAddr N/A app bindAddr cleanedUpHostname acl_name backend backend N/A staging_http_frontends frontend N/A N/A N/A app authRealm N/A N/A http_frontend_acl N/A N/A templater haproxy_http_frontend_acl_with_auth_and_path app N/A staging_http_frontends N/A N/A http_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname path N/A app path appId N/A app appId realm N/A app authRealm backend backend N/A N/A http_frontend_acl N/A N/A templater haproxy_http_frontend_acl_with_path app N/A staging_http_frontends N/A N/A http_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname path N/A app path appId N/A app appId backend backend N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl_only_with_path app N/A staging_https_frontends N/A N/A https_frontend_acl format path N/A app path backend backend N/A N/A app authRealm N/A N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl_with_auth_and_path app N/A staging_https_frontends N/A N/A https_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname path N/A app path appId N/A app appId realm N/A app authRealm backend backend N/A N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl_with_path app N/A staging_https_frontends N/A N/A https_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname appId N/A app appId backend backend N/A N/A N/A app redirectHttpToHttps N/A N/A http_frontend_acl N/A N/A templater haproxy_http_frontend_acl_only app N/A staging_http_frontends N/A N/A http_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname N/A haproxy_backend_redirect_http_to_https N/A N/A templater haproxy_backend_redirect_http_to_https app N/A frontend N/A N/A haproxy_backend_redirect_http_to_https format bindAddr N/A app bindAddr cleanedUpHostname acl_name N/A staging_http_frontends frontend N/A N/A N/A app authRealm N/A N/A http_frontend_acl N/A N/A templater haproxy_http_frontend_acl_with_auth app N/A staging_http_frontends N/A N/A http_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname appId N/A app appId realm N/A app authRealm backend backend N/A N/A http_frontend_acl N/A N/A templater haproxy_http_frontend_acl app N/A staging_http_frontends N/A N/A http_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname appId N/A app appId backend backend N/A N/A app authRealm N/A N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl_with_auth app N/A staging_https_frontends N/A N/A https_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname appId N/A app appId realm N/A app authRealm backend backend N/A N/A https_frontend_acl N/A N/A templater haproxy_https_frontend_acl app N/A staging_https_frontends N/A N/A https_frontend_acl format cleanedUpHostname acl_name hostname N/A app hostname appId N/A app appId backend backend N/A N/A N/A app backend_weight staging_http_frontends staging_https_frontends N/A writeConfigAndValidate N/A N/A config config_file N/A N/A N/A N/A args dry N/A N/A config N/A N/A N/A sys exit N/A N/A fd haproxyTempConfigFile N/A mkstemp N/A N/A N/A logger debug writing config to temp file %s haproxyTempConfigFile N/A N/A N/A os fdopen fd w haproxyTempConfig N/A N/A N/A N/A haproxyTempConfig write config N/A perms 420 N/A N/A N/A N/A os path isfile config_file N/A N/A perms N/A N/A stat S_IMODE N/A N/A N/A os lstat config_file st_mode N/A N/A N/A os chmod haproxyTempConfigFile perms N/A N/A args skip_validation N/A N/A N/A N/A logger debug skipping validation. moving temp file %s to %s haproxyTempConfigFile config_file N/A N/A move haproxyTempConfigFile config_file N/A True N/A cmd N/A haproxy -f haproxyTempConfigFile -c N/A N/A N/A logger debug N/A checking config with command:  N/A str cmd N/A returncode N/A N/A subprocess call args cmd N/A N/A returncode 0 N/A N/A N/A N/A logger debug moving temp file %s to %s haproxyTempConfigFile config_file N/A N/A move haproxyTempConfigFile config_file N/A True N/A N/A N/A N/A logger error haproxy returned non-zero when checking config N/A False N/A compareWriteAndReloadConfig N/A N/A config config_file N/A N/A N/A runningConfig N/A str N/A N/A N/A N/A N/A logger debug reading running config from %s config_file N/A N/A open config_file r f N/A N/A runningConfig N/A N/A f read N/A N/A N/A IOError N/A N/A N/A N/A logger warning couldn't open config file for reading N/A N/A runningConfig config N/A N/A N/A N/A logger info running config is different from generated config - reloading N/A N/A writeConfigAndValidate config config_file N/A N/A N/A reloadConfig N/A N/A N/A N/A logger warning skipping reload: config not valid N/A get_health_check N/A N/A app portIndex N/A N/A N/A check N/A app N/A healthChecks N/A N/A N/A N/A check get port N/A N/A check N/A N/A N/A N/A check get portIndex portIndex N/A N/A check N/A None N/A N/A healthCheckResultCache N/A LRUCache get_apps N/A N/A marathon N/A N/A N/A apps N/A N/A marathon list N/A N/A N/A logger debug got apps %s N/A N/A app N/A id N/A app apps N/A marathon_apps N/A N/A processed_apps N/A N/A deployment_groups N/A N/A app apps N/A N/A deployment_group None N/A N/A HAPROXY_DEPLOYMENT_GROUP N/A app N/A labels N/A N/A deployment_group N/A N/A app N/A labels N/A HAPROXY_DEPLOYMENT_GROUP N/A N/A N/A deployment_group N/A 0 / N/A N/A deployment_group N/A / deployment_group N/A N/A app N/A id deployment_group N/A N/A N/A N/A processed_apps append app N/A N/A N/A deployment_group deployment_groups N/A N/A prev N/A deployment_groups N/A deployment_group N/A cur app N/A N/A HAPROXY_DEPLOYMENT_STARTED_AT N/A prev N/A labels N/A N/A prev_date N/A N/A N/A dateutil parser parse N/A N/A prev N/A labels N/A HAPROXY_DEPLOYMENT_STARTED_AT N/A N/A prev_date N/A N/A HAPROXY_DEPLOYMENT_STARTED_AT N/A cur N/A labels N/A N/A cur_date N/A N/A N/A dateutil parser parse N/A N/A cur N/A labels N/A HAPROXY_DEPLOYMENT_STARTED_AT N/A N/A cur_date N/A old new None N/A N/A prev_date cur_date N/A N/A old prev N/A new cur N/A N/A new prev N/A old cur N/A target_instances N/A int N/A N/A new N/A labels N/A HAPROXY_DEPLOYMENT_TARGET_INSTANCES N/A old_tasks N/A sorted N/A old N/A tasks key N/A N/A N/A task N/A N/A task N/A id N/A healthy_new_instances 0 N/A N/A N/A len N/A app N/A healthChecks 0 N/A N/A task N/A new N/A tasks N/A N/A N/A healthCheckResults task N/A N/A N/A alive True N/A result N/A task N/A healthCheckResults N/A N/A N/A N/A result N/A alive N/A N/A alive False N/A alive N/A N/A healthy_new_instances 1 N/A N/A healthy_new_instances N/A new N/A instances N/A maximum_drainable N/A max 0 N/A N/A healthy_new_instances N/A old N/A instances target_instances N/A i N/A range 0 N/A min N/A len old_tasks healthy_new_instances maximum_drainable N/A N/A N/A N/A old_tasks N/A i N/A draining True N/A merged old N/A N/A N/A old_tasks extend N/A new N/A tasks N/A N/A merged N/A tasks old_tasks N/A N/A deployment_groups N/A deployment_group merged N/A N/A N/A deployment_groups N/A deployment_group app N/A N/A N/A processed_apps extend N/A N/A deployment_groups values N/A N/A N/A SERVICE_PORT_ASSIGNER reset N/A app processed_apps N/A N/A appId N/A app N/A id N/A N/A N/A appId N/A 1 N/A N/A N/A os environ get FRAMEWORK_NAME N/A N/A N/A marathon_app N/A MarathonApp marathon appId app N/A N/A HAPROXY_GROUP N/A N/A marathon_app app N/A labels N/A N/A N/A marathon_app groups N/A N/A N/A N/A N/A marathon_app app N/A labels N/A HAPROXY_GROUP split , N/A N/A N/A marathon_apps append marathon_app N/A service_ports N/A N/A SERVICE_PORT_ASSIGNER get_service_ports app N/A N/A i servicePort N/A enumerate service_ports N/A N/A N/A servicePort None N/A N/A N/A N/A logger warning Skipping undefined service port N/A N/A service N/A MarathonService appId servicePort N/A get_health_check app i N/A key_unformatted label_keys N/A N/A key N/A N/A key_unformatted format i N/A N/A key N/A N/A marathon_app app N/A labels N/A N/A func N/A label_keys N/A key_unformatted N/A N/A func service key_unformatted N/A N/A N/A marathon_app app N/A labels N/A key N/A N/A N/A marathon_app services N/A servicePort service N/A task N/A app N/A tasks N/A N/A N/A N/A task N/A host N/A N/A N/A N/A logger warning N/A Ignoring Marathon task without host  N/A task N/A id N/A N/A N/A N/A N/A marathon health_check N/A healthChecks app N/A N/A len N/A app N/A healthChecks 0 N/A N/A alive True N/A N/A healthCheckResults task N/A N/A N/A N/A N/A healthCheckResultCache get N/A task N/A id False N/A N/A N/A N/A result N/A task N/A healthCheckResults N/A N/A N/A N/A result N/A alive N/A N/A alive False N/A N/A N/A healthCheckResultCache set N/A task N/A id alive N/A N/A alive N/A N/A N/A N/A task_ip task_ports N/A get_task_ip_and_ports app task N/A N/A task_ip N/A N/A N/A N/A logger warning Task has no resolvable IP address - skip N/A N/A draining N/A N/A task get draining False N/A N/A task_port service_port N/A zip task_ports service_ports N/A N/A service N/A N/A N/A marathon_app services get service_port None N/A service N/A N/A N/A service groups N/A marathon_app groups N/A N/A N/A service add_backend N/A task N/A host task_ip task_port draining N/A apps_list N/A N/A marathon_app marathon_apps N/A N/A service N/A list N/A N/A N/A marathon_app services values N/A N/A N/A service backends N/A N/A N/A N/A apps_list append service N/A apps_list N/A regenerate_config N/A N/A apps config_file groups bind_http_https ssl_certs templater N/A N/A N/A N/A compareWriteAndReloadConfig N/A config apps groups bind_http_https ssl_certs templater config_file N/A MarathonEventProcessor N/A object N/A __init__ N/A N/A self marathon config_file groups bind_http_https ssl_certs N/A N/A N/A N/A self __marathon marathon N/A N/A self __apps N/A dict N/A N/A self __config_file config_file N/A N/A self __groups groups N/A N/A self __templater N/A ConfigTemplater N/A N/A self __bind_http_https bind_http_https N/A N/A self __ssl_certs ssl_certs N/A N/A self __condition N/A N/A threading Condition N/A N/A self __thread N/A N/A threading Thread target N/A self do_reset N/A N/A self __pending_reset False N/A N/A self __stop False N/A N/A N/A N/A self __thread start N/A N/A N/A self reset_from_tasks N/A do_reset N/A N/A self N/A N/A N/A N/A self __condition N/A N/A N/A N/A logger info starting event processor thread N/A True N/A N/A N/A N/A N/A self __condition acquire N/A N/A self __stop N/A N/A N/A N/A logger info stopping event processor thread N/A N/A N/A N/A self __pending_reset N/A N/A N/A N/A N/A N/A self __condition wait 300 N/A N/A N/A N/A logger info condition wait expired N/A N/A self __pending_reset False N/A N/A N/A N/A self __condition release N/A N/A N/A start_time N/A N/A time time N/A N/A self __apps N/A get_apps N/A self __marathon N/A N/A regenerate_config N/A self __apps N/A self __config_file N/A self __groups N/A self __bind_http_https N/A self __ssl_certs N/A self __templater N/A N/A N/A logger debug updating tasks finished, took %s seconds N/A N/A N/A time time start_time N/A N/A N/A N/A N/A requests exceptions ConnectionError N/A e N/A N/A N/A N/A logger error N/A N/A Connection error({0}): {1} format N/A e errno N/A e strerror N/A N/A N/A N/A N/A logger exception Unexpected error! N/A stop N/A N/A self N/A N/A N/A N/A N/A N/A self __condition acquire N/A N/A self __stop True N/A N/A N/A N/A self __condition notify N/A N/A N/A N/A self __condition release N/A reset_from_tasks N/A N/A self N/A N/A N/A N/A N/A N/A self __condition acquire N/A N/A self __pending_reset True N/A N/A N/A N/A self __condition notify N/A N/A N/A N/A self __condition release N/A handle_event N/A N/A self event N/A N/A N/A N/A N/A N/A event N/A eventType status_update_event N/A N/A event N/A eventType health_status_changed_event N/A N/A event N/A eventType api_post_event N/A N/A N/A N/A self reset_from_tasks N/A N/A get_arg_parser N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Marathon HAProxy Load Balancer formatter_class N/A argparse ArgumentDefaultsHelpFormatter N/A N/A N/A parser add_argument --longhelp help Print out configuration details action store_true N/A N/A N/A parser add_argument --marathon -m nargs + help N/A [required] Marathon endpoint, eg. -m  http://marathon1:8080 -m http://marathon2:8080 N/A N/A N/A parser add_argument --listening -l help N/A The address this script listens on for  marathon events (e.g., http://0.0.0.0:8080) N/A N/A N/A parser add_argument --callback-url -u help N/A The HTTP address that Marathon can call this  script back at (http://lb1:8080) N/A N/A N/A parser add_argument --haproxy-config help Location of haproxy configuration default /etc/haproxy/haproxy.cfg N/A N/A N/A parser add_argument --group help [required] Only generate config for apps which list the specified names. Use '*' to match all groups action append default N/A list N/A N/A N/A parser add_argument --command -c help If set, run this command to reload haproxy. default None N/A N/A N/A parser add_argument --sse -s help Use Server Sent Events instead of HTTP Callbacks action store_true N/A N/A N/A parser add_argument --health-check -H help If set, respect Marathon's health check statuses before adding the app instance into the backend pool. action store_true N/A N/A N/A parser add_argument --lru-cache-capacity help LRU cache size (in number of items). This should be at least as large as the number of tasks exposed via marathon-lb. type int default 1000 N/A N/A N/A parser add_argument --dont-bind-http-https help Don't bind to HTTP and HTTPS frontends. action store_true N/A N/A N/A parser add_argument --ssl-certs help List of SSL certificates separated by commafor frontend marathon_https_inEx: /etc/ssl/site1.co.pem,/etc/ssl/site2.co.pem default /etc/ssl/mesosphere.com.pem N/A N/A N/A parser add_argument --skip-validation help Skip haproxy config file validation action store_true N/A N/A N/A parser add_argument --dry -d help Only print configuration to console action store_true N/A N/A N/A parser add_argument --min-serv-port-ip-per-task help Minimum port number to use when auto-assigning service ports for IP-per-task applications type int default 10050 N/A N/A N/A parser add_argument --max-serv-port-ip-per-task help Maximum port number to use when auto-assigning service ports for IP-per-task applications type int default 10100 N/A parser N/A set_logging_args parser N/A parser N/A set_marathon_auth_args parser N/A parser N/A run_server N/A N/A marathon listen_addr callback_url config_file groups bind_http_https ssl_certs N/A N/A N/A processor N/A MarathonEventProcessor marathon config_file groups bind_http_https ssl_certs N/A N/A N/A N/A N/A marathon add_subscriber callback_url wsgi_app N/A N/A env start_response N/A N/A N/A length N/A int N/A env N/A CONTENT_LENGTH N/A data N/A N/A N/A env N/A wsgi.input read length N/A N/A N/A processor handle_event N/A N/A json loads N/A N/A data decode utf-8 N/A N/A start_response 200 OK N/A N/A Content-Type text/html N/A N/A N/A N/A Got it
 encode utf-8 N/A N/A listen_uri N/A N/A parse urlparse listen_addr N/A httpd N/A make_server N/A listen_uri hostname N/A listen_uri port wsgi_app N/A N/A N/A httpd serve_forever N/A N/A N/A N/A processor stop N/A clear_callbacks N/A N/A marathon callback_url N/A N/A N/A N/A N/A logger info N/A N/A Cleanup, removing subscription to {0} format callback_url N/A N/A N/A marathon remove_subscriber callback_url N/A process_sse_events N/A N/A marathon config_file groups bind_http_https ssl_certs N/A N/A N/A processor N/A MarathonEventProcessor marathon config_file groups bind_http_https ssl_certs N/A N/A N/A events N/A N/A marathon get_event_stream N/A event events N/A N/A N/A N/A N/A N/A N/A N/A event data strip N/A N/A real_event_data N/A N/A re split \r\n N/A event data N/A N/A data N/A N/A json loads real_event_data N/A N/A N/A logger info N/A N/A received event of type {0} format N/A data N/A eventType N/A N/A N/A processor handle_event data N/A N/A N/A N/A logger info skipping empty message N/A N/A N/A N/A N/A event data N/A N/A Unexpected error: N/A N/A N/A sys exc_info N/A 0 N/A N/A N/A traceback print_stack N/A N/A N/A N/A N/A processor stop N/A N/A N/A __name__ __main__ N/A N/A arg_parser N/A get_arg_parser N/A args N/A N/A arg_parser parse_args N/A N/A args longhelp N/A N/A __doc__ N/A ``` N/A N/A N/A arg_parser print_help N/A ``` N/A N/A N/A N/A ConfigTemplater get_descriptions N/A N/A N/A sys exit N/A N/A N/A N/A args marathon None N/A N/A N/A N/A arg_parser error argument --marathon/-m is required N/A N/A N/A args sse N/A args listening N/A N/A N/A N/A arg_parser error cannot use --listening and --sse at the same time N/A N/A N/A bool N/A args min_serv_port_ip_per_task N/A bool N/A args max_serv_port_ip_per_task N/A N/A N/A N/A arg_parser error either specify both --min-serv-port-ip-per-task and --max-serv-port-ip-per-task or neither (set both to zero to disable auto assignment) N/A N/A N/A args min_serv_port_ip_per_task N/A args max_serv_port_ip_per_task N/A N/A N/A N/A arg_parser error cannot set --min-serv-port-ip-per-task to a higher value than --max-serv-port-ip-per-task N/A N/A N/A len N/A args group 0 N/A N/A N/A N/A arg_parser error N/A argument --group is required: please specify at least one group name N/A N/A N/A args min_serv_port_ip_per_task N/A args max_serv_port_ip_per_task N/A N/A N/A N/A SERVICE_PORT_ASSIGNER set_ports N/A args min_serv_port_ip_per_task N/A args max_serv_port_ip_per_task N/A s N/A N/A requests Session N/A a N/A N/A N/A requests adapters HTTPAdapter max_retries 3 N/A N/A N/A s mount http:// a N/A N/A setup_logging logger N/A args syslog_socket N/A args log_format N/A N/A args health_check N/A N/A healthCheckResultCache N/A LRUCache N/A args lru_cache_capacity N/A N/A set_ip_cache N/A LRUCache N/A args lru_cache_capacity N/A marathon N/A Marathon N/A args marathon N/A args health_check N/A get_marathon_auth_params args N/A N/A args listening N/A N/A callback_url N/A N/A args callback_url N/A args listening N/A N/A N/A N/A run_server marathon N/A args listening callback_url N/A args haproxy_config N/A args group N/A N/A args dont_bind_http_https N/A args ssl_certs N/A N/A N/A clear_callbacks marathon callback_url N/A N/A N/A args sse N/A N/A backoff 3 N/A True N/A N/A stream_started N/A N/A time time N/A N/A N/A N/A process_sse_events marathon N/A args haproxy_config N/A args group N/A N/A args dont_bind_http_https N/A args ssl_certs N/A N/A N/A N/A N/A N/A logger exception Caught exception N/A backoff N/A backoff 1.5 N/A N/A backoff 300 N/A N/A backoff 300 N/A N/A N/A logger error Reconnecting in {}s... backoff N/A N/A N/A N/A N/A time time stream_started 600 N/A N/A backoff 3 N/A N/A N/A time sleep N/A N/A N/A random random backoff N/A N/A N/A regenerate_config N/A get_apps marathon N/A args haproxy_config N/A args group N/A N/A args dont_bind_http_https N/A args ssl_certs N/A ConfigTemplater