eye.procutils module

class eye.procutils.LineProcess(**kwargs)[source]

Bases: QProcess

Process with stdout/stderr line handling

The process is run in background. Signals are emitted when full lines are read from stdout or stderr.

on_error()[source]

This slot has signature on_error().

on_finish(ret)[source]

This slot has signature on_finish(int).

on_state_changed(state)[source]

This slot has signature on_state_changed(QProcess.ProcessState).

on_stderr()[source]

This slot has signature on_stderr().

on_stdout()[source]

This slot has signature on_stdout().

set_encoding(encoding)[source]

Set encoding for reading stdout/stderr

stderr_line_read = Signal(str)

Signal stderr_line_read(str)

stdout_line_read = Signal(str)

Signal stdout_line_read(str)

stop(wait=0)[source]

Terminate process

eye.procutils.find_command(cmd)[source]

Find cmd in $PATH

eye.procutils.run_blocking(cmd, stdin=b'', cwd='')[source]