tracdap.rt.metadata.flow
¶
Module Contents¶
Classes¶
Create a collection of name/value pairs. |
|
- class tracdap.rt.metadata.flow.FlowDefinition¶
-
- inputs¶
inputs
- Type:
Dict[str, ModelInputSchema]
- outputs¶
outputs
- Type:
Dict[str, ModelOutputSchema]
- parameters¶
parameters
- Type:
Dict[str, ModelParameter]
- class tracdap.rt.metadata.flow.FlowNode¶
- inputs¶
inputs
- Type:
List[str]
- label¶
label
- Type:
str
- nodeSearch¶
nodeSearch
- Type:
- nodeType¶
nodeType
- Type:
- outputs¶
outputs
- Type:
List[str]
- class tracdap.rt.metadata.flow.FlowNodeType(*args, **kwds)¶
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
- INPUT_NODE = (1,)¶
- MODEL_NODE = (3,)¶
- NODE_TYPE_NOT_SET = (0,)¶
- OUTPUT_NODE = (2,)¶