Python Wireless Extension Module (pyiw)

Eric Nieuwland eric.nieuwland at xs4all.nl
Sat Aug 13 05:03:16 EDT 2005


Jeremy Moles wrote:

> I am mostly done with writing an extension module in C that wraps (and
> makes easier) interfacing with libiw (the library that powers iwconfig,
> iwlist, and friends on Linux). We're using this internally for a tool 
> to
> manage wireless connectivity. This is a million times better than
> hundreds of invocations of the iw* suite of tools. :)
>
> Would anyone else find something like this useful? I know a few distros
> maintain their own suite of config tools, but I don't think there is 
> yet
> an actual binding for python.
>
> Anyway, I am just curious... we plan on using it, at any rate. It's
> already made the code easier to read, faster, and more reliable.
>
> # example usage ---------------------------------
>
> wlan = pyiw.WirelessInfo("wlan0")
>
> nets = wlan.Scan()
>
> for net in nets:
> 	print net.signal_quality
>
> wlan.essid
> wlan.key
> wlan.protocol
>
> wlan.essid = "LV-426"
>
> wlan.Reconfigure()

So cool! YES, I'd like to have that. Preferably as source code since I 
have quite a number of different Un*xes.

--eric




More information about the Python-list mailing list