Python Wireless Extension Module (pyiw)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeremy Moles

    #1

    Python Wireless Extension Module (pyiw)

    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.WirelessIn fo("wlan0")

    nets = wlan.Scan()

    for net in nets:
    print net.signal_qual ity

    wlan.essid
    wlan.key
    wlan.protocol

    wlan.essid = "LV-426"

    wlan.Reconfigur e()

    --------------------------------------------------

Working...