I have been search for a couple of hours to find a a tutorial on how to show the list of available networks and connect to a network programmatically.I don't want to use command line. I have installed python wifi module but there is no tutorial on how to use it programmatically.
# python2.7 >>> from pythonwifi.iwlibs import Wireless >>> wifi = Wireless('wlan') >>> wifi.getEssid() 'romanofski' >>> wifi.getMode() 'Managed'
def scan(self): """ Returns Iwscanresult objects, after a successful scan. """ return Iwscan(self.ifname)
# python2.7 >>> from pythonwifi.iwlibs import Wireless >>> wifi = Wireless('wlan') >>> wifi.scan()
You can try to find python lib for specific version using the filters on the PyPI webpage, for example