tracdap.rt.metadata.flow

Module Contents

Classes

FlowDefinition

FlowEdge

FlowNode

FlowNodeType

Create a collection of name/value pairs.

FlowSocket

class tracdap.rt.metadata.flow.FlowDefinition
edges

edges

Type:

List[FlowEdge]

inputs

inputs

Type:

Dict[str, ModelInputSchema]

nodes

nodes

Type:

Dict[str, FlowNode]

outputs

outputs

Type:

Dict[str, ModelOutputSchema]

parameters

parameters

Type:

Dict[str, ModelParameter]

class tracdap.rt.metadata.flow.FlowEdge
source

source

Type:

FlowSocket

target

target

Type:

FlowSocket

class tracdap.rt.metadata.flow.FlowNode
inputs

inputs

Type:

List[str]

label

label

Type:

str

nodeAttrs

nodeAttrs

Type:

List[TagUpdate]

nodeSearch

nodeSearch

Type:

SearchExpression

nodeType

nodeType

Type:

FlowNodeType

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,)
class tracdap.rt.metadata.flow.FlowSocket
node

node

Type:

str

socket

socket

Type:

str