[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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:

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