Functional Weave
Code in Python

net.ipv4@1.0.0

impl/python/is_ipv4.py

194 bytes · the Python implementation · view raw

Imports name this capability’s declared dependencies, which fune builds next to it in your project; each one links to its page.

from .net_ipv4_parse_ipv4 import ipv4_value  ← parseIpv4, another function of this group · built into the same file, even by a slim install


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