Firebird/Concepts: Difference between revisions

From stonehomewiki
Jump to navigationJump to search
Line 152: Line 152:
</nowiki></pre>
</nowiki></pre>


<b>method: <nowiki>[]</nowiki></b>
<pre><nowiki>
<pre><nowiki>
def add_node(self, name:str, node_class, *argc, **kwargs)
# You can use [] to get node by id
 
pipeline["foo"]  # get node with id "foo" of this pipeline
# add a node to the pipeline, *argc, and **kwargs will be passed to the constructor
</nowiki></pre>
 
<pre><nowiki>
def connect(self, *, src_node_name, src_port_name=DEFAULT_PORT_NAME, dst_node_name, dst_port_name=DEFAULT_PORT_NAME)
 
# connect one node's output port to another node's input port
</nowiki></pre>
</nowiki></pre>



Revision as of 04:52, 13 May 2023

Firebird

Overview

Models

Pipeline