A Python library for getting wifi information.
pip install wifiinfo
pip3 install wifiinfo
import wifiinfo
# Creates a wifi object
wifi = wifiinfo.getWifi('osx')
# Can add Operating System or it defaults to MacOSx
# Print out properties
wifi.printProperties()
'''
["agrCtlRSSI" -> "-54"]
["agrExtRSSI" -> "0"]
["agrCtlNoise" -> "-94"]
["agrExtNoise" -> "0"]
["state" -> "running"]
["op mode" -> "station"]
["lastTxRate" -> "450"]
["maxRate" -> "450"]
["lastAssocStatus" -> "0"]
["802.11 auth" -> "open"]
["link auth" -> "wpa2-psk"]
["BSSID" -> "90"]
["SSID" -> "YOUR_WIFI_NAME"]
["MCS" -> "24"]
["channel" -> "37,1"]
'''
# Get a single property
wifiName = wifi.get('SSID')
print (wifiName)
# wifiName would print:
# YOUR_WIFI_NAME
- MacOSx
WindowsLinux
- MacOSx Sierra - Version 10.12.4