ironflow.model.port module

A new output port class that has a dtype.

class ironflow.model.port.HasDType[source]

Bases: object

A mixin to add the valid value check property

property dtype_ok
set_dtype_ok()[source]
class ironflow.model.port.HasOType[source]

Bases: object

A mixin to add the valid value check to properties with an ontology type

get_downstream_requirements()[source]
property otype_ok
recalculate_otype_checks(ignore=None)[source]
set_otype_ok()[source]
class ironflow.model.port.HasTypes[source]

Bases: HasOType, HasDType

property ready
class ironflow.model.port.NodeInput(node: Node, type_: str = 'data', label_str: str = '', add_data: dict | None = None, dtype: DType | None = None, otype=None)[source]

Bases: NodeInput, HasTypes

batch()[source]
connected()[source]
data() dict[source]

converts the object to a JSON compatible dict for serialization

disconnected()[source]
unbatch()[source]
update(data=None)[source]

called from another node or from connected()

workflow_tree_contains_connections_of(port: NodeOutput)[source]
class ironflow.model.port.NodeInputBP(label: str = '', type_: str = 'data', dtype: DType = None, add_data={}, otype=None)[source]

Bases: NodeInputBP

class ironflow.model.port.NodeOutput(node, type_='data', label_str='', dtype: DType | None = None, otype=None)[source]

Bases: NodeOutput, HasTypes

all_connections_found_in(tree)[source]

Checks to see if actual ontologically typed connections match with all ontologically possible workflows for an input port.

data() dict[source]

converts the object to a JSON compatible dict for serialization

disconnected()[source]
set_val(val)[source]
class ironflow.model.port.NodeOutputBP(label: str = '', type_: str = 'data', dtype: DType | None = None, otype=None)[source]

Bases: NodeOutputBP