Execution

Run a compiled graph inside an execution context, supply runtime components defined in Python, and access live state from a running graph.

libtcspc.ExecutionContext

An execution context for a compiled processing graph.

libtcspc.EndOfProcessing

Exception raised when processing finished without error, but for a reason other than reaching the end of the input.

Run-time Python components

User-supplied Python objects passed to ExecutionContext to handle input to and output from the graph.

libtcspc.PySink

Abstract base class for sinks (output handling processors) written in Python.

libtcspc.PyAcquisitionReader

Acquisition reader implemented in Python and supplied as an argument upon creation of the execution context.

Runtime access

Access objects expose live state from processors in running graphs. Use an AccessTag declared at graph-definition time to look up the corresponding access object from ExecutionContext. The access object has a run-time-generated type but implements one of the Access protocols.

libtcspc.Access

Base protocol for run-time access objects.

libtcspc.AcquireAccess

Run-time access object for an Acquire processor.

libtcspc.CountAccess

Run-time access object for a Count processor.