atomica.excel.update_widths

atomica.excel.update_widths(width_dict, column_index, contents)[source]

Keep track of required width for a column

width_dict is a dict that is keyed by column index e.g. 0,1,2 and the value is the length of the longest contents seen for that column

Parameters
  • width_dict (dict) – Storage dictionary

  • column_index (int) – Index of the column value has been inserted in

  • contents (str) – Content, length of which is used to set width

Return type

None