Skip to content

Instantly share code, notes, and snippets.

View mannyanebi's full-sized avatar
🔥
Stay Awesome!

Emmanuel Anebi mannyanebi

🔥
Stay Awesome!
View GitHub Profile
@martin056
martin056 / deep_transform.py
Created May 28, 2018 18:12
Deep snake_case and camelCase transformations
import re
from typing import Dict, Callable, Optional
def to_camel_case(snake_case_str: str) -> str:
"""
Transforms snake_case to camelCase
"""
components = snake_case_str.split('_')
titled_components = ''.join(x.title() for x in components[1:])