poulet_py.hardware.triggers.keyboard module#

class KeyboardTrigger(**data)[source]#

Bases: BaseTrigger

Keyboard-based trigger (press Enter key).

key: str#
wait()[source]#

Wait for keyboard input with optional timeout.

Return type:

bool

cleanup()[source]#

No cleanup needed for keyboard.

Return type:

None

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str#
timeout: float | None#