bec_widgets.utils.name_utils ============================ .. py:module:: bec_widgets.utils.name_utils Functions --------- .. autoapisummary:: bec_widgets.utils.name_utils.pascal_to_snake bec_widgets.utils.name_utils.sanitize_namespace Module Contents --------------- .. py:function:: pascal_to_snake(name: str) -> str Convert PascalCase to snake_case. :param name: The name to be converted. :type name: str :returns: The converted name. :rtype: str .. py:function:: sanitize_namespace(namespace: str | None) -> str | None Clean user-provided namespace labels for filesystem compatibility. :param namespace: Arbitrary namespace identifier supplied by the caller. :type namespace: str | None :returns: Sanitized namespace containing only safe characters, or ``None`` when the input is empty. :rtype: str | None