sepal_ui.scripts.utils.normalize_str#

sepal_ui.scripts.utils.normalize_str(msg, folder=True)[source]#

Normalize an str to make it compatible with file naming (no spaces, special chars …etc).

Params:

msg: the string to sanitise folder: if the name will be used for folder naming or for display. if display, <’> and < > characters will be kept

Returns:

the modified str

Parameters:
  • msg (str)

  • folder (bool)

Return type:

str