开发者

USBView/ Device manager in python

开发者 https://www.devze.com 2023-04-04 14:49 出处:网络
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 c

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消