[Tutor] Unable to get the gateway IP of wlan interface using python code

Michael Torrie torriem at gmail.com
Mon Nov 12 23:24:24 EST 2018


On 11/12/2018 05:55 PM, David Rock wrote:
> Is there a requirement to use only what comes in the standard libraries, or can you use things from pypi?
> Getting interface details is exactly why netifaces was created
> 
> https://pypi.org/project/netifaces/

Also if working with NetworkManager is required, nm has a python api:
https://pythonhosted.org/python-networkmanager/

Grepping command-line tools is a time-honored unix tradition, but it can
be fragile.



More information about the Python-list mailing list