def expand(template, variables=None):
    if variables is None:
        variables = {}
    return patterns.sub(functools.partial(_replace, variables), template)


# Utils
Expand a URL template string using the passed variables
dataset/ETHPy150Open codeinthehole/purl/purl/template.py/expand