mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 12:08:59 +00:00
15 lines
428 B
ReStructuredText
15 lines
428 B
ReStructuredText
Transport via USB HID
|
|
--------------
|
|
|
|
To get a list of TREZORs that are currently plugged into our computer, we use the enumerate method.
|
|
|
|
.. code-block:: python
|
|
|
|
import trezorlib.transport_hid
|
|
list_of_trezor_devices = trezorlib.transport_hid.enumerate()
|
|
|
|
We can now interact with our TREZORs by creating a :doc:`TrezorClient <client>` object.
|
|
|
|
.. autoclass:: trezorlib.transport_hid.HidTransport
|
|
:members:
|
|
:undoc-members: |