ykman.device
Functions
List CCID devices. |
|
List CTAP devices. |
|
List OTP devices. |
|
Scan USB for attached YubiKeys, without opening any connections. |
|
|
Connect to all attached YubiKeys and read device info from them. |
Module Contents
- ykman.device.scan_devices()[source]
Scan USB for attached YubiKeys, without opening any connections.
- Returns:
A dict mapping PID to device count, and a state object which can be used to detect changes in attached devices.
- Return type:
tuple[Mapping[yubikit.core.PID, int], int]
- ykman.device.list_all_devices(connection_types=_CONNECTION_LIST_MAPPING.keys())[source]
Connect to all attached YubiKeys and read device info from them.
- Parameters:
connection_types (Iterable[type[yubikit.core.Connection]]) – An iterable of YubiKey connection types.
- Returns:
A list of (device, info) tuples for each connected device.
- Return type:
list[tuple[ykman.base.YkmanDevice, yubikit.management.DeviceInfo]]