Skip to main content

is_valid_ipv6_address

Return whether the ip_addr object is a valid IPv6 address.

def is_valid_ipv6_address(
ip_addr: Union[str, IPv6Address]
) - > boolean

Return whether the ip_addr object is a valid IPv6 address.

Parameters

NameTypeDescription
ip_addrUnion[str, IPv6Address]The IP address object or string representation to be validated

Returns

TypeDescription
booleanTrue if the input is a valid IPv6Address object or a string that can be parsed as an IPv6 address, False otherwise