ykman.scripting
Classes
Scripting-friendly proxy for YkmanDevice. |
Functions
|
Connect to a YubiKey. |
|
Connect to multiple YubiKeys. |
|
Connect to a YubiKey over NFC. |
|
Connect to multiple YubiKeys over NFC. |
Module Contents
- class ykman.scripting.ScriptingDevice(wrapped, info)[source]
Scripting-friendly proxy for YkmanDevice.
This wrapper adds some helpful utility methods useful for scripting.
- property info: yubikit.management.DeviceInfo
- Return type:
- ykman.scripting.single(*, prompt=True)[source]
Connect to a YubiKey.
- Parameters:
prompt – When set, you will be prompted to insert a YubiKey.
- Return type:
- ykman.scripting.multi(*, ignore_duplicates=True, allow_initial=False, prompt=True)[source]
Connect to multiple YubiKeys.
- Parameters:
- Return type:
Generator[ScriptingDevice, None, None]
- ykman.scripting.single_nfc(reader='', *, prompt=True)[source]
Connect to a YubiKey over NFC.
- Parameters:
reader – The name of the NFC reader.
prompt – When set, you will prompted to place a YubiKey on NFC reader.
- Return type:
- ykman.scripting.multi_nfc(reader='', *, ignore_duplicates=True, allow_initial=False, prompt=True)[source]
Connect to multiple YubiKeys over NFC.
- Parameters:
reader – The name of the NFC reader.
ignore_duplicates – When set, duplicates are ignored.
allow_initial – When set, YubiKeys can be connected at the start of the function call.
prompt – When set, you will be prompted to place YubiKeys on the NFC reader.
- Return type:
Generator[ScriptingDevice, None, None]