Added
- Complete local-interface membership lookups.
interfaces_for()yields
every adapter matching an interface, exact address/IPInterface, network,
orMACAddress, whileinterface_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.
TypeFormoverloads preserve union and concrete
result types, callable builders, and explicittry_parse(default=...)
fallbacks.IPInterfaceLikenow complements the existing input aliases.
Changed
interface_for()accepts networks and MAC addresses, including MAC text and
6-byte packed values. Integer MACs remain explicitMACAddressvalues. Its legacy
strict=Falsesynthetic 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