netifaces - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


Help on module netifaces:

NAME
    netifaces

FUNCTIONS
    gateways(...)
        Obtain a list of the gateways on this machine.

        Returns a dict whose keys are equal to the address family constants,
        e.g. netifaces.AF_INET, and whose values are a list of tuples of the
        format (<address>, <interface>, <is_default>).

        There is also a special entry with the key 'default', which you can use
        to quickly obtain the default gateway for a particular address family.

        There may in general be multiple gateways; different address
        families may have different gateway settings (e.g. AF_INET vs AF_INET6)
        and on some systems it's also possible to have interface-specific
        default gateways.

    ifaddresses(...)
        Obtain information about the specified network interface.

        Returns a dict whose keys are equal to the address family constants,
        e.g. netifaces.AF_INET, and whose values are a list of addresses in
        that family that are attached to the network interface.

    interfaces(...)
        Obtain a list of the interfaces available on this machine.

DATA
    AF_APPLETALK = 5
    AF_ASH = 18
    AF_ATMPVC = 8
    AF_ATMSVC = 20
    AF_AX25 = 3
    AF_BLUETOOTH = 31
    AF_BRIDGE = 7
    AF_DECnet = 12
    AF_ECONET = 19
    AF_FILE = 1
    AF_INET = 2
    AF_INET6 = 10
    AF_IPX = 4
    AF_IRDA = 23
    AF_ISDN = 34
    AF_KEY = 15
    AF_LINK = 17
    AF_NETBEUI = 13
    AF_NETLINK = 16
    AF_NETROM = 6
    AF_PACKET = 17
    AF_PPPOX = 24
    AF_ROSE = 11
    AF_ROUTE = 16
    AF_SECURITY = 14
    AF_SNA = 22
    AF_UNIX = 1
    AF_UNSPEC = 0
    AF_WANPIPE = 25
    AF_X25 = 9
    address_families = {0: 'AF_UNSPEC', 1: 'AF_FILE', 2: 'AF_INET', 3: 'AF...
    version = '0.11.0'

FILE
    /usr/lib/python3/dist-packages/netifaces.cpython-310-x86_64-linux-gnu.so



Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:15 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!