GeneralUtils module¶
-
GeneralUtils.ask_confirmation(message='Are you sure you want to continue?')¶ - Return type
bool
-
GeneralUtils.choose_directory()¶ - Return type
str
-
GeneralUtils.choose_file(name_filters)¶ - Return type
str
-
GeneralUtils.choose_files(name_filters)¶ - Return type
list
-
GeneralUtils.choose_save(name_filters)¶ - Return type
str
-
GeneralUtils.get_major_report_type(report_type)¶ Returns a major report type that a report type falls under
- Return type
-
GeneralUtils.get_other_file_dir(base_path, vendor_name)¶ - Return type
str
-
GeneralUtils.get_other_file_name(vendor_name, report_type, begin_date, end_date)¶ - Return type
str
-
GeneralUtils.get_special_file_dir(base_path, vendor_name)¶ - Return type
str
-
GeneralUtils.get_special_file_name(vendor_name, report_type, begin_date, end_date)¶ - Return type
str
-
GeneralUtils.get_yearly_file_dir(base_path, vendor_name, begin_date)¶ - Return type
str
-
GeneralUtils.get_yearly_file_name(vendor_name, report_type, begin_date)¶ - Return type
str
-
GeneralUtils.open_file_or_dir(target_path)¶
-
GeneralUtils.open_in_browser(url)¶
-
GeneralUtils.read_json_file(file_path)¶ - Return type
str
-
GeneralUtils.save_data_as_tsv(file_name, data)¶ Saves data in a TSV file
- Parameters
file_name (
str) – the name and location to save the results atdata (
Sequence[Any]) – the data to save in the file
-
GeneralUtils.save_json_file(file_dir, file_name, json_string)¶
-
GeneralUtils.show_message(message)¶