barker/barker/barker/schemas/__init__.py

4 lines
150 B
Python

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