src/sasctl/_services/model_publish.py
def _publish_name(name):
        """Create a valid module name from an input string.

        Model Publishing only permits names that adhere to the following
        restrictions:
            - Name must start with a letter or an underscore.
            - Name may not contain any spaces or special characters other than
              underscore.

        Parameters
        ----------
        name : str

        Returns
        -------
        str

        """
        # Remove all non-word characters
        name = re.sub(r'[^\w]', '', str(name))

        # Add a leading underscore if name starts with a digit
        if re.match(r'\d', name):
            name = '_' + name

        return name
Create a valid module name from an input string.

        Model Publishing only permits names that adhere to the following
        restrictions:
            - Name must start with a letter or an underscore.
            - Name may not contain any spaces or special characters other than
              underscore.

        Parameters
        ----------
        name : str

        Returns
        -------
        str

        
Create a valid module name from an input string.
Model Publishing only permits names that adhere to the following
restrictions:
Name must start with a letter or an underscore.
Name may not contain any spaces or special characters other than
underscore.

Parameters

name : str

Returns

str
Create a valid module name from an input string . Model Publishing only permits names that adhere to the following restrictions : Name must start with a letter or an underscore . Name may not contain any spaces or special characters other than underscore . Parameters name : str Returns str
def _publish_name(name):
        name = re.sub(r'[^\w]', '', str(name))
        if re.match(r'\d', name):
            name = '_' + name
        return name
def _publish_name ( name ) : name = re . sub ( r'[^\w]' , '' , str ( name ) ) if re . match ( r'\d' , name ) : name = '_' + name return name
Create a valid module name from an input string.
Create a valid module name from an input string .
"""Create a valid module name from an input string.

        Model Publishing only permits names that adhere to the following
        restrictions:
            - Name must start with a letter or an underscore.
            - Name may not contain any spaces or special characters other than
              underscore.

        Parameters
        ----------
        name : str

        Returns
        -------
        str

        """ # Remove all non-word characters # Add a leading underscore if name starts with a digit
name