{"library":"netifaces-plus","title":"netifaces-plus","description":"A portable library to retrieve network interface information (IP addresses, MAC addresses, gateways, etc.) on Unix, Windows, and macOS. Version 0.12.5 supports Python >=3.6. Fork of the unmaintained netifaces with modern Python support and additional features. Released irregularly.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install netifaces-plus"],"cli":null},"imports":["import netifaces","netifaces.interfaces()","netifaces.gateways()"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import netifaces\n\n# List all network interface names\nifaces = netifaces.interfaces()\nprint('Interfaces:', ifaces)\n\n# Get addresses for a specific interface (e.g., 'eth0' or 'en0')\nif ifaces:\n    iface = ifaces[0]\n    addrs = netifaces.ifaddresses(iface)\n    print(f'Addresses for {iface}:', addrs)\n\n# Get default gateways\nprint('Gateways:', netifaces.gateways())","lang":"python","description":"Basic usage: list interfaces, get addresses for first interface, and show gateways.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}