Python Wireless Extension Module (pyiw)

J

Jeremy Moles

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()

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,311
Members
47,985
Latest member
kazewi

Latest Threads

Top