Module

class composapy.dataflow.models.Module(contract: Module, *args, **kwargs)

The object representation of a module inside a dataflow object.

property input: any

Convenience property that gets the first input. Cannot be used if there is more than one input.

property inputs: InputSet

Maps each module input, by name, to a corresponding Input object.

property name: str

Returns the contract member, Name.

property result: any

Convenience property that gets the first result. Cannot be used if there is more than one result.

property results: ResultSet

Maps each module result, by name, to a corresponding Result object.

property type: str

Returns the contract member, ModuleType.Name.