Module Expr Str Import alias Import alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Slice Num Num Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Continue Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Continue Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
 A helper class to get the files generated from thrift IDL files.

 N/A os N/A re N/A console ThriftHelper N/A object N/A __init__ N/A N/A self path N/A N/A N/A N/A self path path N/A N/A N/A N/A N/A os path isfile path N/A N/A N/A N/A console error_exit N/A %s is not a valid file. path N/A N/A self thrift_name N/A N/A N/A N/A os path basename path N/A 0 -7 N/A N/A self package_name N/A N/A N/A self has_constants False N/A N/A self enums N/A N/A N/A self structs N/A N/A N/A self exceptions N/A N/A N/A self services N/A N/A N/A N/A self _parse_file N/A _parse_file N/A N/A self N/A N/A N/A line N/A open N/A self path N/A N/A line N/A N/A line strip N/A N/A N/A N/A line startswith // N/A N/A line startswith # N/A N/A N/A pos N/A N/A line find // N/A N/A pos -1 N/A N/A line N/A line N/A 0 pos N/A pos N/A N/A line find # N/A N/A pos -1 N/A N/A line N/A line N/A 0 pos N/A matched N/A N/A re match ^namespace ([0-9_a-zA-Z]+) ([0-9_a-zA-Z.]+) line N/A matched N/A N/A N/A lang package N/A N/A matched groups N/A N/A N/A self package_name N/A lang package N/A N/A matched N/A N/A re match (const|struct|service|enum|exception) ([0-9_a-zA-Z]+) line N/A N/A matched N/A N/A N/A N/A kw name N/A N/A matched groups N/A N/A kw const N/A N/A N/A self has_constants True N/A N/A N/A kw struct N/A N/A N/A N/A N/A self structs append name N/A N/A N/A kw service N/A N/A N/A N/A N/A self services append name N/A N/A N/A kw enum N/A N/A N/A N/A N/A self enums append name N/A N/A N/A kw exception N/A N/A N/A N/A N/A self exceptions append name N/A N/A N/A self has_constants N/A self structs N/A self enums N/A self exceptions N/A self services N/A N/A N/A N/A N/A N/A console error_exit N/A %s is an empty thrift file. N/A self path N/A get_generated_cpp_files N/A N/A self N/A N/A N/A files N/A N/A %s_constants.cpp N/A self thrift_name N/A %s_constants.h N/A self thrift_name N/A %s_types.cpp N/A self thrift_name N/A %s_types.h N/A self thrift_name N/A service N/A self services N/A N/A N/A N/A files append N/A %s.cpp service N/A N/A N/A files append N/A %s.h service N/A files N/A get_generated_java_files N/A N/A self N/A N/A N/A java_package N/A N/A java N/A self package_name N/A N/A java_package N/A N/A self package_name N/A java N/A base_path N/A N/A N/A os path join N/A N/A java_package split . N/A files N/A N/A N/A self has_constants N/A N/A N/A N/A files append Constants.java N/A enum N/A self enums N/A N/A N/A N/A files append N/A %s.java enum N/A struct N/A self structs N/A N/A N/A N/A files append N/A %s.java struct N/A exception N/A self exceptions N/A N/A N/A N/A files append N/A %s.java exception N/A service N/A self services N/A N/A N/A N/A files append N/A %s.java service N/A files N/A N/A N/A N/A os path join base_path f N/A f files N/A files N/A get_generated_py_files N/A N/A self N/A N/A N/A py_package N/A self thrift_name N/A N/A py N/A self package_name N/A N/A py_package N/A N/A self package_name N/A py N/A base_path N/A N/A N/A os path join N/A N/A py_package split . N/A files N/A constants.py ttypes.py N/A service N/A self services N/A N/A N/A N/A files append N/A %s.py service N/A files N/A N/A N/A N/A os path join base_path f N/A f files N/A files N/A N/A