xsdata.formats.dataclass.utils module¶ xsdata.formats.dataclass.utils.safe_snake(string, default='value')[source]¶ Normalize the given string to make it safe for python source code. Return or prepend the default value if after all filters the result is invalid. Parameters string (str) – default (str) – Return type str