atomica.excel.cell_get_string

atomica.excel.cell_get_string(cell, allow_empty=False)[source]

Return string value from cell

This function checks if a cell contains a string. If it does, the stripped value will be returned. Otherwise, an informative error will be raised

Note that the string type is determined from the cell’s value rather than the openpyxl cell data type.

Parameters

cell – An openpyxl cell

Return type

str

Returns

A string with the contents of the cell