Flowfile 0.3.10__py3-none-any.whl → 0.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of Flowfile might be problematic. Click here for more details.
- flowfile/__init__.py +6 -1
- flowfile/web/static/assets/{CloudConnectionManager-d7c2c028.js → CloudConnectionManager-109ecc3c.js} +2 -2
- flowfile/web/static/assets/{CloudStorageReader-d467329f.js → CloudStorageReader-19cdd67a.js} +6 -6
- flowfile/web/static/assets/{CloudStorageWriter-071b8b00.js → CloudStorageWriter-48e0ae20.js} +6 -6
- flowfile/web/static/assets/ColumnSelector-47996a16.css +10 -0
- flowfile/web/static/assets/ColumnSelector-ecaf7c44.js +83 -0
- flowfile/web/static/assets/{ContextMenu-2dea5e27.js → ContextMenu-2b348c4c.js} +1 -1
- flowfile/web/static/assets/{ContextMenu-785554c4.js → ContextMenu-a779eed7.js} +1 -1
- flowfile/web/static/assets/{ContextMenu-a51e19ea.js → ContextMenu-eca26a03.js} +1 -1
- flowfile/web/static/assets/{CrossJoin-cf68ec7a.js → CrossJoin-a88f8142.js} +7 -7
- flowfile/web/static/assets/CustomNode-74a37f74.css +32 -0
- flowfile/web/static/assets/CustomNode-cb863dff.js +211 -0
- flowfile/web/static/assets/{DatabaseConnectionSettings-435c5dd8.js → DatabaseConnectionSettings-819d3267.js} +2 -2
- flowfile/web/static/assets/{DatabaseManager-349e33a8.js → DatabaseManager-84ee2834.js} +2 -2
- flowfile/web/static/assets/{DatabaseReader-8075bd28.js → DatabaseReader-060dd412.js} +9 -9
- flowfile/web/static/assets/{DatabaseWriter-3e2dda89.js → DatabaseWriter-7fc7750f.js} +8 -8
- flowfile/web/static/assets/{ExploreData-76ec698c.js → ExploreData-82c95991.js} +5 -5
- flowfile/web/static/assets/{ExternalSource-609a265c.js → ExternalSource-e1a6ddc7.js} +5 -5
- flowfile/web/static/assets/{Filter-97cff793.js → Filter-8aca894a.js} +7 -7
- flowfile/web/static/assets/{Formula-09de0ec9.js → Formula-e33686d9.js} +7 -7
- flowfile/web/static/assets/{FuzzyMatch-bdf70248.js → FuzzyMatch-abda150d.js} +8 -8
- flowfile/web/static/assets/{GraphSolver-0b5a0e05.js → GraphSolver-4ecad1d7.js} +6 -6
- flowfile/web/static/assets/{GroupBy-eaddadde.js → GroupBy-656d07f3.js} +5 -5
- flowfile/web/static/assets/{Join-3313371b.js → Join-b84ec849.js} +8 -8
- flowfile/web/static/assets/{ManualInput-e8bfc0be.js → ManualInput-346f4135.js} +4 -4
- flowfile/web/static/assets/MultiSelect-61b98268.js +5 -0
- flowfile/web/static/assets/MultiSelect.vue_vue_type_script_setup_true_lang-2a7c8312.js +63 -0
- flowfile/web/static/assets/NumericInput-e36602c2.js +5 -0
- flowfile/web/static/assets/NumericInput.vue_vue_type_script_setup_true_lang-211a1990.js +35 -0
- flowfile/web/static/assets/{Output-7303bb09.js → Output-eb041599.js} +6 -6
- flowfile/web/static/assets/{Pivot-3b1c54ef.js → Pivot-f5c774f4.js} +7 -7
- flowfile/web/static/assets/{PivotValidation-3bb36c8f.js → PivotValidation-26546cbc.js} +1 -1
- flowfile/web/static/assets/{PivotValidation-eaa819c0.js → PivotValidation-e150a24b.js} +1 -1
- flowfile/web/static/assets/{PolarsCode-aa12e25d.js → PolarsCode-da3a7abf.js} +5 -5
- flowfile/web/static/assets/{Read-a2bfc618.js → Read-0c768769.js} +8 -8
- flowfile/web/static/assets/{RecordCount-aa0dc082.js → RecordCount-84736276.js} +4 -4
- flowfile/web/static/assets/{RecordId-48ee1a3b.js → RecordId-60055e6d.js} +6 -6
- flowfile/web/static/assets/{SQLQueryComponent-e149dbf2.js → SQLQueryComponent-8a486004.js} +1 -1
- flowfile/web/static/assets/{Sample-f06cb97a.js → Sample-2d662611.js} +4 -4
- flowfile/web/static/assets/{SecretManager-37f34886.js → SecretManager-ef586cab.js} +2 -2
- flowfile/web/static/assets/{Select-b60e6c47.js → Select-2e4a6965.js} +7 -7
- flowfile/web/static/assets/{SettingsSection-75b6cf4f.js → SettingsSection-310b61c0.js} +1 -1
- flowfile/web/static/assets/{SettingsSection-e57a672e.js → SettingsSection-5634f439.js} +1 -1
- flowfile/web/static/assets/{SettingsSection-70e5a7b1.js → SettingsSection-7c68b19f.js} +1 -1
- flowfile/web/static/assets/SingleSelect-7298811a.js +5 -0
- flowfile/web/static/assets/SingleSelect.vue_vue_type_script_setup_true_lang-43807bad.js +62 -0
- flowfile/web/static/assets/SliderInput-53105476.js +40 -0
- flowfile/web/static/assets/SliderInput-b8fb6a8c.css +4 -0
- flowfile/web/static/assets/{Sort-51b1ee4d.js → Sort-4fdebe74.js} +5 -5
- flowfile/web/static/assets/TextInput-28366b7e.js +5 -0
- flowfile/web/static/assets/TextInput.vue_vue_type_script_setup_true_lang-9cad14ba.js +32 -0
- flowfile/web/static/assets/{TextToRows-26835f8f.js → TextToRows-73ffa692.js} +7 -7
- flowfile/web/static/assets/ToggleSwitch-598add30.js +5 -0
- flowfile/web/static/assets/ToggleSwitch.vue_vue_type_script_setup_true_lang-f620cd32.js +31 -0
- flowfile/web/static/assets/{UnavailableFields-88a4cd0c.js → UnavailableFields-66239e83.js} +2 -2
- flowfile/web/static/assets/{Union-4d0088eb.js → Union-26b10614.js} +4 -4
- flowfile/web/static/assets/{Unique-7d554a62.js → Unique-33b9edbb.js} +7 -7
- flowfile/web/static/assets/{Unpivot-4668595c.js → Unpivot-ef69d0e2.js} +6 -6
- flowfile/web/static/assets/{UnpivotValidation-d4f0e0e8.js → UnpivotValidation-8658388e.js} +1 -1
- flowfile/web/static/assets/{VueGraphicWalker-5324d566.js → VueGraphicWalker-4d7861f4.js} +1 -1
- flowfile/web/static/assets/{api-31e4fea6.js → api-2d1394bd.js} +1 -1
- flowfile/web/static/assets/{api-271ed117.js → api-c908fffe.js} +1 -1
- flowfile/web/static/assets/{designer-bf3d9487.js → designer-1667687d.js} +24 -16
- flowfile/web/static/assets/{designer-091bdc3f.css → designer-665e9408.css} +18 -18
- flowfile/web/static/assets/{documentation-4d0a1cea.js → documentation-5eed779e.js} +1 -1
- flowfile/web/static/assets/{dropDown-025888df.js → dropDown-41ebe3c2.js} +1 -1
- flowfile/web/static/assets/{fullEditor-1df991ec.js → fullEditor-0670d32d.js} +2 -2
- flowfile/web/static/assets/{genericNodeSettings-d3b2b2ac.js → genericNodeSettings-38410ebf.js} +3 -3
- flowfile/web/static/assets/{index-681a3ed0.css → index-50508d4d.css} +8 -0
- flowfile/web/static/assets/{index-d0518598.js → index-5ec791df.js} +6 -6
- flowfile/web/static/assets/{outputCsv-d8457527.js → outputCsv-059583b6.js} +1 -1
- flowfile/web/static/assets/{outputExcel-be89153e.js → outputExcel-76b1e02c.js} +1 -1
- flowfile/web/static/assets/{outputParquet-fabb445a.js → outputParquet-440fd4c7.js} +1 -1
- flowfile/web/static/assets/{readCsv-e8359522.js → readCsv-9813903a.js} +1 -1
- flowfile/web/static/assets/{readExcel-dabaf51b.js → readExcel-7f40d237.js} +3 -3
- flowfile/web/static/assets/{readParquet-e0771ef2.js → readParquet-22d56002.js} +1 -1
- flowfile/web/static/assets/{secretApi-ce823eee.js → secretApi-b3cb072e.js} +1 -1
- flowfile/web/static/assets/{selectDynamic-5476546e.js → selectDynamic-7ad95bca.js} +3 -3
- flowfile/web/static/assets/user-defined-icon-0ae16c90.png +0 -0
- flowfile/web/static/assets/{vue-codemirror.esm-9ed00d50.js → vue-codemirror.esm-b1dfaa46.js} +33 -3
- flowfile/web/static/assets/{vue-content-loader.es-7bca2d9b.js → vue-content-loader.es-22bac17c.js} +1 -1
- flowfile/web/static/index.html +2 -2
- {flowfile-0.3.10.dist-info → flowfile-0.4.0.dist-info}/METADATA +1 -1
- {flowfile-0.3.10.dist-info → flowfile-0.4.0.dist-info}/RECORD +108 -82
- flowfile_core/configs/node_store/__init__.py +30 -0
- flowfile_core/configs/node_store/nodes.py +383 -358
- flowfile_core/configs/node_store/user_defined_node_registry.py +193 -0
- flowfile_core/flowfile/flow_data_engine/flow_file_column/interface.py +4 -0
- flowfile_core/flowfile/flow_data_engine/flow_file_column/main.py +19 -34
- flowfile_core/flowfile/flow_data_engine/flow_file_column/type_registry.py +36 -0
- flowfile_core/flowfile/flow_graph.py +20 -1
- flowfile_core/flowfile/flow_node/flow_node.py +4 -4
- flowfile_core/flowfile/manage/open_flowfile.py +9 -1
- flowfile_core/flowfile/node_designer/__init__.py +47 -0
- flowfile_core/flowfile/node_designer/_type_registry.py +197 -0
- flowfile_core/flowfile/node_designer/custom_node.py +371 -0
- flowfile_core/flowfile/node_designer/data_types.py +146 -0
- flowfile_core/flowfile/node_designer/ui_components.py +277 -0
- flowfile_core/main.py +2 -1
- flowfile_core/routes/routes.py +16 -20
- flowfile_core/routes/user_defined_components.py +55 -0
- flowfile_core/schemas/input_schema.py +8 -1
- flowfile_core/schemas/schemas.py +6 -3
- flowfile_core/utils/validate_setup.py +3 -1
- shared/storage_config.py +17 -2
- {flowfile-0.3.10.dist-info → flowfile-0.4.0.dist-info}/LICENSE +0 -0
- {flowfile-0.3.10.dist-info → flowfile-0.4.0.dist-info}/WHEEL +0 -0
- {flowfile-0.3.10.dist-info → flowfile-0.4.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,358 +1,383 @@
|
|
|
1
|
-
|
|
2
|
-
from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
other
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
1
|
+
|
|
2
|
+
from typing import List, Dict
|
|
3
|
+
from flowfile_core.schemas.schemas import NodeTemplate, NodeDefault
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def get_all_standard_nodes() -> tuple[List[NodeTemplate], Dict[str, NodeTemplate], Dict[str, NodeDefault]]:
|
|
7
|
+
"""
|
|
8
|
+
Initializes and returns the complete list, dict, and defaults for all nodes.
|
|
9
|
+
"""
|
|
10
|
+
nodes_list: List[NodeTemplate] = [
|
|
11
|
+
NodeTemplate(
|
|
12
|
+
name='External source',
|
|
13
|
+
item='external_source',
|
|
14
|
+
input=0,
|
|
15
|
+
output=1,
|
|
16
|
+
image='external_source.png',
|
|
17
|
+
node_type="input",
|
|
18
|
+
transform_type="other",
|
|
19
|
+
node_group='input',
|
|
20
|
+
prod_ready=False,
|
|
21
|
+
drawer_title="External Source",
|
|
22
|
+
drawer_intro="Connect to external data sources and APIs"
|
|
23
|
+
),
|
|
24
|
+
|
|
25
|
+
NodeTemplate(
|
|
26
|
+
name='Manual input',
|
|
27
|
+
item='manual_input',
|
|
28
|
+
input=0,
|
|
29
|
+
output=1,
|
|
30
|
+
transform_type="other",
|
|
31
|
+
node_type="input",
|
|
32
|
+
image='manual_input.png',
|
|
33
|
+
node_group='input',
|
|
34
|
+
drawer_title="Manual Input",
|
|
35
|
+
drawer_intro="Create data directly"
|
|
36
|
+
),
|
|
37
|
+
|
|
38
|
+
NodeTemplate(
|
|
39
|
+
name='Read data',
|
|
40
|
+
item='read',
|
|
41
|
+
input=0,
|
|
42
|
+
output=1,
|
|
43
|
+
transform_type="other",
|
|
44
|
+
node_type="input",
|
|
45
|
+
image='input_data.png',
|
|
46
|
+
node_group='input',
|
|
47
|
+
drawer_title="Read Data",
|
|
48
|
+
drawer_intro="Load data from CSV, Excel, or Parquet files"
|
|
49
|
+
),
|
|
50
|
+
|
|
51
|
+
NodeTemplate(
|
|
52
|
+
name='Join',
|
|
53
|
+
item='join',
|
|
54
|
+
input=2,
|
|
55
|
+
output=1,
|
|
56
|
+
transform_type="wide",
|
|
57
|
+
node_type="process",
|
|
58
|
+
image='join.png',
|
|
59
|
+
node_group='combine',
|
|
60
|
+
drawer_title="Join Datasets",
|
|
61
|
+
drawer_intro="Merge two datasets based on matching column values"
|
|
62
|
+
),
|
|
63
|
+
|
|
64
|
+
NodeTemplate(
|
|
65
|
+
name='Formula',
|
|
66
|
+
item='formula',
|
|
67
|
+
input=1,
|
|
68
|
+
output=1,
|
|
69
|
+
transform_type="narrow",
|
|
70
|
+
node_type="process",
|
|
71
|
+
image='formula.png',
|
|
72
|
+
node_group='transform',
|
|
73
|
+
drawer_title="Formula Editor",
|
|
74
|
+
drawer_intro="Create or modify columns using custom expressions"
|
|
75
|
+
),
|
|
76
|
+
|
|
77
|
+
NodeTemplate(
|
|
78
|
+
name='Write data',
|
|
79
|
+
item='output',
|
|
80
|
+
input=1,
|
|
81
|
+
output=0,
|
|
82
|
+
transform_type="other",
|
|
83
|
+
image='output.png',
|
|
84
|
+
node_type="output",
|
|
85
|
+
node_group='output',
|
|
86
|
+
drawer_title="Write Data",
|
|
87
|
+
drawer_intro="Save your data as CSV, Excel, or Parquet files"
|
|
88
|
+
),
|
|
89
|
+
|
|
90
|
+
NodeTemplate(
|
|
91
|
+
name='Select data',
|
|
92
|
+
item='select',
|
|
93
|
+
input=1,
|
|
94
|
+
output=1,
|
|
95
|
+
transform_type="narrow",
|
|
96
|
+
node_type="process",
|
|
97
|
+
image='select.png',
|
|
98
|
+
node_group='transform',
|
|
99
|
+
drawer_title="Select Columns",
|
|
100
|
+
drawer_intro="Choose, rename, and reorder columns to keep"
|
|
101
|
+
),
|
|
102
|
+
|
|
103
|
+
NodeTemplate(
|
|
104
|
+
name='Filter data',
|
|
105
|
+
item='filter',
|
|
106
|
+
input=1,
|
|
107
|
+
output=1,
|
|
108
|
+
transform_type="narrow",
|
|
109
|
+
node_type="process",
|
|
110
|
+
image='filter.png',
|
|
111
|
+
node_group='transform',
|
|
112
|
+
drawer_title="Filter Rows",
|
|
113
|
+
drawer_intro="Keep only rows that match your conditions"
|
|
114
|
+
),
|
|
115
|
+
|
|
116
|
+
NodeTemplate(
|
|
117
|
+
name='Group by',
|
|
118
|
+
item='group_by',
|
|
119
|
+
input=1,
|
|
120
|
+
output=1,
|
|
121
|
+
transform_type="wide",
|
|
122
|
+
node_type="process",
|
|
123
|
+
image='group_by.png',
|
|
124
|
+
node_group='aggregate',
|
|
125
|
+
drawer_title="Group By",
|
|
126
|
+
drawer_intro="Aggregate data by grouping and calculating statistics"
|
|
127
|
+
),
|
|
128
|
+
|
|
129
|
+
NodeTemplate(
|
|
130
|
+
name='Fuzzy match',
|
|
131
|
+
item='fuzzy_match',
|
|
132
|
+
input=2,
|
|
133
|
+
output=1,
|
|
134
|
+
transform_type="wide",
|
|
135
|
+
image='fuzzy_match.png',
|
|
136
|
+
node_type="process",
|
|
137
|
+
node_group='combine',
|
|
138
|
+
drawer_title="Fuzzy Match",
|
|
139
|
+
drawer_intro="Join datasets based on similar values instead of exact matches"
|
|
140
|
+
),
|
|
141
|
+
|
|
142
|
+
NodeTemplate(
|
|
143
|
+
name='Sort data',
|
|
144
|
+
item='sort',
|
|
145
|
+
input=1,
|
|
146
|
+
output=1,
|
|
147
|
+
transform_type="wide",
|
|
148
|
+
node_type="process",
|
|
149
|
+
image='sort.png',
|
|
150
|
+
node_group='transform',
|
|
151
|
+
drawer_title="Sort Data",
|
|
152
|
+
drawer_intro="Order your data by one or more columns"
|
|
153
|
+
),
|
|
154
|
+
|
|
155
|
+
NodeTemplate(
|
|
156
|
+
name='Add record Id',
|
|
157
|
+
item='record_id',
|
|
158
|
+
input=1,
|
|
159
|
+
output=1,
|
|
160
|
+
transform_type="wide",
|
|
161
|
+
node_type="process",
|
|
162
|
+
image='record_id.png',
|
|
163
|
+
node_group='transform',
|
|
164
|
+
drawer_title="Add Record ID",
|
|
165
|
+
drawer_intro="Generate unique identifiers for each row"
|
|
166
|
+
),
|
|
167
|
+
|
|
168
|
+
NodeTemplate(
|
|
169
|
+
name='Take Sample',
|
|
170
|
+
item='sample',
|
|
171
|
+
input=1,
|
|
172
|
+
output=1,
|
|
173
|
+
transform_type="narrow",
|
|
174
|
+
node_type="process",
|
|
175
|
+
image='sample.png',
|
|
176
|
+
node_group='transform',
|
|
177
|
+
drawer_title="Take Sample",
|
|
178
|
+
drawer_intro="Work with a subset of your data"
|
|
179
|
+
),
|
|
180
|
+
|
|
181
|
+
NodeTemplate(
|
|
182
|
+
name='Explore data',
|
|
183
|
+
item='explore_data',
|
|
184
|
+
input=1,
|
|
185
|
+
output=0,
|
|
186
|
+
transform_type="other",
|
|
187
|
+
node_type="output",
|
|
188
|
+
image='explore_data.png',
|
|
189
|
+
node_group='output',
|
|
190
|
+
drawer_title="Explore Data",
|
|
191
|
+
drawer_intro="Interactive data exploration and analysis"
|
|
192
|
+
),
|
|
193
|
+
|
|
194
|
+
NodeTemplate(
|
|
195
|
+
name='Pivot data',
|
|
196
|
+
item='pivot',
|
|
197
|
+
input=1,
|
|
198
|
+
output=1,
|
|
199
|
+
transform_type="wide",
|
|
200
|
+
image='pivot.png',
|
|
201
|
+
node_type="process",
|
|
202
|
+
node_group='aggregate',
|
|
203
|
+
drawer_title="Pivot Data",
|
|
204
|
+
drawer_intro="Convert data from long format to wide format"
|
|
205
|
+
),
|
|
206
|
+
|
|
207
|
+
NodeTemplate(
|
|
208
|
+
name='Unpivot data',
|
|
209
|
+
item='unpivot',
|
|
210
|
+
input=1,
|
|
211
|
+
output=1,
|
|
212
|
+
transform_type="wide",
|
|
213
|
+
node_type="process",
|
|
214
|
+
image='unpivot.png',
|
|
215
|
+
node_group='aggregate',
|
|
216
|
+
drawer_title="Unpivot Data",
|
|
217
|
+
drawer_intro="Transform data from wide format to long format"
|
|
218
|
+
),
|
|
219
|
+
|
|
220
|
+
NodeTemplate(
|
|
221
|
+
name='Union data',
|
|
222
|
+
item='union',
|
|
223
|
+
input=10,
|
|
224
|
+
output=1,
|
|
225
|
+
transform_type="narrow",
|
|
226
|
+
node_type="process",
|
|
227
|
+
image='union.png',
|
|
228
|
+
multi=True,
|
|
229
|
+
node_group='combine',
|
|
230
|
+
drawer_title="Union Data",
|
|
231
|
+
drawer_intro="Stack multiple datasets by combining rows"
|
|
232
|
+
),
|
|
233
|
+
|
|
234
|
+
NodeTemplate(
|
|
235
|
+
name='Drop duplicates',
|
|
236
|
+
item='unique',
|
|
237
|
+
input=1,
|
|
238
|
+
output=1,
|
|
239
|
+
transform_type="wide",
|
|
240
|
+
node_type="process",
|
|
241
|
+
image='unique.png',
|
|
242
|
+
node_group='transform',
|
|
243
|
+
drawer_title="Drop Duplicates",
|
|
244
|
+
drawer_intro="Remove duplicate rows based on selected columns"
|
|
245
|
+
),
|
|
246
|
+
|
|
247
|
+
NodeTemplate(
|
|
248
|
+
name='Graph solver',
|
|
249
|
+
item='graph_solver',
|
|
250
|
+
input=1,
|
|
251
|
+
output=1,
|
|
252
|
+
transform_type="other",
|
|
253
|
+
node_type="process",
|
|
254
|
+
image='graph_solver.png',
|
|
255
|
+
node_group='combine',
|
|
256
|
+
drawer_title="Graph Solver",
|
|
257
|
+
drawer_intro="Group related records in graph-structured data"
|
|
258
|
+
),
|
|
259
|
+
|
|
260
|
+
NodeTemplate(
|
|
261
|
+
name='Count records',
|
|
262
|
+
item='record_count',
|
|
263
|
+
input=1,
|
|
264
|
+
output=1,
|
|
265
|
+
transform_type="wide",
|
|
266
|
+
node_type="process",
|
|
267
|
+
image='record_count.png',
|
|
268
|
+
node_group='aggregate',
|
|
269
|
+
drawer_title="Count Records",
|
|
270
|
+
drawer_intro="Calculate the total number of rows"
|
|
271
|
+
),
|
|
272
|
+
|
|
273
|
+
NodeTemplate(
|
|
274
|
+
name='Cross join',
|
|
275
|
+
item='cross_join',
|
|
276
|
+
input=2,
|
|
277
|
+
output=1,
|
|
278
|
+
transform_type="wide",
|
|
279
|
+
node_type="process",
|
|
280
|
+
image='cross_join.png',
|
|
281
|
+
node_group='combine',
|
|
282
|
+
drawer_title="Cross Join",
|
|
283
|
+
drawer_intro="Create all possible combinations between two datasets"
|
|
284
|
+
),
|
|
285
|
+
|
|
286
|
+
NodeTemplate(
|
|
287
|
+
name='Text to rows',
|
|
288
|
+
item='text_to_rows',
|
|
289
|
+
input=1,
|
|
290
|
+
output=1,
|
|
291
|
+
transform_type="wide",
|
|
292
|
+
node_type="process",
|
|
293
|
+
image='text_to_rows.png',
|
|
294
|
+
node_group='transform',
|
|
295
|
+
drawer_title="Text to Rows",
|
|
296
|
+
drawer_intro="Split text into multiple rows based on a delimiter"
|
|
297
|
+
),
|
|
298
|
+
|
|
299
|
+
NodeTemplate(
|
|
300
|
+
name="Polars code",
|
|
301
|
+
item="polars_code",
|
|
302
|
+
input=10,
|
|
303
|
+
output=1,
|
|
304
|
+
transform_type="narrow",
|
|
305
|
+
image='polars_code.png',
|
|
306
|
+
node_group='transform',
|
|
307
|
+
node_type="process",
|
|
308
|
+
multi=True,
|
|
309
|
+
can_be_start=True,
|
|
310
|
+
drawer_title="Polars Code",
|
|
311
|
+
drawer_intro="Write custom Polars DataFrame transformations"
|
|
312
|
+
),
|
|
313
|
+
|
|
314
|
+
NodeTemplate(
|
|
315
|
+
name="Read from Database",
|
|
316
|
+
item="database_reader",
|
|
317
|
+
input=0,
|
|
318
|
+
output=1,
|
|
319
|
+
node_type="input",
|
|
320
|
+
transform_type="other",
|
|
321
|
+
image='database_reader.svg',
|
|
322
|
+
node_group='input',
|
|
323
|
+
drawer_title="Database Reader",
|
|
324
|
+
drawer_intro="Load data from database tables or queries"
|
|
325
|
+
),
|
|
326
|
+
|
|
327
|
+
NodeTemplate(
|
|
328
|
+
name='Write to Database',
|
|
329
|
+
item='database_writer',
|
|
330
|
+
input=1,
|
|
331
|
+
output=0,
|
|
332
|
+
transform_type="other",
|
|
333
|
+
node_type="output",
|
|
334
|
+
image='database_writer.svg',
|
|
335
|
+
node_group='output',
|
|
336
|
+
drawer_title="Database Writer",
|
|
337
|
+
drawer_intro="Save data to database tables"
|
|
338
|
+
),
|
|
339
|
+
|
|
340
|
+
NodeTemplate(
|
|
341
|
+
name='Read from cloud provider',
|
|
342
|
+
item='cloud_storage_reader',
|
|
343
|
+
input=0,
|
|
344
|
+
output=1,
|
|
345
|
+
transform_type="other",
|
|
346
|
+
node_type="input",
|
|
347
|
+
image='cloud_storage_reader.png',
|
|
348
|
+
node_group='input',
|
|
349
|
+
drawer_title="Cloud Storage Reader",
|
|
350
|
+
drawer_intro="Read data from AWS S3 and other cloud storage"
|
|
351
|
+
),
|
|
352
|
+
|
|
353
|
+
NodeTemplate(
|
|
354
|
+
name='Write to cloud provider',
|
|
355
|
+
item='cloud_storage_writer',
|
|
356
|
+
input=1,
|
|
357
|
+
output=0,
|
|
358
|
+
transform_type="other",
|
|
359
|
+
node_type="output",
|
|
360
|
+
image='cloud_storage_writer.png',
|
|
361
|
+
node_group='output',
|
|
362
|
+
drawer_title="Cloud Storage Writer",
|
|
363
|
+
drawer_intro="Save data to AWS S3 and other cloud storage"
|
|
364
|
+
),
|
|
365
|
+
]
|
|
366
|
+
nodes_list.sort(key=lambda x: x.name)
|
|
367
|
+
nodes_with_defaults = {'sample', 'sort', 'union', 'select', 'record_count'}
|
|
368
|
+
|
|
369
|
+
def check_if_has_default_setting(node_item: str):
|
|
370
|
+
|
|
371
|
+
return node_item in nodes_with_defaults
|
|
372
|
+
|
|
373
|
+
node_defaults = {node.item: NodeDefault(node_name=node.name,
|
|
374
|
+
node_type=node.node_type,
|
|
375
|
+
transform_type=node.transform_type,
|
|
376
|
+
has_default_settings=check_if_has_default_setting(node.item)
|
|
377
|
+
) for node in nodes_list}
|
|
378
|
+
node_dict = {n.item: n for n in nodes_list}
|
|
379
|
+
|
|
380
|
+
node_dict["polars_lazy_frame"] = NodeTemplate(name='LazyFrame node', item='polars_lazy_frame', input=0, output=1,
|
|
381
|
+
node_group="special", image="", node_type="input", transform_type="other",)
|
|
382
|
+
|
|
383
|
+
return nodes_list, node_dict, node_defaults
|