def base_uri(host, is_ssl=False):
    """ return the host uri """
    if is_ssl:
        scheme = "https"
    else:
        scheme = "http"
    return "%s://%s" % (scheme, host)
dataset/ETHPy150Open benoitc/hroute/hroute/util.py/base_uri/original