Repository navigation
Expand file tree
/
Copy pathconf.yaml
More file actions
1330 lines (1307 loc) · 30.2 KB
/
Copy pathconf.yaml
File metadata and controls
1330 lines (1307 loc) · 30.2 KB
1
2
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
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
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
interpreter_version: v1.0
bricks:
# - name: add_two_numbers
# display_name: 'Add 2 NUMBERS'
# short_description: Receives two numeric inputs and returns their sum, allowing for arithmetic calculations.
# description: |
# 
# # Heading 1
# ## Heading 2
# ### Heading 3
# #### Heading 4
# ##### Heading 5
# ###### Heading 6
# Lorem **ipsum dolor** sit amet, [Google](https://www.google.com) consectetur adipiscing elit. Curabitur rhoncus, justo eget volutpat semper, erat sapien mollis elit, eget congue est augue et metus. Proin sit amet libero id eros vestibulum consequat. Vivamus posuere, elit vitae interdum sollicitudin, risus justo egestas velit, vitae dapibus odio orci vitae nunc.
# **Fusce sed enim volutpat**, Lorem *ipsum dolor sit amet*, consectetur adipiscing elit. Curabitur rhoncus, justo eget volutpat semper, erat sapien mollis elit, eget congue est augue et metus. Proin sit amet libero id eros vestibulum consequat. Vivamus posuere, elit vitae interdum sollicitudin, risus justo egestas velit, vitae dapibus odio orci vitae nunc. Fusce sed enim volutpat.
# Fusce sed enim volutpat:
# - Item 1
# - Item 2
# ---
# Fusce sed enim volutpat:
# 1. First item
# 2. Second item
# > This is a blockquote
# `requirements==1.2`
# And a code blpck here:
# ```
# from django.conf import settings
# for x in y:
# print(x)
# ```
# ---
# For each thing there is a ~~strikethrough~~ to show!
# | Header 1 | Header 2 |
# |----------|----------|
# | Cell 1 | Cell 2 |
# | Cell 3 | Cell 4 |
# - [x] Task 1 (completed)
# - [ ] Task 2 (not completed)
# is this emoji working?? :smile:
# Term 1
# : Definition 1
# Term 2
# : Definition 2
# content in paragraph with footnote[^1] markup.
# [^1]: footnote explain
# The HTML specification
# is maintained by the W3C.
# *[HTML]: Hyper Text Markup Language
# *[W3C]: World Wide Web Consortium
# Hello~subscript~
# CH~3~CH~2~OH
# here for testing Math:
# function $f$
# $$
# c = \pm\sqrt{a^2 + b^2}
# $$
# type: function
# status: dev
# icon: plus
# python_compatibility:
# - '3.10'
# - '3.9'
# - '3.8'
# file_path: basic_operations.py
# category: basic operations
# version: 1.0.0
# output_prefix: added
# inputs:
# a:
# type: number
# b:
# type: number
# outputs:
# result:
# type: float
# options:
# - name: Has_Value
# type: toggle
# default: false
# - name: Learning_Rate
# type: number
# step: .1
# max: 5
# min: -5
# default: 0
# - name: Algorithm
# type: select
# choices:
# - algo1
# - advanced algorithm
# - another algo
# default: another algo
# - name: Project_Name
# type: input
# default: this is default text
# max_characters: 50
# - name: Prompt
# type: textarea
# default: this is default text a bit more extensive than others
# max_characters: 1000
# - name: safe_divide
# short_description: Performs division of two numbers; if the denominator is zero, it returns a safe value.
# type: function
# icon: divide
# file_path: basic_operations.py
# category: basic operations
# version: 0.2.0
# output_prefix: divided
# inputs:
# a:
# type: float
# b:
# type: float
# outputs:
# result:
# type: float
# - name: modulo
# short_description: Takes two numbers as input, divides the first by the second, and returns the remainder.
# type: function
# icon: square-root-variable
# file_path: basic_operations.py
# category: basic operations
# version: 2.2.0
# inputs:
# a:
# type: number
# b:
# type: float
# outputs:
# result:
# type: float
# - name: str2int
# short_description: Takes text and convert it to integer.
# type: function
# icon: font
# file_path: basic_operations.py
# category: basic operations
# version: 1.2.0
# inputs:
# text:
# type: str
# outputs:
# integer_number:
# type: int
# - name: list_to_vector
# short_description: Accepts a list of numerical values and transforms it into a mathematical vector object.
# type: function
# icon: bezier-curve
# file_path: matrix/matrix_and_vectors.py
# requirements:
# - numpy
# prefix: array
# inputs:
# numbers:
# type: list
# outputs:
# list:
# type: numpytensor
- name: text_entry
display_name: 'Text'
short_description: Textual input not exceeding 4096 characters.
type: entry
icon: keyboard
entry_type: text
category: entries
version: 1.2.0
outputs:
text_entry:
type: str
- name: textarea_entry
display_name: 'Multiline Text'
short_description: Multiline textual input that you can use as a manual entry.
type: entry
icon: keyboard
entry_type: textarea
category: entries
version: 1.0.0
outputs:
textarea_entry:
type: str
- name: folder_entry
display_name: 'Folder Selection'
short_description: Folder selection on your own machine.
type: entry
icon: folder-open
entry_type: folder
category: entries
version: 1.0.0
outputs:
folder_entry:
type: str
- name: file_entry
display_name: 'File Selection'
short_description: File selection on your own machine.
type: entry
icon: file
entry_type: file
category: entries
version: 1.0.0
outputs:
file_entry:
type: str
# - name: bar_chart
# display_name: 'Bar Chart'
# short_description: A bar chart visualizes data using rectangular bars, with lengths proportional to the data values.
# type: graph
# icon: chart-simple
# category: graphs
# inputs:
# y:
# type: list
# x:
# type: any
# optional_inputs:
# x: []
# - name: generate_random_numbers
# short_description: random array of integers.
# type: function
# icon: list
# file_path: basic_operations.py
# category: random operators
# version: 1.1.1
# outputs:
# random_list:
# type: number[]
- name: compute_mean
short_description: computing the mean of a list of number.
type: function
icon: calculator
file_path: basic_operations.py
category: basic operations
version: 1.1.1
inputs:
numbers:
type: list
outputs:
random_list:
type: float
# - name: number_of_characters
# short_description: Compute the number of characters in a text.
# type: function
# icon: font
# file_path: basic_operations.py
# category: text processing
# version: 7.2.0
# inputs:
# text:
# type: str
# outputs:
# count:
# type: int
- name: table_chart
display_name: 'Table'
short_description: A table representing data.
type: graph
icon: table
category: graphs
inputs:
data:
type: keypairlist
# - name: generate_fake_dicts
# short_description: Generate fake data of type keypairlist.
# type: function
# icon: asterisk
# file_path: basic_operations.py
# category: basic operations
# version: 5.2.0
# inputs:
# num_dicts:
# type: int
# outputs:
# fake_data:
# type: keypairlist
# control nodes
- name: if_condition
display_name: 'If'
type: control
icon: arrows-split-up-and-left
category: flow control
version: 1.0.0
inputs:
condition:
type: bool
- name: if_any_condition
display_name: 'If Any'
type: control
icon: arrows-split-up-and-left
category: flow control
version: 1.0.0
inputs:
any:
type: any
- name: for_loop
display_name: 'For'
type: control
icon: repeat
category: flow control
version: 1.0.0
inputs:
start:
type: int
end:
type: int
outputs:
index:
type: int
options:
- name: start
type: integer
step: 1
max: 10000000000
min: -10000000000
default: 0
- name: end
type: integer
step: 1
max: 10000000000
min: -10000000000
default: 10
- name: for_each_loop
display_name: 'For Each'
type: control
icon: repeat
category: flow control
version: 1.0.0
inputs:
list:
type: iterable
outputs:
element:
type: any
index:
type: int
- name: while_loop
display_name: 'While'
type: control
icon: repeat
category: flow control
version: 1.0.0
inputs:
cond:
type: bool
- name: try_catch
display_name: 'Try Catch'
type: control
icon: triangle-exclamation
category: flow control
version: 1.0.0
- name: sequence
display_name: 'Execution Order'
type: control
icon: list-ol
category: flow control
version: 1.0.0
- name: create_variable
display_name: 'New variable'
type: variable
icon: code
category: variables
version: 1.0.0
inputs:
value:
type: any
- name: get_variable
display_name: 'Get variable'
type: variable
icon: code
category: variables
version: 1.0.0
outputs:
value:
type: any
- name: set_variable
display_name: 'Set variable'
type: variable
icon: code
category: variables
version: 1.0.0
inputs:
value:
type: any
- name: as_is
short_description: get integer and return integer
type: function
icon: cube
file_path: basic_operations.py
category: basic operations
version: 1.2.0
inputs:
number:
type: int
outputs:
number:
type: int
# test here
- name: read_text_file
display_name: 'Read Text File'
short_description: Read the content of a text file and return it as a text.
type: function
icon: file-lines
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
file_path:
type: str
outputs:
file_content:
type: str
- name: generate_random_text
display_name: 'Generate Text'
short_description: Generating a random text.
type: function
icon: font
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
n:
type: int
outputs:
generated_text:
type: str
options:
- name: is_words
display_name: Generate Words
type: toggle
default: false
- name: reference_text
display_name: Reference Words
type: textarea
default: this is default text a bit more extensive than others
max_characters: 1000
- name: generate_random_integer
display_name: 'Generate Integer'
short_description: Generating a random integer value.
type: function
icon: '9'
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
outputs:
random_integer:
type: int
options:
- name: min_value
type: integer
step: 1
max: 10
min: 0
default: 0
- name: max_value
type: integer
step: 1
max: 200
min: 0
default: 100
- name: create_file_with_content
display_name: 'Create File'
short_description: Create a text file with a text content.
type: function
icon: file-lines
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
text_content:
type: str
file_path:
type: str
file_name:
type: str
outputs:
file_location:
type: str
- name: list_files_in_folder
display_name: 'List of files'
short_description: List of files with there size in KB.
type: function
icon: table-list
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
folder_path:
type: str
outputs:
file_list:
type: keypairlist
- name: get_values_from_list_of_dicts
display_name: 'Extract values list'
short_description: Extract values of an attribute from a key-pair list.
type: function
icon: list
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
dict_list:
type: keypairlist
key:
type: str
outputs:
values_list:
type: list
- name: count_characters
display_name: 'Count Characters'
short_description: count the number of characters.
type: function
icon: stopwatch-20
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
text:
type: str
outputs:
char_count:
type: int
- name: count_words
display_name: 'Count Words'
short_description: count the number of words.
type: function
icon: stopwatch-20
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
text:
type: str
outputs:
word_count:
type: int
- name: create_folder_if_not_exists
display_name: 'Create Folder'
short_description: create a folder.
type: function
icon: folder
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
folder_path:
type: str
outputs:
folder_path:
type: str
- name: move_file
display_name: 'Move File'
short_description: move file to a new destination.
type: function
icon: folder-tree
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
source_path:
type: str
destination_folder:
type: str
- name: update_file_name
display_name: 'Update Name'
short_description: Update file name.
type: function
icon: pen-clip
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
old_file_path:
type: str
new_file_name:
type: str
outputs:
new_file_path:
type: str
- name: delete_file
display_name: 'Delete File'
short_description: Delete file.
type: function
icon: trash-can
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
file_path:
type: str
- name: concatenate_strings_with_separator
display_name: 'Concatenate'
short_description: Concatenate two texts.
type: function
icon: font
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
string1:
type: str
string2:
type: str
outputs:
result_string:
type: str
options:
- name: separator
type: input
default: _
- name: parse_integer_to_text
display_name: 'Int to Str'
short_description: Convert integer to string.
type: function
icon: font
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
number:
type: int
outputs:
text_representation:
type: str
- name: generate_random_integers
display_name: 'Generate Integer List'
short_description: generaye a list of random integer values.
type: function
icon: list
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
n:
type: int
outputs:
int_list:
type: list
- name: create_3d_vector
display_name: 'Create Vector'
short_description: Create a 3D vector.
type: function
icon: vector-square
requirements:
- numpy
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
list1:
type: list
list2:
type: list
list3:
type: list
outputs:
vector:
type: vector
- name: scalar_product
display_name: 'Scalar Product'
short_description: Scalar product of two vectors.
type: function
icon: vector-square
requirements:
- numpy
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
vector1:
type: vector
vector2:
type: vector
outputs:
product:
type: int
- name: append_to_list
display_name: 'Append Value to List'
short_description: Append a value to list.
type: function
icon: bars-staggered
file_path: sequential_testing.py
category: Files & Folders
version: 0.2.0
inputs:
lst:
type: list
value:
type: int
outputs:
lst:
type: list
- name: greater_or_equal_than
display_name: 'a ≥ b'
short_description: Append a value to list.
type: function
icon: cube
file_path: sequential_testing.py
category: logical comparators
version: 0.2.0
inputs:
a:
type: number
b:
type: number
outputs:
result:
type: bool
- name: connect_to_external_service
display_name: 'Socket Service'
short_description: a test for docker configuration, just a socket client that tries to connect to something.
type: function
icon: tower-broadcast
# requirements:
# - numpy
file_path: docker_testing.py
category: Docker Testing
version: 0.2.0
inputs:
host:
type: str
outputs:
response:
type: str
docker:
ports:
- target: 12345
published: 12345
protocol: tcp
volumes:
- name: db-volume
container-path: /another_folder/data
secrets:
- name: postgres_password
env: POSTGRES_PASSWORD_FILE
- name: get_database_session
display_name: 'PostgreSQL'
short_description: Connection to 'PostgreSQL'.
type: function
icon: database
requirements:
- sqlalchemy
- psycopg2
file_path: docker_testing.py
category: Docker Testing
version: 0.2.0
outputs:
session:
type: any
options:
- name: db_name
display_name: DB Name
type: input
- name: db_user
display_name: DB User
type: input
- name: db_password
display_name: DB Password
type: input
- name: db_host
display_name: DB Host
type: input
docker:
service: db-postgres
image: postgres
image-version: 16
ports:
- target: 5432
published: 5432
protocol: tcp
volumes:
- name: db-volume
container-path: /data
networks:
- backend
secrets:
- name: postgres_password
env: POSTGRES_PASSWORD_FILE
# -------------------------------------------------------------------------------------------------------------------------------- #
# UI Editor Bricks #
# -------------------------------------------------------------------------------------------------------------------------------- #
- name: text_placeholder
display_name: 'Text'
type: ui
icon: font
category: Streamlit
version: 0.2.0
inputs:
text:
type: str
- name: image
display_name: 'Image'
type: ui
icon: image
category: Streamlit
version: 0.2.0
inputs:
image:
type: streamlit_image
caption:
type: str
optional_inputs:
caption: caption
options:
- name: channels
display_name: Channels
type: select
choices:
- RGB
- BGR
default: RGB
- name: output_format
display_name: Output Format
type: select
choices:
- auto
- JPEG
- PNG
default: auto
- name: video
display_name: Video
type: ui
icon: video
category: Streamlit
version: 0.2.0
inputs:
video:
type: streamlit_video
options:
- name: format
display_name: Format
type: select
choices:
- video/mp4
- video/webm
- video/ogg
default: video/mp4
- name: map
display_name: Map
type: ui
icon: map
category: Streamlit
version: 0.2.0
inputs:
data:
type: streamlit_data
options:
- name: size
display_name: Size attribute
type: input
max_characters: 50
- name: color
display_name: Color attribute
type: input
max_characters: 50
- name: number_input
display_name: 'Number'
type: ui
icon: hashtag
category: Streamlit
version: 0.2.0
inputs:
number:
type: number
is_disabled:
type: bool
optional_inputs:
number: value
is_disabled: isDisabled
outputs:
number:
type: number
- name: text_input
display_name: 'Text input'
type: ui
icon: font
category: Streamlit
version: 0.2.0
inputs:
text:
type: str
is_disabled:
type: bool
optional_inputs:
text: value
is_disabled: isDisabled
outputs:
text:
type: str
- name: textarea_input
display_name: 'Textarea'
type: ui
icon: font
category: Streamlit
version: 0.2.0
inputs:
text:
type: str
is_disabled:
type: bool
optional_inputs:
text: value
is_disabled: isDisabled
outputs:
text:
type: str
- name: select
display_name: 'Select'
type: ui
icon: hand-pointer
category: Streamlit
version: 0.2.0
inputs:
options:
type: iterable
index:
type: int
is_disabled:
type: bool
optional_inputs:
options: options
is_disabled: isDisabled
index: index
outputs:
option:
type: any
- name: multiselect
display_name: 'Multiselect'
type: ui
icon: hand-pointer
category: Streamlit
version: 0.2.0
inputs:
options:
type: iterable
default:
type: iterable
is_disabled:
type: bool
optional_inputs:
options: options
is_disabled: isDisabled
default: selected
outputs:
option:
type: list
- name: button
display_name: 'Button'
type: ui
icon: square
category: Streamlit
version: 0.2.0
inputs:
is_disabled:
type: bool
optional_inputs:
is_disabled: isDisabled
outputs:
clicked:
type: bool
- name: radio
display_name: 'Radio'
type: ui
icon: circle-dot
category: Streamlit
version: 0.2.0
inputs:
options:
type: iterable
index:
type: int
is_disabled:
type: bool
optional_inputs:
options: options
is_disabled: isDisabled
index: index
outputs:
option:
type: any