def build_path_pattern(path):

    path = re.sub(r'\{(\w+)\}', r'(?P<\1>[\w\-]+)', path)
    return re.compile('^' + path + '/?$')
Given a path description string,
dataset/ETHPy150Open heiskr/sagefy/server/framework/routes.py/build_path_pattern