barker/barker/barker/schemas/__init__.py

4 lines
150 B
Python
Raw Normal View History

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