ykman.hid

Submodules

Attributes

list_otp_devices

Classes

YkmanDevice

YubiKey device reference, with optional PID

OtpYubiKeyDevice

YubiKey USB HID OTP device

backend

CtapYubiKeyDevice

YubiKey FIDO USB HID device

Package Contents

class ykman.hid.YkmanDevice(transport, fingerprint, pid)[source]

Bases: yubikit.core.YubiKeyDevice

YubiKey device reference, with optional PID

Parameters:
property pid: yubikit.core.PID | None

Return the PID of the YubiKey, if available.

Return type:

Optional[yubikit.core.PID]

__repr__()[source]
class ykman.hid.OtpYubiKeyDevice(path, pid, connection_cls)[source]

Bases: ykman.base.YkmanDevice

YubiKey USB HID OTP device

path
supports_connection(connection_type)[source]

Check if a YubiKeyDevice supports a specific Connection type

open_connection(connection_type)[source]

Opens a connection to the YubiKey

class ykman.hid.backend
static list_devices()
Abstractmethod:

ykman.hid.list_otp_devices: Callable[[], list[base.OtpYubiKeyDevice]]
class ykman.hid.CtapYubiKeyDevice(descriptor)[source]

Bases: ykman.base.YkmanDevice

YubiKey FIDO USB HID device

descriptor
supports_connection(connection_type)[source]

Check if a YubiKeyDevice supports a specific Connection type

open_connection(connection_type)[source]

Opens a connection to the YubiKey