skillfed

netifaces-plus

Portable network interface information (Supports Python 3.6 and higher)

netifaces-plus v0.12.5 119.5K downloads/30d#12,070 on PyPI14
Permissive license MIT License AGING released

What it is and what it does

netifaces-plus is a maintained fork of the archived netifaces library that provides a cross-platform way to query network interface information from Python. It wraps low-level OS networking APIs (getifaddrs on Unix-like systems, Windows API on Windows) so you don't have to write platform-specific code. The library returns dictionaries keyed by address family (AF_INET for IPv4, AF_INET6 for IPv6, AF_LINK for hardware addresses), allowing you to retrieve all addresses, netmasks, broadcast addresses, MAC addresses, and gateway information for each interface.

The fork modernizes the original package with type hints, support for Python 3.9 and higher, and GitHub Actions-based wheel builds. It has no runtime dependencies and compiles to a C extension. The maintainer recommends ifaddr as a more modern pure-Python alternative, but netifaces-plus remains useful for projects already using the netifaces API or requiring direct access to low-level interface details.

Use it for:

  • Retrieve the local IPv4 or IPv6 address of a machine for logging, configuration, or service discovery.
  • Get MAC addresses for network interfaces to identify hardware or enforce network policies.
  • Query default gateway information for routing decisions or network diagnostics.
  • List all active network interfaces on a system to detect connectivity or enumerate available adapters.
  • Build cross-platform network utilities that need interface details without writing OS-specific code.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Retrieves network interface information (addresses, gateways, MAC addresses) across Windows, macOS, and Linux in a portable way without platform-specific code.

Yes, if you need portable network interface querying and are comfortable with C extension compilation. The MIT license and zero runtime dependencies make it low-risk. However, consider the aging maintenance status (286 days since last release) and the maintainer's own recommendation of ifaddr for new projects. Install if you're maintaining existing code using netifaces or need direct low-level interface access; otherwise evaluate ifaddr first.

Install

netifaces-plus on PyPI

pip

pip install netifaces-plus

uv

uv add netifaces-plus

poetry

poetry add netifaces-plus

Installing netifaces-plus

Before you install

Medium install friction due to C extension compilation required on all platforms. Package is aging (286 days since last release) but repository is active and not archived. Wheels are provided for Python 3.10–3.12 across major platforms (macOS, Linux, Windows), reducing compilation burden on supported versions.

License in practice

MIT License (permissive) places no restrictions on commercial or private use, modification, or redistribution.

Quickstart

pip install netifaces-plus

import netifaces

# List all network interfaces
print(netifaces.interfaces())

# Get addresses for a specific interface
addrs = netifaces.ifaddresses('eth0')
print(addrs[netifaces.AF_INET])  # IPv4 addresses

# Get gateway information
gws = netifaces.gateways()
print(gws['default'][netifaces.AF_INET])

Requires C compiler and development headers for your platform to build the extension during installation, unless a pre-built wheel is available for your Python version and OS.

Verify before relying

  • Whether the maintainer actively backports security fixes or only applies merged pull requests from the archived upstream.
  • Performance characteristics when querying interfaces on systems with many network adapters.
  • Compatibility with modern Python 3.13 and 3.14 in practice (classifiers list support but package is aging).

Package facts

License MIT License (permissive)
Python support supports the current Python release (>=3.6)
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance aging — 286 days since the last release
Last repo commit
First released
Downloads 119,520/month — #12,070 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: netifaces_plus-0.12.5-cp310-cp310-macosx_10_9_universal2.whl; netifaces_plus-0.12.5-cp310-cp310-macosx_10_9_x86_64.whl; netifaces_plus-0.12.5-cp310-cp310-macosx_11_0_arm64.whl; netifaces_plus-0.12.5-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; netifaces_plus-0.12.5-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; netifaces_plus-0.12.5-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl; netifaces_plus-0.12.5-cp310-cp310-win32.whl; netifaces_plus-0.12.5-cp310-cp310-win_amd64.whl; netifaces_plus-0.12.5-cp310-cp310-win_arm64.whl; netifaces_plus-0.12.5-cp311-cp311-macosx_10_9_universal2.whl; netifaces_plus-0.12.5-cp311-cp311-macosx_10_9_x86_64.whl; netifaces_plus-0.12.5-cp311-cp311-macosx_11_0_arm64.whl; netifaces_plus-0.12.5-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; netifaces_plus-0.12.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; netifaces_plus-0.12.5-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl; netifaces_plus-0.12.5-cp311-cp311-win32.whl; netifaces_plus-0.12.5-cp311-cp311-win_amd64.whl; netifaces_plus-0.12.5-cp311-cp311-win_arm64.whl; netifaces_plus-0.12.5-cp312-cp312-macosx_10_13_universal2.whl; netifaces_plus-0.12.5-cp312-cp312-macosx_10_13_x86_64.whl

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: System :: Networking

Tags

network interface addressesget MAC address pythonportable network infolist network interfacesgateway informationIPv4 IPv6 addressesnetwork adapter details
network-interfacescross-platformsystem-info

More Networking packages