itkwasm.pipeline
#
Module Contents#
Classes#
Helper for working with the wasm module instance created when a Pipeline is run. |
|
Run an itk-wasm WASI pipeline. |
API#
- class itkwasm.pipeline.RunInstance(engine: wasmtime.Engine, linker: wasmtime.Linker, module: wasmtime.Module, args: List[str], preopen_directories: Set[str])#
Helper for working with the wasm module instance created when a Pipeline is run.
Initialization
- delayed_start()#
- delayed_exit(return_code)#
- class itkwasm.pipeline.Pipeline(pipeline: Union[str, pathlib.Path, bytes])#
Run an itk-wasm WASI pipeline.
Initialization
Compile the pipeline.
- run(args: List[str], outputs: List[itkwasm.pipeline_output.PipelineOutput] = [], inputs: List[itkwasm.pipeline_input.PipelineInput] = []) Tuple[itkwasm.pipeline_output.PipelineOutput] #
Run the itk-wasm pipeline.