rcx_tk.utils

Functions

validate_filename(→ bool)

Validate a filename.

replace_spaces(→ str)

Replaces spaces with underscores in Filename.

concat_str(→ str)

Join values that can be cast to string together into single string, elements separated by ,.

Module Contents

rcx_tk.utils.validate_filename(file_name: str) bool[source]

Validate a filename.

Parameters:

file_name (str) – Filename to validate.

Returns:

Validity of the filename.

Return type:

bool

rcx_tk.utils.replace_spaces(file_name: str) str[source]

Replaces spaces with underscores in Filename.

Parameters:

file_name (str) – The filename.

Returns:

The replaced filename.

Return type:

str

rcx_tk.utils.concat_str(value: Any) str[source]

Join values that can be cast to string together into single string, elements separated by ,.

Parameters:

value (Any) – Set of items to concatenate

Returns:

Joined result string.

Return type:

str