from .net_ipv4_parse_ipv4 import ipv4_value def is_ipv4(text: str) -> bool: """True exactly when parse_ipv4 would accept the text; never raises.""" return ipv4_value(text) is not None