Created
March 24, 2019 13:57
-
-
Save angeloped/478c9ca1047beb64f0edadca6c921f43 to your computer and use it in GitHub Desktop.
Get available network interface.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psutil | |
addrs = psutil.net_if_addrs() | |
print(addrs.keys()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment