kifield/kifield.py
def insert_part_fields_into_xlsx(
    part_fields_dict, filename, recurse, group_components, backup, no_range
):
    """Insert the fields in the extracted part dictionary into an XLSX spreadsheet."""

    logger.log(
        DEBUG_OVERVIEW, "Inserting extracted fields into XLSX file {}.".format(filename)
    )

    if backup:
        create_backup(filename)

    # Either insert fields into an existing workbook, or use an empty one.
    try:
        wb = pyxl.load_workbook(filename, data_only=True)
    except IOError:
        wb = None

    wb = insert_part_fields_into_wb(part_fields_dict, wb)

    if group_components:
        wb = group_wb(wb, no_range)

    wb.save(filename)
Insert the fields in the extracted part dictionary into an XLSX spreadsheet.
Insert the fields in the extracted part dictionary into an XLSX spreadsheet.
Insert the fields in the extracted part dictionary into an XLSX spreadsheet .
def insert_part_fields_into_xlsx(
    part_fields_dict, filename, recurse, group_components, backup, no_range
):
    logger.log(
        DEBUG_OVERVIEW, "Inserting extracted fields into XLSX file {}.".format(filename)
    )
    if backup:
        create_backup(filename)
    try:
        wb = pyxl.load_workbook(filename, data_only=True)
    except IOError:
        wb = None
    wb = insert_part_fields_into_wb(part_fields_dict, wb)
    if group_components:
        wb = group_wb(wb, no_range)
    wb.save(filename)
def insert_part_fields_into_xlsx ( part_fields_dict , filename , recurse , group_components , backup , no_range ) : logger . log ( DEBUG_OVERVIEW , "Inserting extracted fields into XLSX file {}." . format ( filename ) ) if backup : create_backup ( filename ) try : wb = pyxl . load_workbook ( filename , data_only = True ) except IOError : wb = None wb = insert_part_fields_into_wb ( part_fields_dict , wb ) if group_components : wb = group_wb ( wb , no_range ) wb . save ( filename )
Insert the fields in the extracted part dictionary into an XLSX spreadsheet.
Insert the fields in the extracted part dictionary into an XLSX spreadsheet .
"""Insert the fields in the extracted part dictionary into an XLSX spreadsheet.""" # Either insert fields into an existing workbook, or use an empty one.
part_fields_dict
filename
recurse
group_components
backup
no_range