Registry / devops / types-netifaces

types-netifaces

JSON →
library0.11.0.20260408pypypiunverified

Third-party typing stubs for netifaces, providing type hints for the netifaces library. Currently at version 0.11.0.20260408, maintained by typeshed and updated periodically to match Python and netifaces changes.

pip install types-netifaces
INSTALL
IMPORT
SIG · TYPES-NETIFACES
T
types-netifaces
devopspythonv0.11.0.20260408
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

netifaces-stubs
import netifaces-stubs
import netifaces

Basic usage: import netifaces and call its functions. types-netifaces provides type hints; no extra steps needed.

import netifaces # Get default gateway gateways = netifaces.gateways() print(gateways) # List interfaces interfaces = netifaces.interfaces() print(interfaces) # Get addresses for an interface if interfaces: addrs = netifaces.ifaddresses(interfaces[0]) print(addrs)
Debug
Known issues
gotchatypes-netifaces only provides type stubs, not the netifaces library itself. Ensure netifaces is also installed at runtime.
fix
Install both: pip install netifaces types-netifaces
affects: all
deprecatedOlder versions (pre-0.10) used a different stub layout. If migrating, reinstall the latest version.
fix
Upgrade: pip install --upgrade types-netifaces
affects: <0.10
Upgrade
Version history
0.11.0.20260408latest on PyPI · released Apr 8, 2026
Audit
Dependencies
netifacesrequiredThe stubs provide typing for the netifaces library's public API.
Agent activity
6 hits · last 30 days
node
6
Resources
types-netifaces — pip install types-netifaces · libregistry