pytrip.tripexecuter.execute module

This file contains the Execute() class which can execute a Plan() object locally or on a remote server with a complete TRiP98 installations.

class pytrip.tripexecuter.execute.Execute(ctx, vdx, ctx_path='', vdx_path='')[source]

Bases: object

Execute class for running trip using attached Ctx, Vdx and Plan objects.

add_log_listener(listener)[source]

A listener is something which has a .write(txt) method.

execute(plan, run=True, _callback=None)[source]

Executes the Plan() object using TRiP98.

log(txt)[source]

Writes txt to all listeners, stripping any newlines.

test_local_trip()[source]

Test if TRiP98 can be reached locally. :returns tripname, tripver: Name of TRiP98 installation and its version. :returns: None, None if not installed

test_remote_trip()[source]

Test if TRiP98 can be reached remotely. :returns tripname, tripver: Name of TRiP98 installation and its version. :returns: None, None if not installed