Make python attribute name out of a given string.
(string: str)
| 405 | |
| 406 | |
| 407 | def make_python_name(string: str) -> str: |
| 408 | """Make python attribute name out of a given string.""" |
| 409 | string = re.sub(PYTHON_REPLACE_REGEX, "", string.replace(" ", "_")) |
| 410 | return re.sub(ALPHA_REGEX, "", string).lower() |
| 411 | |
| 412 | |
| 413 | def make_python_docstring(string: str) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…