On Sun, Sep 11, 2011 at 7:44 AM, Dan Cornell <d...@denimgroup.com> wrote: >> On 01.09.2011 08:17, Dan Cornell wrote: >> > let me put together an updated alpha version and I'll find a way to >> > make that available to folks. >> Have you had any success yet? >> > > Yeah I've got the basic device class string mappings working and the rest of > the stuff should follow pretty easily: > http://pastebin.com/t5Lt6d8p > > What I was messing with was how to best integrate this into the rest of the > pyusb module.
If it were me I'd just make a release outside of PyUSB, get feedback for that and then look at integrating into PyUSB once it is ready. This is actually how many of the batteries-included modules for Python are bought into Python. I would recommend using http://pypi.python.org/pypi/pep8 to get the code style in line with other Python modules. > .... too much runaround and it would be better just to auto-generate the > constants.py and update it periodically. As per my previous post, I'd avoid the code generator approach in this instance and simple populate a dict like interface BUT releasing what you have today (with code generator) and then evolving into a non code generated version (that would dynamically update itself without the need for a code regen) could be a medium term target. If the module can work from a data file (either in the distribution or online) it would be self updating, you already have most of the code for this :-). I would offer to help but I'm snowed under with other projects at the moment :-( Chris ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users