BaseCommand

class pyniryo_nate.components.BaseCommand(command_id: str, timeout: float)[source]

Bases: ABC

Attributes

command_id

Get the command ID of the command.

Methods

wait

Wait for the command to complete.

Parameters:
  • command_id (str)

  • timeout (float)

property command_id: str

Get the command ID of the command.

Returns:

The command ID.

abstractmethod wait() → None[source]

Wait for the command to complete. A timeout of zero or less waits indefinitely. The timeout counts from the moment the command was sent, not from the call to this method.

Return type:

None