
Just FYI, I just announced this to my local Python users group.
Greetings all. I just recently re-wrote the Python wrapper classes for the libsmi library. The libsmi (a C library for parsing and accessing SMI/MIB data) has iterator functions that are now mapped to Python generators. I used SWIG to get the basic wrapper, and then modified that.
Let me know if you want more information.
PS. Currently only available at http://sourceforge.net/projects/pynms using the anonymous CVS access method.
libsmi home page:
http://www.ibr.cs.tu-bs.de/projects/libsmi/
The wrapper should be complete, let me know if you find it is not.
Also, there are two unit test modules for it: test_SMI, and test_libsmi. This is because there are actually two modules you can use. the "stock" generated one from SWIG, and my hand-modified one.
Once you get pyNMS installed, run the unit tests as follows:
qaunittest test_SMI
and
qaunittest test_libsmi
Note that the unit test modules are not complete yet.
Also note that the modified wrapper has a different naming style. One that I prefer and seems to be more common in the Python world.