{"categories":[{"label":"Networking","url":"https://skillfed.io/packages/category/system-networking"}],"enrichment":{"capability":"Retrieves network interface information (addresses, gateways, interface names) across Linux, macOS, and Windows with type annotations and a modernized API.","skillfed_tags":["network-interfaces","system-info","cross-platform"],"use_cases":["Enumerate all network interfaces and their IP addresses on a system for inventory or diagnostic tools.","Retrieve the default gateway for network routing decisions in cross-platform applications.","Query interface-specific address information (IPv4, IPv6, MAC) for network configuration scripts.","Build system monitoring tools that need to detect network adapter changes or status.","Develop network-aware applications that must discover local interface details at runtime."],"what_it_does":"netifaces2 is a rewrite of the abandoned original netifaces library, providing a way to query network interface information (IP addresses, gateways, interface names) in Python across Linux, macOS, and Windows. It aims to be a drop-in replacement with the same API, but adds type annotations and support for current Python versions. The package wraps system calls via Rust bindings to retrieve network configuration data.\n\nThe library exposes functions like interfaces(), ifaddresses(), gateways(), and default_gateway() to enumerate network adapters and retrieve their addresses and routing information. However, the gateways API has known limitations: it requires /proc/net/route or the ip tool on Linux and is non-functional on Windows. The AF_ constants now reflect platform-native values rather than being abstracted, which may require code changes when migrating from the original netifaces.","worth_installing":"No. The repository is archived and abandoned as of 2024-09-04 with no active maintenance. While the 0.0.22 release is stable and has no known vulnerabilities, the lack of ongoing support, known API gaps (non-functional Windows gateways, incomplete address families), and medium install friction make it unsuitable for new projects. Consider only if you are maintaining legacy code already using netifaces2 and need Python 3.6+ support."},"id":"netifaces2","links":{"html":"https://skillfed.io/packages/netifaces2","md":"https://skillfed.io/packages/netifaces2.md","pypi":"https://pypi.org/project/netifaces2/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2024-02-28","license_spdx":null,"license_treatment":"permissive","name":"netifaces2","python_support":"supports_current","summary":"Portable network interface information"},"popularity":{"monthly_downloads":235569,"position":8997,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.0.22"}
