The general idea of what I want to do is to connect to a Wi-Fi network but from Python and I was wondering what is the most recommended module to achieve this functionality, preferably a solution for OSX, the modules I found do not have a very clear documentation I am looking for something easy to use.
You just mention that your goal is to connect. Doing a little research I found
wireless
that it seems to be easier to use thanwifi
(at least for the connection issue). Its last update is a few months ago.Using Linux:
In the documentation they don't mention a way to list available Wi-Fi networks. But, for example, I have a network called
DEPART_301
:I was connected to another network from the building I live in and was able to switch from network
DEPART_401
to network justDEPART_301
fine.If you want to list the available networks maybe you can mix it with the module
wifi
:To list available networks: