Skip to content

v0.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Jul 18:02

Added

  • Complete local-interface membership lookups. interfaces_for() yields
    every adapter matching an interface, exact address/IPInterface, network,
    or MACAddress, while interface_for() keeps the first-match scalar
    contract. is_local_address() distinguishes an assigned or loopback address
    from one that is merely private, link-local, on-link or reachable.
  • Static parser contracts. TypeForm overloads preserve union and concrete
    result types, callable builders, and explicit try_parse(default=...)
    fallbacks. IPInterfaceLike now complements the existing input aliases.

Changed

  • interface_for() accepts networks and MAC addresses, including MAC text and
    6-byte packed values. Integer MACs remain explicit MACAddress values. Its legacy
    strict=False synthetic fallback remains address-only because a missing
    network or MAC has no honest single-interface representation.
  • The IP input aliases now include packed bytes plus the exact stdlib
    two-tuple and existing-interface forms accepted by the interface/network
    factories. is_valid() is documented as a boolean convertibility check
    rather than an unsound type guard for the original object.

Full Changelog: v0.0.2...v0.1.0