ucscsdk/ucscgenutils.py
def convert_to_python_var_name(name):
    """converts a UcsCentral server variable to python recommended format

    Args:
        name (str): string to be converted to python recommended format
    """

    pattern = re.compile(r"(?<!^)(?=[A-Z])")
    python_var = re.sub(pattern, '_', name).lower()
    if python_var != "class":
        return python_var
    else:
        return "class_"
converts a UcsCentral server variable to python recommended format

    Args:
        name (str): string to be converted to python recommended format
    
converts a UcsCentral server variable to python recommended format
converts a UcsCentral server variable to python recommended format
def convert_to_python_var_name(name):
    pattern = re.compile(r"(?<!^)(?=[A-Z])")
    python_var = re.sub(pattern, '_', name).lower()
    if python_var != "class":
        return python_var
    else:
        return "class_"
def convert_to_python_var_name ( name ) : pattern = re . compile ( r"(?<!^)(?=[A-Z])" ) python_var = re . sub ( pattern , '_' , name ) . lower ( ) if python_var != "class" : return python_var else : return "class_"
converts a UcsCentral server variable to python recommended format
converts a UcsCentral server variable to python recommended format
"""converts a UcsCentral server variable to python recommended format

    Args:
        name (str): string to be converted to python recommended format
    """
name
string to be converted to python recommended format
string to be converted to python recommended format