etho.utils.runner¶ class etho.utils.runner.Runner(host: str = 'localhost', python_exe: str = 'python')[source]¶ Manages local processes. is_online() → bool[source]¶ Return True if the configured host responds to ping. is_running(pids: List[int]) → bool[source]¶ Return True if at least one of the pids is running. kill(pids: int | List[int])[source]¶ Kill process pid. kill_python()[source]¶ Kill all local python processes matching the runner’s python executable name. pid(query: str) → List[int][source]¶ Get pids of all local processes partially matching query. run(cmd: str, timeout: float | None = None, asynchronous: bool | None = False, disown: bool = False, new_console: bool = False) → CompletedProcess | Popen | None[source]¶ Run a command on the local machine.