Module Expr Str Import alias Import alias Import alias Import alias Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad IfExp CompareIs NameLoad NameLoad Num Num BoolOpOr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad Slice Num BinOpAdd Num NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While NameLoad body Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad If BoolOpOr NameLoad NameLoad body Expr Yield TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num BinOpAdd NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num If CompareLt Call NameLoad NameLoad Num body Break orelse Break decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call NameLoad Num Call NameLoad NameLoad NameLoad body Expr Yield SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body If CompareIn AttributeLoad NameLoad attr NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore NameLoad body If CompareIn Str NameLoad body Assign NameStore ListLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareGt Call NameLoad NameLoad NameLoad body Return BinOpAdd SubscriptLoad NameLoad Slice NameLoad Str orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameLoad body If BoolOpAnd CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad body Break For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Break orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Yield NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore NameLoad CompareLtELtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad Num Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr ListLoad Assign NameStore Num For NameStore AttributeLoad NameLoad attr body TryExcept body While CompareGtE AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index BinOpAdd NameLoad Num attr attr body Expr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad Num BinOpAdd NameLoad Num Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr AugAssignAdd NameStore Num handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr attr NameLoad Assign NameStore Call NameLoad GeneratorExp Call NameLoad AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr If CompareNotEq Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad Num Call NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad NameLoad attr Call NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign AttributeStore NameLoad attr AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Index Num attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Index Num attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Return Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad Assign NameStore ListComp Call AttributeLoad Call NameLoad attr NameLoad NameLoad comprehension NameStore NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr NameLoad TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign TupleStore NameStore NameStore NameLoad Assign NameStore ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Break For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Num Num NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Pass decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body While NameLoad body Assign TupleStore NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num If NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Num BinOpAdd NameLoad Num orelse Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Expr Yield NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad TryFinally body TryExcept body If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad finalbody Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num If CompareLt BinOpAdd AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Yield TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Yield TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Yield TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Yield AttributeLoad NameLoad attr Expr Yield AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Yield TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Yield TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr If NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp TupleLoad NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore BinOpSub BinOpPow Num Num Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Assign AttributeStore NameLoad attr BoolOpAnd CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpMult AttributeLoad NameLoad attr BinOpDiv Num BinOpPow Num Num Assign AttributeStore NameLoad attr BinOpMult AttributeLoad NameLoad attr BinOpDiv Num BinOpPow Num Num orelse Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr NameStore NameStore BinOpMult ListLoad NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListComp BinOpMod Str TupleLoad NameLoad BinOpBitOr BinOpLShift Call NameLoad NameLoad Num Call NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Str Str Str Str Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str Assign AttributeStore NameLoad attr BinOpMult ListLoad NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Num AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str ListLoad Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Str Str Str If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Str Index Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Str Str If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Str Assign AttributeStore NameLoad attr BinOpMult ListLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore Call NameLoad Num AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str decorator_list
N/A N/A 
Implementation of the Garmin Device Interface Specifications.
http://www8.garmin.com/support/commProtocol.html
Classes named like Annn, Dnnn coorelate with the documented
types in specification. Currently this class only implementes
the necessary protocols and datatypes  to dynamically discover
device capaibilties and save runs. The spec was last updated
in 2006, so some datatypes include undocumented/unkown fields.
 N/A logging N/A struct N/A time N/A collections N/A antd.ant ant N/A _log N/A N/A logging getLogger antd.garmin P000 N/A object N/A N/A 
    Physical protocol, must be implemented by all devices.
     N/A PID_ACK 6 N/A PID_NACK 21 N/A L000 N/A P000 N/A N/A 
    Data link protocl at least PID_PRODUCT_RQST
    is impelmented by all devices.
     N/A PID_PROTOCOL_ARRAY 253 N/A PID_PRODUCT_RQST 254 N/A PID_PRODUCT_DATA 255 N/A PID_EXT_PRODUCT_DATA 248 __init__ N/A N/A self N/A N/A N/A N/A self data_type_by_pid N/A N/A L000 PID_PRODUCT_DATA N/A L000 PID_EXT_PRODUCT_DATA N/A L000 PID_PROTOCOL_ARRAY ProductDataType ExtProductDataType ProtocolArrayType N/A N/A L001 N/A L000 N/A N/A 
    Link protocol defining how data is requested and
    returned from device. 
     N/A PID_COMMAND_DATA 10 N/A PID_XFER_CMPLT 12 N/A PID_DATE_TIME_DATA 14 N/A PID_POSITION_DATA 17 N/A PID_PRX_WPT_DATA 19 N/A PID_RECORDS 27 N/A PID_RTE_HDR 29 N/A PID_RTE_WPT_DATA 30 N/A PID_ALMANAC_DATA 31 N/A PID_TRK_DATA 34 N/A PID_WPT_DATA 35 N/A PID_PVT_DATA 51 N/A PID_RTE_LINK_DATA 98 N/A PID_TRK_HDR 99 N/A PID_FLIGHTBOOK_RECORD 134 N/A PID_LAP 149 N/A PID_WPT_CAT 152 N/A PID_RUN 990 N/A PID_WORKOUT 991 N/A PID_WORKOUT_OCCURRENCE 992 N/A PID_FITNESS_USER_PROFILE 993 N/A PID_WORKOUT_LIMITS 994 N/A PID_COURSE 1061 N/A PID_COURSE_LAP 1062 N/A PID_COURSE_POINT 1063 N/A PID_COURSE_TRK_HDR 1064 N/A PID_COURSE_TRK_DATA 1065 N/A PID_COURSE_LIMITS 1066 N/A PID_TRK_DATA_ARRAY 1510 __init__ N/A N/A self N/A N/A N/A N/A self data_type_by_pid N/A N/A L001 PID_XFER_CMPLT N/A L001 PID_RECORDS CommandIdType RecordsType N/A N/A A010 N/A object N/A N/A 
    Command protocol. Mainly used in comination with
    L001.PID_COMMAND_DATA to download data from device.
     N/A CMND_ABORT_TRANSFER 0 N/A CMND_TRANSFER_ALM 1 N/A CMND_TRANSFER_POSN 2 N/A CMND_TRANSFER_PRX 3 N/A CMND_TRANSFER_RTE 4 N/A CMND_TRANSFER_TIME 5 N/A CMND_TRANSFER_TRK 6 N/A CMND_TRANSFER_WPT 7 N/A CMND_TURN_OFF_PWR 8 N/A CMND_START_PVT_DATA 49 N/A CMND_STOP_PVT_DATA 50 N/A CMND_FLIGHTBOOK_TRANSFER 92 N/A CMND_TRANSFER_LAPS 117 N/A CMND_TRANSFER_WPT_CATS 121 N/A CMND_TRANSFER_RUNS 450 N/A CMND_TRANSFER_WORKOUTS 451 N/A CMND_TRANSFER_WORKOUT_OCCURRENCES 452 N/A CMND_TRANSFER_FITNESS_USER_PROFILE 453 N/A CMND_TRANSFER_WORKOUT_LIMITS 454 N/A CMND_TRANSFER_COURSES 561 N/A CMND_TRANSFER_COURSE_LAPS 562 N/A CMND_TRANSFER_COURSE_POINTS 563 N/A CMND_TRANSFER_COURSE_TRACKS 564 N/A CMND_TRANSFER_COURSE_LIMITS 565 __init__ N/A N/A self N/A N/A N/A N/A self data_type_by_pid N/A N/A N/A dump_packet N/A N/A file packet N/A N/A N/A 
    Dump the given packet to file.
    Format is consistant with garmin physical packet format.
    uint16=packet_id, uint16t=data_length, char[]=data
     N/A N/A pid length data packet N/A N/A N/A file write N/A N/A struct pack <HH pid length N/A data N/A N/A N/A N/A file write N/A data raw N/A dump N/A N/A file data N/A N/A N/A 
    Recursively dump the given packets (or packet)
    to given file.
     N/A packet data N/A N/A N/A N/A N/A dump file packet N/A N/A N/A TypeError N/A N/A N/A dump_packet file packet N/A pack N/A N/A pid data_type N/A None N/A N/A 
    Pack a garmin request pack, data_type
    if non-None is assumed to be uint16_t.
    packet padded to 8-bytes (FIXME, padding
    is done for ant transport. unportable
    and not even necessary?
     N/A N/A N/A struct pack <HHHxx pid N/A N/A data_type None 0 2 N/A data_type 0 N/A unpack N/A N/A msg N/A N/A N/A 
    Unpack a garmin device communication packet.
    uint16_t=pid, uint16_t=length, data[]
     N/A N/A pid length N/A N/A struct unpack <HH N/A msg N/A 4 N/A data N/A msg N/A 4 N/A 4 length N/A N/A pid length data N/A tokenize N/A N/A msg N/A N/A N/A 
    A generator which returning unpacked
    packets from the given string of concatinated
    packet strings.
     N/A True N/A N/A N/A pid length data N/A unpack msg N/A N/A pid length N/A N/A N/A N/A pid length N/A msg N/A 4 N/A length 4 N/A msg N/A msg N/A N/A length 4 N/A N/A N/A len msg 4 N/A N/A N/A N/A N/A chunk N/A N/A l n N/A N/A N/A 
    A generator returning n-sized lists
    of l's elements.
     N/A i N/A xrange 0 N/A len l n N/A N/A N/A N/A l N/A i N/A i n N/A get_proto_cls N/A N/A protocol_array values N/A N/A N/A 
    Given a garmin protocol_array, return
    the first value in values which is implemented
    by the device.
     N/A val values N/A N/A N/A N/A val __name__ protocol_array N/A N/A val N/A data_types_by_protocol N/A N/A protocol_array N/A N/A N/A 
    Return a dict mapping each protocol Annn
    to the data types returned by the device
    descrived by protocol array.
     N/A result N/A N/A proto protocol_array N/A N/A N/A A proto N/A N/A data_types N/A N/A N/A result N/A proto data_types N/A N/A N/A D proto N/A N/A N/A N/A data_types append proto N/A result N/A abbrev N/A N/A str max_len N/A N/A N/A 
    Return a string  of up to max length.
    adding elippis if string greater than max len.
     N/A N/A N/A len str max_len N/A N/A N/A N/A str N/A max_len ... N/A N/A str N/A extract_wpts N/A N/A protocols get_trks_pkts index N/A N/A N/A 
    Given a collection of track points packets,
    return those which are members of given track index.
    Where PID_TRK_DATA_ARRAY is encountered, data is expanded
    such that result is equvalent to cas where each was its
    on packet of PID_TRK_DATA
     N/A i N/A iter get_trks_pkts N/A N/A pid length data i N/A N/A N/A N/A pid N/A N/A protocols link_proto PID_TRK_HDR N/A N/A data index index N/A N/A N/A pkt i N/A N/A N/A N/A pkt pid N/A N/A protocols link_proto PID_TRK_HDR N/A N/A N/A N/A N/A N/A pkt pid N/A N/A protocols link_proto PID_TRK_DATA N/A N/A N/A data N/A N/A N/A N/A pkt pid N/A N/A protocols link_proto PID_TRK_DATA_ARRAY N/A N/A wpt N/A N/A pkt data wpts N/A N/A N/A wpt N/A extract_runs N/A N/A protocols get_runs_pkts N/A N/A N/A 
    Given garmin packets which are result of A1000 (get_runs)
    Return an object tree runs->laps->points for easier processing.
     N/A N/A runs laps trks get_runs_pkts N/A runs N/A N/A r data N/A r N/A N/A runs by_pid N/A N/A N/A protocols link_proto PID_RUN N/A laps N/A N/A l data N/A l N/A N/A laps by_pid N/A N/A N/A protocols link_proto PID_LAP N/A N/A N/A _log debug extract_runs: found %d run(s) N/A len runs N/A N/A run_num run N/A enumerate runs N/A N/A N/A run laps N/A l N/A l laps N/A N/A run first_lap_index N/A l index N/A run last_lap_index N/A N/A N/A run time time N/A N/A N/A N/A run laps N/A 0 start_time time N/A N/A run wpts N/A list N/A extract_wpts protocols trks N/A run track_index N/A N/A N/A _log debug extract_runs: run %d has: %d lap(s), %d wpt(s) N/A run_num 1 N/A len N/A run laps N/A len N/A run wpts N/A lap N/A run laps N/A N/A N/A lap wpts N/A N/A lap_num 0 N/A wpt N/A run wpts N/A N/A N/A N/A N/A N/A N/A wpt time time N/A N/A N/A N/A run laps N/A N/A lap_num 1 start_time time N/A N/A N/A N/A _log debug extract_runs: run %d lap %d has: %d wpt(s) N/A run_num 1 N/A lap_num 1 N/A len N/A N/A N/A run laps N/A lap_num wpts N/A lap_num 1 N/A N/A N/A IndexError N/A N/A N/A N/A N/A N/A N/A N/A run laps N/A lap_num wpts append wpt N/A all_wpt_in_laps N/A sum N/A N/A len N/A lap wpts N/A lap N/A run laps N/A N/A N/A len N/A run wpts all_wpt_in_laps N/A N/A N/A N/A _log warning extract_runs: run %d waypoint mismatch: total(%d) != wpt_in_laps(%d) N/A run_num 1 N/A len N/A run wpts all_wpt_in_laps N/A runs N/A Device N/A object N/A N/A 
    Class represents a garmin gps device.
    Methods of this class will delegate to
    the specific protocols impelemnted by this
    device. They may raise DeviceNotSupportedError
    if the device does not implement a specific
    operation.
     __init__ N/A N/A self stream N/A N/A N/A N/A self stream stream N/A N/A N/A self init_device_api N/A get_product_data N/A N/A self N/A N/A N/A 
        Get product capabilities.
         N/A N/A N/A N/A self execute N/A A000 N/A 0 N/A get_runs N/A N/A self N/A N/A N/A 
        Get new runs from device.
         N/A N/A self run_proto N/A N/A N/A N/A self execute N/A self run_proto N/A N/A N/A DeviceNotSupportedError Device does not support get_runs. N/A delete_runs N/A N/A self N/A N/A N/A 
        Delete runs from device.
        UNDOCUMENTED, implementation does not delegate to protocol array.
        This method won't raise error on unsupported hardware, and my silently fail.
         N/A N/A N/A self execute N/A DeleteRuns self N/A init_device_api N/A N/A self N/A N/A N/A 
        Initialize the protocols used by this
        instance based on the protocol capabilities
        array which is return from A000.
         N/A product_data N/A N/A self get_product_data N/A N/A N/A N/A self device_id N/A N/A N/A N/A product_data by_pid N/A N/A L000 PID_PRODUCT_DATA N/A 0 data N/A N/A self protocol_array N/A N/A N/A N/A N/A product_data by_pid N/A N/A L000 PID_PROTOCOL_ARRAY N/A 0 data protocol_array N/A N/A N/A _log debug init_device_api: product_id=%d, software_version=%0.2f, description=%s N/A N/A self device_id product_id N/A N/A N/A self device_id software_version 100.0 N/A N/A self device_id description N/A N/A N/A _log debug init_device_api: protocol_array=%s N/A self protocol_array N/A N/A N/A N/A IndexError TypeError N/A N/A N/A DeviceNotSupportedError Product data not returned by device. N/A N/A self data_types_by_protocol N/A data_types_by_protocol N/A self protocol_array N/A N/A self link_proto N/A N/A self _find_core_protocol link N/A L000 L001 N/A N/A self cmd_proto N/A N/A self _find_core_protocol command N/A A010 N/A N/A self trk_proto N/A N/A self _find_app_protocol get_trks N/A A301 A302 N/A N/A self lap_proto N/A N/A self _find_app_protocol get_laps N/A A906 N/A N/A self run_proto N/A N/A self _find_app_protocol get_runs N/A A1000 N/A _find_core_protocol N/A N/A self name candidates N/A N/A N/A 
        Return the first procotol in candidates
        which is supported by this device.
         N/A proto N/A get_proto_cls N/A self protocol_array candidates N/A proto N/A N/A N/A N/A _log debug Using %s protocol %s. name N/A proto __name__ N/A N/A N/A DeviceNotSupportedError N/A Device does not implement a known link protocol. capabilities=%s N/A self protocol_array N/A N/A proto N/A _find_app_protocol N/A N/A self function_name candidates N/A N/A N/A 
        Return the first protocol in candidates whihc
        is supported by this device. additionally, check
        that the datatypes which are returned by the give
        protocol are implented by this python module.
        If not a warning is logged. (but no excetpion is raised._
        This allows raw data dump to succeed, but trx generation to fail.
         N/A cls N/A get_proto_cls N/A self protocol_array candidates N/A data_types N/A N/A N/A self data_types_by_protocol get N/A cls __name__ N/A N/A data_type_cls N/A N/A N/A N/A globals get nm DataType N/A nm data_types N/A N/A cls N/A N/A N/A N/A _log warning Download may FAIL. Protocol unimplemented. %s:%s function_name candidates N/A N/A N/A N/A _log debug Using %s%s for: %s N/A cls __name__ data_types function_name N/A N/A DataType data_type_cls N/A N/A N/A N/A _log warning Download may FAIL. DataType unimplemented. %s:%s%s function_name N/A cls __name__ data_types N/A N/A N/A N/A cls self data_type_cls N/A N/A N/A Exception N/A N/A N/A N/A _log warning Download may Fail. Failed to ceate protocol %s. function_name exc_info True N/A execute N/A N/A self protocol N/A N/A N/A 
        Execute the give garmin Applection protcol.
        e.g. one of the Annn classes.
         N/A result N/A N/A next N/A N/A protocol execute N/A N/A N/A hasattr next execute N/A N/A N/A N/A result extend N/A N/A self execute next N/A N/A N/A pid data next N/A in_packets N/A N/A N/A N/A N/A self stream write N/A pack pid data N/A True N/A N/A pkt N/A N/A N/A self stream read N/A N/A pkt N/A N/A N/A N/A pid length data N/A tokenize pkt N/A N/A N/A N/A in_packets append N/A pid length N/A N/A protocol decode_packet pid length data N/A N/A N/A N/A self stream write N/A pack N/A P000 PID_ACK pid N/A N/A N/A in_packets append N/A 0 0 None N/A N/A N/A result append N/A N/A protocol decode_list in_packets N/A N/A N/A protocol decode_result result N/A N/A MockHost N/A object N/A N/A 
    A mock device which can be used
    when instantiating a Device.
    Rather than accessing hardware,
    commands are replayed though given
    string (which can be read from file.
    This class is dumb, so caller has
    to ensure pkts in the import string
    or file are properly ordered.
     __init__ N/A N/A self data N/A N/A N/A N/A self reader N/A N/A self _read data N/A write N/A N/A self N/A args kwds N/A N/A N/A read N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self reader next N/A N/A N/A StopIteration N/A N/A N/A _read N/A N/A self data N/A N/A N/A data N/A N/A N/A length N/A N/A struct unpack <H N/A data N/A 2 4 N/A length N/A N/A pkt N/A data N/A 0 N/A length 4 N/A N/A pkt N/A data N/A data N/A N/A length 4 N/A N/A pkt N/A N/A Protocol N/A object N/A N/A 
    A protocol defines the required comands
    which need to be sent to hardware to perform
    a specific function.
     __init__ N/A N/A self protocols N/A N/A N/A N/A self link_proto N/A protocols link_proto N/A N/A self cmd_proto N/A protocols cmd_proto N/A N/A self data_type_by_pid N/A dict N/A N/A N/A N/A N/A protocols link_proto data_type_by_pid items N/A N/A N/A N/A protocols cmd_proto data_type_by_pid items N/A execute N/A N/A self N/A N/A N/A 
        A generator or array which contains either a tuple
        representing a command which should be executed
        or a protocol (who's execute shoudl be deletaged to.
         N/A N/A N/A decode_packet N/A N/A self pid length data N/A N/A N/A 
        Decode the given packet's data property.
         N/A length N/A N/A data_cls N/A N/A N/A self data_type_by_pid get pid DataType N/A N/A data_cls data N/A decode_list N/A N/A self pkts N/A N/A N/A N/A PacketList pkts N/A decode_result N/A N/A self list N/A N/A N/A list N/A N/A DownloadProtocol N/A Protocol N/A N/A 
    Protocol with download progess logging.
    Can be extended/ehnanced for GUI use.
     N/A pid_data N/A decode_packet N/A N/A self pid length data N/A N/A N/A data N/A N/A N/A super DownloadProtocol self decode_packet pid length data N/A N/A N/A N/A N/A N/A pid N/A N/A self link_proto PID_RECORDS N/A N/A N/A N/A self on_start pid data N/A N/A N/A pid N/A self pid_data N/A N/A N/A N/A self on_data pid data N/A N/A N/A pid N/A N/A self link_proto PID_XFER_CMPLT N/A N/A N/A N/A self on_finish pid data N/A N/A N/A Exception N/A N/A N/A N/A _log warning Caught exception sending notification of download status, ignoring error exc_info True N/A N/A data N/A on_start N/A N/A self pid data N/A N/A N/A N/A N/A _log info %s: Starting download. %d record(s) N/A N/A self __class__ __name__ N/A data count N/A N/A self expected N/A data count N/A N/A self count 0 N/A N/A self last_log N/A N/A time time N/A on_data N/A N/A self pid data N/A N/A N/A N/A self count 1 N/A N/A N/A N/A self last_log 1 N/A N/A time time N/A N/A N/A N/A _log info %s: Download in progress. %d/%d N/A N/A self __class__ __name__ N/A self count N/A self expected N/A N/A self last_log N/A N/A time time N/A on_finish N/A N/A self pid data N/A N/A N/A N/A N/A _log info %s: Finished download. %d/%d N/A N/A self __class__ __name__ N/A self count N/A self expected N/A N/A N/A self count N/A self expected N/A N/A N/A N/A _log warning %s: Record count mismatch, expected(%d) != actual(%d) N/A N/A self __class__ __name__ N/A self expected N/A self count N/A N/A A000 N/A Protocol N/A N/A 
    Device capabilities.
     __init__ N/A N/A self N/A N/A N/A N/A self data_type_by_pid N/A N/A L000 data_type_by_pid N/A execute N/A N/A self N/A N/A N/A N/A N/A _log debug A000: executing product request N/A N/A N/A N/A L000 PID_PRODUCT_RQST None N/A N/A DeleteRuns N/A Protocol N/A N/A 
    Delete runs from delete.
    UNDOCUMENTED.
     execute N/A N/A self N/A N/A N/A N/A N/A N/A N/A self link_proto PID_COMMAND_DATA 677 N/A N/A A1000 N/A DownloadProtocol N/A N/A 
    Get runs.
     __init__ N/A N/A self protocols run_type N/A N/A N/A N/A N/A N/A super A1000 self __init__ protocols N/A N/A N/A N/A protocols lap_proto N/A N/A protocols trk_proto N/A N/A N/A DeviceNotSupportedError A1000 required device to supoprt lap and track protocols. N/A N/A self lap_proto N/A protocols lap_proto N/A N/A self trk_proto N/A protocols trk_proto N/A N/A N/A N/A self data_type_by_pid update N/A N/A N/A self link_proto PID_RUN run_type N/A N/A self pid_data N/A N/A N/A self link_proto PID_RUN N/A execute N/A N/A self N/A N/A N/A N/A N/A _log debug A1000: executing transfer runs N/A N/A N/A N/A N/A self link_proto PID_COMMAND_DATA N/A N/A self cmd_proto CMND_TRANSFER_RUNS N/A N/A N/A self lap_proto N/A N/A N/A self trk_proto N/A N/A A301 N/A DownloadProtocol N/A N/A 
    Get tracks
     __init__ N/A N/A self protocols trk_hdr_type trk_type N/A N/A N/A N/A N/A N/A super A301 self __init__ protocols N/A N/A N/A N/A self data_type_by_pid update N/A N/A N/A self link_proto PID_TRK_HDR N/A N/A self link_proto PID_TRK_DATA N/A N/A self link_proto PID_TRK_DATA_ARRAY trk_hdr_type trk_type trk_type N/A N/A self pid_data N/A N/A N/A self link_proto PID_TRK_HDR N/A N/A self link_proto PID_TRK_DATA N/A N/A self link_proto PID_TRK_DATA_ARRAY N/A execute N/A N/A self N/A N/A N/A N/A N/A _log debug A301: executing transfer tracks N/A N/A N/A N/A N/A self link_proto PID_COMMAND_DATA N/A N/A self cmd_proto CMND_TRANSFER_TRK N/A on_data N/A N/A self pid data N/A N/A N/A 
        PID_TRK_DATA_ARRAY return multiple data objects per
        packet, override default products implementation to override.
         N/A N/A pid N/A N/A self link_proto PID_TRK_DATA_ARRAY N/A N/A N/A self count N/A N/A data num_valid_wpt 1 N/A N/A N/A N/A super A301 self on_data pid data N/A N/A A302 N/A A301 N/A N/A 
    Same as 301
     N/A A906 N/A DownloadProtocol N/A N/A 
    Get laps
     __init__ N/A N/A self protocols lap_type N/A N/A N/A N/A N/A N/A super A906 self __init__ protocols N/A N/A N/A N/A self data_type_by_pid update N/A N/A N/A self link_proto PID_LAP lap_type N/A N/A self pid_data N/A N/A N/A self link_proto PID_LAP N/A execute N/A N/A self N/A N/A N/A N/A N/A _log debug A906: executing transfer laps N/A N/A N/A N/A N/A self link_proto PID_COMMAND_DATA N/A N/A self cmd_proto CMND_TRANSFER_LAPS N/A N/A PacketList N/A list N/A N/A Packet N/A N/A collections namedtuple Packet N/A pid length data __init__ N/A N/A self iterable N/A N/A N/A N/A N/A N/A super PacketList self __init__ N/A N/A N/A self Packet i N/A i iterable N/A N/A N/A self _update_packets_by_id N/A _update_packets_by_id N/A N/A self N/A N/A N/A d N/A N/A collections defaultdict list N/A pkt self N/A N/A N/A N/A N/A d N/A N/A pkt N/A 0 append pkt N/A N/A self by_pid d N/A N/A DataType N/A object N/A N/A 
    DataType is base implementation for parser which
    interpruts the data payload of a garmin packet.
    Default implentation save message .raw property
    but provides no addition properties.
     __init__ N/A N/A self raw_str N/A N/A N/A N/A self raw raw_str N/A N/A self unparsed N/A self raw N/A N/A self str_args N/A N/A _unpack N/A N/A self format arg_names N/A N/A N/A 
        Use the givem format to extract the give
        proeprty names from this instance unparsed text.
         N/A sz N/A N/A struct calcsize format N/A data N/A N/A self unparsed N/A sz N/A N/A self unparsed N/A N/A self unparsed N/A sz N/A args N/A N/A struct unpack format data N/A N/A N/A len args N/A len arg_names N/A N/A name arg N/A zip arg_names args N/A N/A N/A setattr self name arg N/A N/A N/A N/A self str_args extend arg_names N/A _parse N/A N/A self type arg_name N/A None N/A N/A 
        Invoke a composite data type to parse
        from start of this instance's unparsed text.
        If arg_name is provided, reulst will be
        assigned as attribute of this instance.
         N/A data N/A type N/A self unparsed N/A arg_name N/A N/A N/A setattr self arg_name data N/A N/A N/A N/A self str_args append arg_name N/A N/A self unparsed N/A data unparsed N/A N/A data unparsed N/A data N/A __str__ N/A N/A self N/A N/A N/A parsed_args N/A N/A k N/A getattr self k N/A k N/A self str_args N/A N/A N/A self unparsed N/A N/A N/A %s%s N/A N/A N/A self __class__ __name__ parsed_args N/A N/A N/A %s%s, unparsed=%s N/A N/A N/A self __class__ __name__ parsed_args N/A abbrev N/A N/A N/A self unparsed encode hex 32 N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A self __str__ N/A N/A TimeType N/A DataType N/A N/A EPOCH 631065600 __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super TimeType self __init__ data N/A N/A N/A self _unpack <I N/A time N/A gmtime N/A N/A self N/A N/A N/A N/A N/A time gmtime N/A N/A self EPOCH N/A self time N/A property N/A PositionType N/A DataType N/A N/A INVALID_SEMI_CIRCLE N/A N/A 2 31 1 __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super PositionType self __init__ data N/A N/A N/A self _unpack <ii N/A lat lon N/A N/A self valid N/A N/A N/A self lat N/A self INVALID_SEMI_CIRCLE N/A N/A self lon N/A self INVALID_SEMI_CIRCLE N/A N/A self valid N/A N/A N/A self deglat N/A N/A self lat N/A 180.0 N/A 2 31 N/A N/A self deglon N/A N/A self lon N/A 180.0 N/A 2 31 N/A N/A N/A N/A self deglat N/A self deflon lat lon N/A N/A None 4 N/A N/A CommandIdType N/A DataType N/A __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super CommandIdType self __init__ data N/A N/A N/A self _unpack <H N/A command_id N/A N/A RecordsType N/A DataType N/A __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super RecordsType self __init__ data N/A N/A N/A self _unpack <H N/A count N/A N/A ProductDataType N/A DataType N/A __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super ProductDataType self __init__ data N/A N/A N/A self _unpack <Hh N/A product_id software_version N/A N/A self description N/A str N/A str N/A N/A N/A self unparsed split str N/A N/A N/A N/A self str_args append description N/A N/A ExtProductDataType N/A DataType N/A __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super ExtProductDataType self __init__ data N/A N/A self description N/A str N/A str N/A N/A data split str N/A N/A N/A N/A self str_args append description N/A N/A ProtocolArrayType N/A DataType N/A __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super ProtocolArrayType self __init__ data N/A N/A self protocol_array N/A N/A %s%03d N/A proto N/A N/A N/A ord msb 8 N/A ord lsb N/A N/A proto lsb msb N/A chunk data 3 N/A N/A N/A N/A self str_args append protocol_array N/A N/A WorkoutStepType N/A DataType N/A __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super WorkoutStepType self __init__ data N/A N/A N/A self _unpack <16sffHBBBB2x N/A custom_name target_custom_zone_low target_cusomt_zone_hit duration_value intensity duration_type target_type target_value N/A N/A self custom_name N/A N/A self custom_name N/A N/A N/A N/A self custom_name index N/A N/A D1008 N/A DataType N/A N/A 
    Workout
     __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super D1008 self __init__ data N/A N/A N/A self _unpack <I N/A num_valid_steps N/A N/A self steps N/A N/A None N/A self num_valid_steps N/A step_num N/A xrange 0 N/A self num_valid_steps N/A N/A N/A N/A self steps N/A step_num N/A N/A self _parse WorkoutStepType N/A N/A N/A self _unpack <16sb N/A name sport_type N/A N/A self name N/A N/A self name N/A N/A N/A N/A self name index N/A N/A D1009 N/A DataType N/A N/A 
    Run
     __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super D1009 self __init__ data N/A N/A N/A self _unpack <HHHBBBx2x N/A track_index first_lap_index last_lap_index sport_type program_type multisport N/A N/A N/A self _parse TimeType time N/A N/A N/A self _unpack <f N/A distance N/A N/A self workout N/A D1008 N/A self unparsed N/A N/A self unparsed N/A N/A self workout unparsed N/A N/A N/A self workout unparsed N/A N/A N/A N/A self str_args append workout N/A N/A D1011 N/A DataType N/A N/A 
    Lap
     __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super D1011 self __init__ data N/A N/A N/A self _unpack <H2x N/A index N/A N/A N/A self _parse TimeType start_time N/A N/A N/A self _unpack <Iff N/A total_time total_dist max_speed N/A N/A N/A self _parse PositionType begin N/A N/A N/A self _parse PositionType end N/A N/A N/A self _unpack HBBBBB N/A calories avg_heart_rate max_heart_rate intensity avg_cadence trigger_method N/A N/A N/A self avg_heart_rate 0 N/A N/A N/A self avg_heart_rate None N/A N/A N/A self max_heart_rate 0 N/A N/A N/A self max_heart_rate None N/A N/A N/A self avg_cadence 255 N/A N/A N/A self avg_cadence None N/A N/A D1015 N/A D1011 N/A N/A 
    Lap + extra mystery bytes
     __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super D1015 self __init__ data N/A N/A N/A self _unpack BBBBB N/A undocumented_0 undocumented_1 undocumented_2 undocumented_3 undocumented_4 N/A N/A D311 N/A DataType N/A N/A 
    wpt header
     __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super D311 self __init__ data N/A N/A N/A self _unpack <H N/A index N/A N/A D304 N/A DataType N/A N/A 
    way point
     N/A INVALID_FLOAT N/A N/A N/A struct unpack <f QYi N/A 0 __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super D304 self __init__ data N/A N/A N/A self _parse PositionType posn N/A N/A N/A self _parse TimeType time N/A N/A N/A self _unpack <ffBBB N/A alt distance heart_rate cadence sensor N/A N/A N/A self alt N/A self INVALID_FLOAT N/A N/A N/A self alt None N/A N/A N/A self distance N/A self INVALID_FLOAT N/A N/A N/A self distance None N/A N/A N/A self cadence 255 N/A N/A N/A self cadence None N/A N/A N/A self heart_rate 0 N/A N/A N/A self heart_rate None N/A N/A D1018 N/A DataType N/A N/A 
    An array of waypoints
    undocumented.
     __init__ N/A N/A self data N/A N/A N/A N/A N/A N/A super D1018 self __init__ data N/A N/A N/A self _unpack <I N/A num_valid_wpt N/A N/A self wpts N/A N/A None N/A self num_valid_wpt N/A N/A N/A N/A self str_args append wpts N/A n N/A xrange 0 N/A self num_valid_wpt N/A N/A N/A N/A self wpts N/A n N/A N/A self _parse D304 N/A N/A self unparsed N/A N/A self unparsed N/A 1 N/A N/A DeviceNotSupportedError N/A Exception N/A N/A 
    Raised device capabilites lack capabilites
    to complete request.
     N/A