Utils
The utils module
gamslib.objectcsv.utils
¶
Utility functions for the objectcsv module.
Provides helpers for finding object folders, extracting titles from TEI and LIDO files, and splitting CSV entries into lists.
split_entry
¶
Split a string of CSV entries into a list using semicolon as delimiter.
| PARAMETER | DESCRIPTION |
|---|---|
entry
|
String containing CSV entries separated by semicolons.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[str]
|
list[str]: List of trimmed entries. Returns an empty list if entry is empty. |
Notes
- Leading and trailing whitespace is removed from each entry.
- Only non-empty entries are included in the result.