bkbit.model_converters.sheets_converter module

bkbit.model_converters.sheets_converter.adding_template(schema: SchemaDefinition, template_yaml) SchemaDefinition[source]
bkbit.model_converters.sheets_converter.bican_fix(schema: SchemaDefinition) SchemaDefinition[source]

Apply BICAN specific fixes to the schema :param schema: :return:

bkbit.model_converters.sheets_converter.download_google_sheet_as_tsv(sheet_id, save_path, sheet_gid)[source]
bkbit.model_converters.sheets_converter.download_gsheets(gsheet_id, sheets, gsheet_download_dir)[source]
bkbit.model_converters.sheets_converter.fix_tsv_files(tsv_files, inlined=False, ref_by_ind=True)[source]

Fixing all the tsv files, modyfying the range column, and adding any_of, exactly_one_of, and inlined columns. :param tsv_files: list of tsv files :param inlined: if True, the inlined column will be added “param ref_by_ind: if True (and if inlined is True) the range will be modified (adding string) to be able to reference by index :return: list of fixed tsv files

bkbit.model_converters.sheets_converter.read_and_parse_gsheet_yaml(gsheet_yaml)[source]