By reading the documentation of the wifi package.
wifi
Which is here: https://wifi.readthedocs.io/en/latest/ if I’m finding the correct module.