Naming¶
- CAMEL_TO_SNAKE = re.compile('((?<=[a-z0-9])[A-Z]|(?!^)[A-Z](?=[a-z]))')¶
Convert camel case to snake case
courtesy of: https://stackoverflow.com/a/12867228
- camel_to_snake(name: str) str¶
Convert camel case to snake case
courtesy of: https://stackoverflow.com/a/12867228
- module_case(name: str) str¶
Returns name that can be used as a python module, used for referring to generated pydantic and linkml models.
- Replaces with underscores:
.
- version_module_case(name: str) str¶
module_case()except ensure that it starts with “v”