Python API ========== 本页是 SmartUSBHub Python 控制库的 API 文档入口。 Module ------ .. automodule:: smartusbhub :no-members: SmartUSBHub ----------- .. autoclass:: smartusbhub.SmartUSBHub :members: :member-order: bysource :show-inheritance: Exceptions ---------- .. autoclass:: smartusbhub.SmartUSBHubError :show-inheritance: .. autoclass:: smartusbhub.PortBusyError :show-inheritance: .. autoclass:: smartusbhub.DeviceConnectionError :show-inheritance: .. autoclass:: smartusbhub.FeatureNotSupportedError :show-inheritance: Helpers ------- .. autofunction:: smartusbhub.synchronized 如果本页构建时无法导入依赖,请先安装 ``smartusbhub_ng/requirements.txt``。