brewman/brewman/brewman/schemas/__init__.py

4 lines
142 B
Python

def to_camel(string: str) -> str:
first, *others = string.split("_")
return "".join([first] + [word.capitalize() for word in others])