USBView/ Device manager in python
How can I access Devic开发者_JS百科e Manager in python, so that i can get the usb device's serial number/other info through python?
Instead of using the Device Manager (A graphical application), you can programmatically access information about USB devices via PyUSB:
import usb.core
allDevs = usb.core.find(find_all=True)
Now, iterate over allDevs
to get information about connected devices.
精彩评论