MCPcopy
hub / github.com/ycd/manage-fastapi / camel_to_snake

Function camel_to_snake

manage_fastapi/helpers.py:9–10  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

7
8
9def camel_to_snake(text: str) -> str:
10 return re.sub(r"(?<!^)(?=[A-Z])", "_", text).lower()
11
12
13def question(choices: EnumType) -> questionary.Question:

Callers 1

questionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected