{
    "content": [
        {
            "type": "text",
            "text": "# netifaces (pydoc)\n\n**Summary:** netifaces\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **FUNCTIONS** (1 lines) — 3 subsections\n  - gateways (14 lines)\n  - ifaddresses (6 lines)\n  - interfaces (2 lines)\n- **DATA** (33 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nnetifaces\n\n### FUNCTIONS\n\n#### gateways\n\nObtain 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\n#### ifaddresses\n\nObtain 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\n#### interfaces\n\nObtain a list of the interfaces available on this machine.\n\n### DATA\n\nAFAPPLETALK = 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\n### FILE\n\n/usr/lib/python3/dist-packages/netifaces.cpython-310-x8664-linux-gnu.so\n\n"
        }
    ],
    "structuredContent": {
        "command": "netifaces",
        "section": "",
        "mode": "pydoc",
        "summary": "netifaces",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "gateways",
                        "lines": 14
                    },
                    {
                        "name": "ifaddresses",
                        "lines": 6
                    },
                    {
                        "name": "interfaces",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 33,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}