def expand(self, **values):
        if self.__template is None:
            return URI(None)
        tokens = self._tokeniser.split(self.__template)
        expander = URITemplate._Expander(values)
        out = []
        while tokens:
            token = tokens.pop(0)
            if token == "{":
                expression = tokens.pop(0)
                tokens.pop(0)
                out.append(expander.expand(expression))
            else:
                out.append(token)
        return URI("".join(out))
Expand into a URI using the values supplied
dataset/ETHPy150Open nigelsmall/httpstream/httpstream/rfc6570.py/URITemplate.expand