MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / to_invert_case

Function to_invert_case

src/core/service/functions.py:31–33  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

29
30
31def to_invert_case(s: str) -> str:
32 s = re.sub(invert_case_regex, "_", s).lower()
33 return " ".join(word.capitalize() for word in s.split("_"))
34
35
36def filter_headers(request: Request) -> dict[str, str]:

Callers 1

format_pydantic_errorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected