def parse_uri(uri, endpoint_uri):
    """ Parse a URI into a Route namedtuple

    :param uri: URI or relative URI
    :type uri: str
    :param endpoint_uri: URI of the endpoint
    :type endpoint_uri: str
    :return: Parsed route
    :rtype: _Route
    """
    temp_parse = urlparse(uri)
    return _Route(
        urljoin(endpoint_uri, temp_parse.path),
        parse_qs(temp_parse.query)
    )
def parse_uri ( uri , endpoint_uri ) : temp_parse = urlparse ( uri ) return _Route ( urljoin ( endpoint_uri , temp_parse . path ) , parse_qs ( temp_parse . query ) )
Parse a URI into a Route namedtuple

    :param uri: URI or relative URI
    :type uri: str
    :param endpoint_uri: URI of the endpoint
    :type endpoint_uri: str
    :return: Parsed route
    :rtype: _Route