def host_is_local(host: str) -> bool:
    """
    Tells whether given host is local.

    :param host: host name or address
    :return: True if host is local otherwise False
    """

    local_names = {
        "localhost",
        "127.0.0.1",
    }

    is_local = any(local_name in host for local_name in local_names)
    return is_local