mvp / uhubctl

uhubctl - USB hub per-port power control
Other
2.23k stars 232 forks source link

Python wrapper #501

Closed YanBC closed 1 year ago

YanBC commented 1 year ago

Hi there, is it possible to make a python wrapper for uhubctl?

mvp commented 1 year ago

I believe few of them already exist, e.g. python3-uhubctl, pyhubctl - both require uhubctl binary installed and present in PATH.

However, I cannot really recommend one over another. It if was me, I would probably write yet another one. For all I know, most python projects simply use subprocess call with uhubctl and providing proper parameters.