import inflection


def camelize(name):
    return ''.join(map(lambda x: inflection.camelize(x.replace('{', '').replace('}', ''), uppercase_first_letter=True), name.strip('/').split('.')))

def camelize_path(path):
    return ''.join(map(lambda x: inflection.camelize(x.replace('{', '').replace('}', ''), uppercase_first_letter=True), path.strip('/').split('/')))
