Check if given value is a valid host string.

    :param value: a value to test
    :returns: True if the value is valid

def is_valid_host(value):
    """Check if given value is a valid host string.

    :param value: a value to test
    :returns: True if the value is valid
    """
    host_validators = validators.ipv4, validators.ipv6, validators.domain
    return any(f(value) for f in host_validators)