iode.split_list

iode.split_list(list_txt: str)[source]

Split an IODE list written as a string and return a Python list. By default, the delimiters are , ; and any whitespace.

Parameters:
list_txt: str

IODE list written as a string.

Returns:
list(str)

Examples

>>> from iode import split_list
>>> well_written_list = "A;B;C;D;E;F;G;H"
>>> split_list(well_written_list)
['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H']
>>> badly_written_list = "  ,A,B C;D  E,,,F;, G;H,  "
>>> split_list(badly_written_list)
['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H']