{
    "mode": "pydoc",
    "parameter": "netifaces",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/netifaces/json",
    "generated": "2026-06-02T15:07:54Z",
    "sections": {
        "NAME": {
            "content": "netifaces\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "gateways",
                    "content": "Obtain a list of the gateways on this machine.\n\nReturns a dict whose keys are equal to the address family constants,\ne.g. netifaces.AFINET, and whose values are a list of tuples of the\nformat (<address>, <interface>, <isdefault>).\n\nThere is also a special entry with the key 'default', which you can use\nto quickly obtain the default gateway for a particular address family.\n\nThere may in general be multiple gateways; different address\nfamilies may have different gateway settings (e.g. AFINET vs AFINET6)\nand on some systems it's also possible to have interface-specific\ndefault gateways.\n"
                },
                {
                    "name": "ifaddresses",
                    "content": "Obtain information about the specified network interface.\n\nReturns a dict whose keys are equal to the address family constants,\ne.g. netifaces.AFINET, and whose values are a list of addresses in\nthat family that are attached to the network interface.\n"
                },
                {
                    "name": "interfaces",
                    "content": "Obtain a list of the interfaces available on this machine.\n"
                }
            ]
        },
        "DATA": {
            "content": "AFAPPLETALK = 5\nAFASH = 18\nAFATMPVC = 8\nAFATMSVC = 20\nAFAX25 = 3\nAFBLUETOOTH = 31\nAFBRIDGE = 7\nAFDECnet = 12\nAFECONET = 19\nAFFILE = 1\nAFINET = 2\nAFINET6 = 10\nAFIPX = 4\nAFIRDA = 23\nAFISDN = 34\nAFKEY = 15\nAFLINK = 17\nAFNETBEUI = 13\nAFNETLINK = 16\nAFNETROM = 6\nAFPACKET = 17\nAFPPPOX = 24\nAFROSE = 11\nAFROUTE = 16\nAFSECURITY = 14\nAFSNA = 22\nAFUNIX = 1\nAFUNSPEC = 0\nAFWANPIPE = 25\nAFX25 = 9\naddressfamilies = {0: 'AFUNSPEC', 1: 'AFFILE', 2: 'AFINET', 3: 'AF...\nversion = '0.11.0'\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/netifaces.cpython-310-x8664-linux-gnu.so\n\n",
            "subsections": []
        }
    },
    "summary": "netifaces",
    "flags": [],
    "examples": [],
    "see_also": []
}