Module Expr Str Import alias Import alias Import alias FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareLt NameLoad BinOpSub Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad Str attr Assign NameStore ListLoad For NameStore NameLoad body If CompareNotEq SubscriptLoad NameLoad Slice Num Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Print Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Print BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Print Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd CompareNotEq NameLoad Str CompareNotEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list
N/A N/A Simple tools to work with files, paths etc. N/A glob N/A os N/A shutil get_camelcase_parts N/A N/A camelcase_word N/A N/A N/A breakpoints N/A N/A N/A i char N/A enumerate camelcase_word N/A N/A N/A char N/A string uppercase N/A N/A N/A N/A breakpoints append i N/A parts N/A N/A N/A i br N/A enumerate breakpoints N/A N/A start N/A breakpoints N/A i N/A N/A i N/A N/A len breakpoints 1 N/A N/A end N/A breakpoints N/A N/A i 1 N/A N/A N/A parts append N/A camelcase_word N/A start end N/A N/A N/A N/A parts append N/A camelcase_word N/A start N/A parts N/A walk N/A N/A folder extension N/A N/A N/A A simple non-recursive ``walk`` function to collect files with a given extension. N/A N/A N/A folder endswith / N/A N/A folder N/A folder N/A -1 N/A N/A N/A glob glob N/A %s/*.%s N/A folder extension N/A get_names_from_path N/A N/A fontpath N/A N/A N/A Parse underscore(or hyphen)-separated font file names into ``family`` and ``style`` names. N/A _file N/A N/A N/A os path basename fontpath N/A _file_name N/A N/A N/A N/A os path splitext _file N/A 0 N/A N/A N/A N/A family_name style_name N/A N/A _file_name split _ N/A N/A N/A ValueError N/A N/A N/A family_name style_name N/A N/A _file_name split - N/A style_name N/A get_parameters_from_style style_name N/A style_name N/A N/A join style_name N/A N/A family_name style_name N/A get_parameters_from_style N/A N/A style_name N/A N/A N/A Get individual parameters from the style name of a font. N/A parameters N/A N/A style_name split - N/A parameters N/A get_parameters_from_path N/A N/A fontpath N/A N/A N/A Get individual parameters from the path of a font file. N/A N/A family_name style_name N/A get_names_from_path fontpath N/A parameters N/A N/A style_name split - N/A parameters N/A read_names_list_from_file N/A N/A filepath N/A N/A N/A Read pairs of glyph names from a simple text file. N/A lines_raw N/A N/A N/A open filepath r readlines N/A names_list N/A N/A line lines_raw N/A N/A N/A N/A line N/A 1 # N/A N/A N/A old_name new_name N/A N/A line split N/A old_name N/A N/A old_name strip N/A new_name N/A N/A new_name strip N/A N/A N/A names_list append N/A old_name new_name N/A names_list N/A delete_files N/A N/A files_list N/A N/A N/A Delete the files at the file paths in the list. Also works with folders (ufo files). N/A file_path files_list N/A N/A N/A N/A N/A os path isdir file_path N/A N/A N/A N/A shutil rmtree file_path N/A N/A N/A N/A os remove file_path N/A rename_file N/A N/A filepath new_name overwrite delete N/A True True N/A N/A Rename a file or folder, and save it with the new name. N/A N/A _dir _file N/A N/A N/A os path split filepath N/A _ext N/A N/A N/A N/A os path splitext _file N/A 1 N/A _new_file_name N/A new_name _ext N/A _new_path N/A N/A N/A os path join _dir _new_file_name N/A renaming file... N/A N/A N/A N/A os path isdir filepath N/A N/A N/A N/A N/A os path exists _new_path N/A N/A overwrite N/A N/A N/A N/A shutil rmtree _new_path N/A N/A 	saving %s as %s... N/A filepath _new_path N/A N/A N/A shutil copytree filepath _new_path N/A delete N/A N/A N/A 	deleting %s... filepath N/A N/A N/A shutil rmtree filepath N/A N/A N/A 	saving %s as %s... N/A filepath _new_path N/A N/A N/A shutil copy filepath _new_path N/A delete N/A N/A N/A 	deleting %s... filepath N/A N/A N/A os remove filepath N/A ...done.
 N/A copy_files N/A N/A source_path dest_path verbose N/A False N/A N/A "Copy all files from one folder to another. N/A N/A root dirs files N/A N/A os walk source_path N/A N/A dest N/A dest_path N/A N/A root replace source_path N/A N/A N/A N/A N/A os path isdir dest N/A N/A N/A N/A os mkdir dest N/A f files N/A N/A N/A file_name extension N/A N/A N/A os path splitext f N/A N/A N/A extension .pyc N/A N/A f N/A 0 . N/A N/A old_loc N/A N/A N/A os path join root f N/A new_loc N/A N/A N/A os path join dest f N/A N/A N/A N/A N/A os path isfile new_loc N/A N/A verbose N/A N/A N/A copying file from %s to %s. N/A old_loc new_loc N/A N/A N/A shutil copy2 old_loc new_loc N/A