code0-hercules 1.3.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.
Files changed (258) hide show
  1. code0_hercules-1.3.0.dist-info/METADATA +79 -0
  2. code0_hercules-1.3.0.dist-info/RECORD +258 -0
  3. code0_hercules-1.3.0.dist-info/WHEEL +5 -0
  4. code0_hercules-1.3.0.dist-info/entry_points.txt +2 -0
  5. code0_hercules-1.3.0.dist-info/top_level.txt +1 -0
  6. hercules/__init__.py +81 -0
  7. hercules/_metadata.py +38 -0
  8. hercules/_tsgen/convert.mjs +96 -0
  9. hercules/_tsgen/package-lock.json +366 -0
  10. hercules/_tsgen/package.json +11 -0
  11. hercules/_tucana/__init__.py +29 -0
  12. hercules/_tucana/helpers.py +73 -0
  13. hercules/action.py +345 -0
  14. hercules/actions/__init__.py +21 -0
  15. hercules/actions/execution.py +121 -0
  16. hercules/actions/flow_execution.py +11 -0
  17. hercules/actions/flow_update.py +18 -0
  18. hercules/actions/module_configurations.py +14 -0
  19. hercules/actions/sub_flow_execution.py +14 -0
  20. hercules/cli.py +137 -0
  21. hercules/decorators/__init__.py +0 -0
  22. hercules/decorators/datatype.py +39 -0
  23. hercules/decorators/event.py +35 -0
  24. hercules/decorators/function.py +59 -0
  25. hercules/decorators/meta.py +82 -0
  26. hercules/decorators/runtime_event.py +15 -0
  27. hercules/decorators/runtime_function.py +18 -0
  28. hercules/definitions/__init__.py +162 -0
  29. hercules/definitions/cron_action/__init__.py +0 -0
  30. hercules/definitions/cron_action/data_types/__init__.py +0 -0
  31. hercules/definitions/cron_action/data_types/cron_day_of_month.py +11 -0
  32. hercules/definitions/cron_action/data_types/cron_day_of_week.py +11 -0
  33. hercules/definitions/cron_action/data_types/cron_hour.py +11 -0
  34. hercules/definitions/cron_action/data_types/cron_minute.py +11 -0
  35. hercules/definitions/cron_action/data_types/cron_month.py +11 -0
  36. hercules/definitions/cron_action/runtime_flow_types/__init__.py +0 -0
  37. hercules/definitions/cron_action/runtime_flow_types/cron.py +19 -0
  38. hercules/definitions/rest_action/__init__.py +0 -0
  39. hercules/definitions/rest_action/data_types/__init__.py +0 -0
  40. hercules/definitions/rest_action/data_types/rest_adapter_input.py +19 -0
  41. hercules/definitions/rest_action/data_types/rest_auth_type.py +19 -0
  42. hercules/definitions/rest_action/data_types/rest_auth_value.py +11 -0
  43. hercules/definitions/rest_action/runtime_flow_types/__init__.py +0 -0
  44. hercules/definitions/rest_action/runtime_flow_types/rest.py +20 -0
  45. hercules/definitions/rest_action/runtime_functions/__init__.py +0 -0
  46. hercules/definitions/rest_action/runtime_functions/rest_control_respond.py +21 -0
  47. hercules/definitions/taurus_boolean/__init__.py +0 -0
  48. hercules/definitions/taurus_boolean/data_types/__init__.py +0 -0
  49. hercules/definitions/taurus_boolean/data_types/boolean.py +11 -0
  50. hercules/definitions/taurus_boolean/runtime_functions/__init__.py +0 -0
  51. hercules/definitions/taurus_boolean/runtime_functions/std_boolean_as_number.py +18 -0
  52. hercules/definitions/taurus_boolean/runtime_functions/std_boolean_as_text.py +18 -0
  53. hercules/definitions/taurus_boolean/runtime_functions/std_boolean_from_number.py +18 -0
  54. hercules/definitions/taurus_boolean/runtime_functions/std_boolean_from_text.py +18 -0
  55. hercules/definitions/taurus_boolean/runtime_functions/std_boolean_is_equal.py +19 -0
  56. hercules/definitions/taurus_boolean/runtime_functions/std_boolean_negate.py +18 -0
  57. hercules/definitions/taurus_color/__init__.py +0 -0
  58. hercules/definitions/taurus_color/data_types/__init__.py +0 -0
  59. hercules/definitions/taurus_color/data_types/color.py +17 -0
  60. hercules/definitions/taurus_color/runtime_functions/__init__.py +0 -0
  61. hercules/definitions/taurus_color/runtime_functions/std_color_as_hex.py +18 -0
  62. hercules/definitions/taurus_color/runtime_functions/std_color_as_hsl.py +18 -0
  63. hercules/definitions/taurus_color/runtime_functions/std_color_as_rgb.py +18 -0
  64. hercules/definitions/taurus_color/runtime_functions/std_color_from_hex.py +18 -0
  65. hercules/definitions/taurus_color/runtime_functions/std_color_from_hsl.py +21 -0
  66. hercules/definitions/taurus_color/runtime_functions/std_color_from_rgb.py +21 -0
  67. hercules/definitions/taurus_control/__init__.py +0 -0
  68. hercules/definitions/taurus_control/data_types/__init__.py +0 -0
  69. hercules/definitions/taurus_control/data_types/comparator.py +21 -0
  70. hercules/definitions/taurus_control/data_types/consumer.py +20 -0
  71. hercules/definitions/taurus_control/data_types/predicate.py +20 -0
  72. hercules/definitions/taurus_control/data_types/runnable.py +13 -0
  73. hercules/definitions/taurus_control/data_types/transform.py +20 -0
  74. hercules/definitions/taurus_control/runtime_functions/__init__.py +0 -0
  75. hercules/definitions/taurus_control/runtime_functions/std_control_if.py +19 -0
  76. hercules/definitions/taurus_control/runtime_functions/std_control_if_else.py +21 -0
  77. hercules/definitions/taurus_control/runtime_functions/std_control_return.py +18 -0
  78. hercules/definitions/taurus_control/runtime_functions/std_control_stop.py +16 -0
  79. hercules/definitions/taurus_control/runtime_functions/std_control_value.py +18 -0
  80. hercules/definitions/taurus_date/__init__.py +0 -0
  81. hercules/definitions/taurus_date/data_types/__init__.py +0 -0
  82. hercules/definitions/taurus_date/data_types/date.py +11 -0
  83. hercules/definitions/taurus_date/data_types/hour.py +11 -0
  84. hercules/definitions/taurus_date/data_types/minute.py +11 -0
  85. hercules/definitions/taurus_date/data_types/month.py +22 -0
  86. hercules/definitions/taurus_date/runtime_functions/__init__.py +0 -0
  87. hercules/definitions/taurus_date/runtime_functions/std_date_format.py +20 -0
  88. hercules/definitions/taurus_date/runtime_functions/std_date_from.py +24 -0
  89. hercules/definitions/taurus_date/runtime_functions/std_date_from_text.py +19 -0
  90. hercules/definitions/taurus_date/runtime_functions/std_date_from_unix.py +18 -0
  91. hercules/definitions/taurus_date/runtime_functions/std_date_now.py +16 -0
  92. hercules/definitions/taurus_file/__init__.py +0 -0
  93. hercules/definitions/taurus_file/data_types/__init__.py +0 -0
  94. hercules/definitions/taurus_file/data_types/file.py +19 -0
  95. hercules/definitions/taurus_file/runtime_functions/__init__.py +0 -0
  96. hercules/definitions/taurus_file/runtime_functions/std_file_size.py +18 -0
  97. hercules/definitions/taurus_http/__init__.py +0 -0
  98. hercules/definitions/taurus_http/data_types/__init__.py +0 -0
  99. hercules/definitions/taurus_http/data_types/http_auth_place.py +12 -0
  100. hercules/definitions/taurus_http/data_types/http_auth_type.py +17 -0
  101. hercules/definitions/taurus_http/data_types/http_auth_value.py +11 -0
  102. hercules/definitions/taurus_http/data_types/http_method.py +16 -0
  103. hercules/definitions/taurus_http/data_types/http_payload.py +11 -0
  104. hercules/definitions/taurus_http/data_types/http_request.py +19 -0
  105. hercules/definitions/taurus_http/data_types/http_response.py +18 -0
  106. hercules/definitions/taurus_http/data_types/http_schema.py +31 -0
  107. hercules/definitions/taurus_http/data_types/http_status_code.py +13 -0
  108. hercules/definitions/taurus_http/data_types/http_url.py +13 -0
  109. hercules/definitions/taurus_http/runtime_functions/__init__.py +0 -0
  110. hercules/definitions/taurus_http/runtime_functions/http_request_send.py +26 -0
  111. hercules/definitions/taurus_list/__init__.py +0 -0
  112. hercules/definitions/taurus_list/data_types/__init__.py +0 -0
  113. hercules/definitions/taurus_list/data_types/list.py +13 -0
  114. hercules/definitions/taurus_list/runtime_functions/__init__.py +0 -0
  115. hercules/definitions/taurus_list/runtime_functions/std_list_at.py +20 -0
  116. hercules/definitions/taurus_list/runtime_functions/std_list_concat.py +20 -0
  117. hercules/definitions/taurus_list/runtime_functions/std_list_filter.py +19 -0
  118. hercules/definitions/taurus_list/runtime_functions/std_list_find.py +20 -0
  119. hercules/definitions/taurus_list/runtime_functions/std_list_find_index.py +19 -0
  120. hercules/definitions/taurus_list/runtime_functions/std_list_find_last.py +20 -0
  121. hercules/definitions/taurus_list/runtime_functions/std_list_first.py +18 -0
  122. hercules/definitions/taurus_list/runtime_functions/std_list_flat.py +18 -0
  123. hercules/definitions/taurus_list/runtime_functions/std_list_for_each.py +19 -0
  124. hercules/definitions/taurus_list/runtime_functions/std_list_index_of.py +19 -0
  125. hercules/definitions/taurus_list/runtime_functions/std_list_is_empty.py +18 -0
  126. hercules/definitions/taurus_list/runtime_functions/std_list_join.py +19 -0
  127. hercules/definitions/taurus_list/runtime_functions/std_list_last.py +18 -0
  128. hercules/definitions/taurus_list/runtime_functions/std_list_map.py +19 -0
  129. hercules/definitions/taurus_list/runtime_functions/std_list_max.py +18 -0
  130. hercules/definitions/taurus_list/runtime_functions/std_list_min.py +18 -0
  131. hercules/definitions/taurus_list/runtime_functions/std_list_pop.py +18 -0
  132. hercules/definitions/taurus_list/runtime_functions/std_list_push.py +19 -0
  133. hercules/definitions/taurus_list/runtime_functions/std_list_remove.py +19 -0
  134. hercules/definitions/taurus_list/runtime_functions/std_list_reverse.py +18 -0
  135. hercules/definitions/taurus_list/runtime_functions/std_list_size.py +18 -0
  136. hercules/definitions/taurus_list/runtime_functions/std_list_sort.py +19 -0
  137. hercules/definitions/taurus_list/runtime_functions/std_list_sort_reverse.py +19 -0
  138. hercules/definitions/taurus_list/runtime_functions/std_list_sum.py +18 -0
  139. hercules/definitions/taurus_list/runtime_functions/std_list_to_unique.py +18 -0
  140. hercules/definitions/taurus_number/__init__.py +0 -0
  141. hercules/definitions/taurus_number/data_types/__init__.py +0 -0
  142. hercules/definitions/taurus_number/data_types/number.py +11 -0
  143. hercules/definitions/taurus_number/runtime_functions/__init__.py +0 -0
  144. hercules/definitions/taurus_number/runtime_functions/std_number_abs.py +18 -0
  145. hercules/definitions/taurus_number/runtime_functions/std_number_add.py +19 -0
  146. hercules/definitions/taurus_number/runtime_functions/std_number_arccos.py +18 -0
  147. hercules/definitions/taurus_number/runtime_functions/std_number_arcsin.py +18 -0
  148. hercules/definitions/taurus_number/runtime_functions/std_number_arctan.py +18 -0
  149. hercules/definitions/taurus_number/runtime_functions/std_number_as_text.py +18 -0
  150. hercules/definitions/taurus_number/runtime_functions/std_number_clamp.py +20 -0
  151. hercules/definitions/taurus_number/runtime_functions/std_number_cos.py +18 -0
  152. hercules/definitions/taurus_number/runtime_functions/std_number_cosh.py +18 -0
  153. hercules/definitions/taurus_number/runtime_functions/std_number_divide.py +20 -0
  154. hercules/definitions/taurus_number/runtime_functions/std_number_euler.py +16 -0
  155. hercules/definitions/taurus_number/runtime_functions/std_number_exponential.py +19 -0
  156. hercules/definitions/taurus_number/runtime_functions/std_number_from_text.py +18 -0
  157. hercules/definitions/taurus_number/runtime_functions/std_number_has_digits.py +18 -0
  158. hercules/definitions/taurus_number/runtime_functions/std_number_is_equal.py +19 -0
  159. hercules/definitions/taurus_number/runtime_functions/std_number_is_greater.py +19 -0
  160. hercules/definitions/taurus_number/runtime_functions/std_number_is_less.py +19 -0
  161. hercules/definitions/taurus_number/runtime_functions/std_number_is_positive.py +18 -0
  162. hercules/definitions/taurus_number/runtime_functions/std_number_is_zero.py +18 -0
  163. hercules/definitions/taurus_number/runtime_functions/std_number_ln.py +18 -0
  164. hercules/definitions/taurus_number/runtime_functions/std_number_log.py +19 -0
  165. hercules/definitions/taurus_number/runtime_functions/std_number_max.py +19 -0
  166. hercules/definitions/taurus_number/runtime_functions/std_number_min.py +19 -0
  167. hercules/definitions/taurus_number/runtime_functions/std_number_modulo.py +19 -0
  168. hercules/definitions/taurus_number/runtime_functions/std_number_multiply.py +19 -0
  169. hercules/definitions/taurus_number/runtime_functions/std_number_negate.py +18 -0
  170. hercules/definitions/taurus_number/runtime_functions/std_number_pi.py +16 -0
  171. hercules/definitions/taurus_number/runtime_functions/std_number_random_number.py +19 -0
  172. hercules/definitions/taurus_number/runtime_functions/std_number_remove_digits.py +18 -0
  173. hercules/definitions/taurus_number/runtime_functions/std_number_root.py +19 -0
  174. hercules/definitions/taurus_number/runtime_functions/std_number_round.py +19 -0
  175. hercules/definitions/taurus_number/runtime_functions/std_number_round_down.py +19 -0
  176. hercules/definitions/taurus_number/runtime_functions/std_number_round_up.py +19 -0
  177. hercules/definitions/taurus_number/runtime_functions/std_number_sin.py +18 -0
  178. hercules/definitions/taurus_number/runtime_functions/std_number_sinh.py +18 -0
  179. hercules/definitions/taurus_number/runtime_functions/std_number_square.py +18 -0
  180. hercules/definitions/taurus_number/runtime_functions/std_number_square_root.py +18 -0
  181. hercules/definitions/taurus_number/runtime_functions/std_number_subtract.py +19 -0
  182. hercules/definitions/taurus_number/runtime_functions/std_number_tan.py +18 -0
  183. hercules/definitions/taurus_object/__init__.py +0 -0
  184. hercules/definitions/taurus_object/data_types/__init__.py +0 -0
  185. hercules/definitions/taurus_object/data_types/object.py +13 -0
  186. hercules/definitions/taurus_object/data_types/type.py +13 -0
  187. hercules/definitions/taurus_object/runtime_functions/__init__.py +0 -0
  188. hercules/definitions/taurus_object/runtime_functions/std_object_contains_key.py +19 -0
  189. hercules/definitions/taurus_object/runtime_functions/std_object_get.py +19 -0
  190. hercules/definitions/taurus_object/runtime_functions/std_object_keys.py +18 -0
  191. hercules/definitions/taurus_object/runtime_functions/std_object_set.py +20 -0
  192. hercules/definitions/taurus_object/runtime_functions/std_object_size.py +18 -0
  193. hercules/definitions/taurus_text/__init__.py +0 -0
  194. hercules/definitions/taurus_text/data_types/__init__.py +0 -0
  195. hercules/definitions/taurus_text/data_types/text.py +11 -0
  196. hercules/definitions/taurus_text/data_types/text_encoding.py +13 -0
  197. hercules/definitions/taurus_text/runtime_functions/__init__.py +0 -0
  198. hercules/definitions/taurus_text/runtime_functions/std_text_append.py +19 -0
  199. hercules/definitions/taurus_text/runtime_functions/std_text_as_bytes.py +18 -0
  200. hercules/definitions/taurus_text/runtime_functions/std_text_at.py +19 -0
  201. hercules/definitions/taurus_text/runtime_functions/std_text_byte_size.py +18 -0
  202. hercules/definitions/taurus_text/runtime_functions/std_text_capitalize.py +18 -0
  203. hercules/definitions/taurus_text/runtime_functions/std_text_chars.py +18 -0
  204. hercules/definitions/taurus_text/runtime_functions/std_text_contains.py +19 -0
  205. hercules/definitions/taurus_text/runtime_functions/std_text_decode.py +19 -0
  206. hercules/definitions/taurus_text/runtime_functions/std_text_encode.py +19 -0
  207. hercules/definitions/taurus_text/runtime_functions/std_text_ends_with.py +19 -0
  208. hercules/definitions/taurus_text/runtime_functions/std_text_from_ascii.py +18 -0
  209. hercules/definitions/taurus_text/runtime_functions/std_text_hex.py +18 -0
  210. hercules/definitions/taurus_text/runtime_functions/std_text_index_of.py +19 -0
  211. hercules/definitions/taurus_text/runtime_functions/std_text_insert.py +20 -0
  212. hercules/definitions/taurus_text/runtime_functions/std_text_is_equal.py +19 -0
  213. hercules/definitions/taurus_text/runtime_functions/std_text_length.py +18 -0
  214. hercules/definitions/taurus_text/runtime_functions/std_text_lowercase.py +18 -0
  215. hercules/definitions/taurus_text/runtime_functions/std_text_octal.py +18 -0
  216. hercules/definitions/taurus_text/runtime_functions/std_text_prepend.py +19 -0
  217. hercules/definitions/taurus_text/runtime_functions/std_text_remove.py +20 -0
  218. hercules/definitions/taurus_text/runtime_functions/std_text_replace.py +20 -0
  219. hercules/definitions/taurus_text/runtime_functions/std_text_replace_first.py +21 -0
  220. hercules/definitions/taurus_text/runtime_functions/std_text_replace_last.py +20 -0
  221. hercules/definitions/taurus_text/runtime_functions/std_text_reverse.py +18 -0
  222. hercules/definitions/taurus_text/runtime_functions/std_text_split.py +19 -0
  223. hercules/definitions/taurus_text/runtime_functions/std_text_starts_with.py +19 -0
  224. hercules/definitions/taurus_text/runtime_functions/std_text_swapcase.py +18 -0
  225. hercules/definitions/taurus_text/runtime_functions/std_text_to_ascii.py +18 -0
  226. hercules/definitions/taurus_text/runtime_functions/std_text_trim.py +18 -0
  227. hercules/definitions/taurus_text/runtime_functions/std_text_uppercase.py +18 -0
  228. hercules/events.py +23 -0
  229. hercules/internal/__init__.py +0 -0
  230. hercules/internal/connection.py +37 -0
  231. hercules/internal/literal.py +113 -0
  232. hercules/internal/module_builder.py +261 -0
  233. hercules/internal/pydantic_codegen.py +82 -0
  234. hercules/internal/schema.py +158 -0
  235. hercules/internal/tsgen.py +93 -0
  236. hercules/manager/__init__.py +0 -0
  237. hercules/manager/base.py +73 -0
  238. hercules/manager/config.py +45 -0
  239. hercules/manager/datatype.py +8 -0
  240. hercules/manager/event.py +8 -0
  241. hercules/manager/flow.py +12 -0
  242. hercules/manager/function.py +8 -0
  243. hercules/manager/runtime_event.py +8 -0
  244. hercules/manager/runtime_function.py +8 -0
  245. hercules/map/__init__.py +0 -0
  246. hercules/map/datatype.py +41 -0
  247. hercules/map/event.py +74 -0
  248. hercules/map/function.py +76 -0
  249. hercules/map/runtime_event.py +43 -0
  250. hercules/map/runtime_function.py +64 -0
  251. hercules/models/__init__.py +0 -0
  252. hercules/models/datatype.py +49 -0
  253. hercules/models/event.py +35 -0
  254. hercules/models/function.py +37 -0
  255. hercules/models/runtime_event.py +29 -0
  256. hercules/models/runtime_function.py +33 -0
  257. hercules/schema.py +38 -0
  258. hercules/types.py +88 -0
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::append")
9
+ @Signature("(value: TEXT, suffix: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Append Text"})
11
+ @Description({"code": "en-US", "content": "Returns a new text consisting of the original text followed by the specified suffix."})
12
+ @DisplayMessage({"code": "en-US", "content": "Append ${suffix} at the End of ${value}"})
13
+ @Alias({"code": "en-US", "content": "append;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Original Text"}], "description": [{"code": "en-US", "content": "The base text that will have another text appended to its end."}]})
16
+ @Parameter({"runtime_name": "suffix", "name": [{"code": "en-US", "content": "Suffix"}], "description": [{"code": "en-US", "content": "The text that will be appended to the end of the original text."}]})
17
+ class StdTextAppend(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextAppend.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::as_bytes")
9
+ @Signature("(value: TEXT): LIST<NUMBER>")
10
+ @Name({"code": "en-US", "content": "Text As Bytes"})
11
+ @Description({"code": "en-US", "content": "Converts a text into a list of byte values."})
12
+ @DisplayMessage({"code": "en-US", "content": "${value} As Bytes"})
13
+ @Alias({"code": "en-US", "content": "as_bytes;text;string;std;as;bytes"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text Value"}], "description": [{"code": "en-US", "content": "Converts the input text into a list of byte values."}]})
16
+ class StdTextAsBytes(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextAsBytes.run() is not implemented")
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::at")
9
+ @Signature("(value: TEXT, index: NUMBER): TEXT")
10
+ @Name({"code": "en-US", "content": "Character at Index"})
11
+ @Description({"code": "en-US", "content": "Retrieves a single character from the input text based on the provided zero-based index."})
12
+ @DisplayMessage({"code": "en-US", "content": "Get Character of ${value} at ${index}"})
13
+ @Alias({"code": "en-US", "content": "at;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text Value"}], "description": [{"code": "en-US", "content": "The input text from which a character will be retrieved by index."}]})
16
+ @Parameter({"runtime_name": "index", "name": [{"code": "en-US", "content": "Index"}], "description": [{"code": "en-US", "content": "The zero-based position of the character to extract."}]})
17
+ class StdTextAt(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextAt.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::byte_size")
9
+ @Signature("(value: TEXT): NUMBER")
10
+ @Name({"code": "en-US", "content": "Byte Size"})
11
+ @Description({"code": "en-US", "content": "Computes the size in bytes of the provided text."})
12
+ @DisplayMessage({"code": "en-US", "content": "Byte-Size of ${value}"})
13
+ @Alias({"code": "en-US", "content": "byte_size;text;string;std;byte;size"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text Value"}], "description": [{"code": "en-US", "content": "The text whose byte size is to be calculated."}]})
16
+ class StdTextByteSize(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextByteSize.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::capitalize")
9
+ @Signature("(value: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Capitalize"})
11
+ @Description({"code": "en-US", "content": "Converts the first character of the text to uppercase and leaves the rest unchanged."})
12
+ @DisplayMessage({"code": "en-US", "content": "Capitalize ${value}"})
13
+ @Alias({"code": "en-US", "content": "capitalize;title case;upper first;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text Value"}], "description": [{"code": "en-US", "content": "Capitalizes the first letter of the input text."}]})
16
+ class StdTextCapitalize(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextCapitalize.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::chars")
9
+ @Signature("(value: TEXT): LIST<TEXT>")
10
+ @Name({"code": "en-US", "content": "Characters"})
11
+ @Description({"code": "en-US", "content": "Creates a list where each element is a single character from the original text."})
12
+ @DisplayMessage({"code": "en-US", "content": "Turns ${value} into a List of Characters"})
13
+ @Alias({"code": "en-US", "content": "characters;letters;split;text;string;std;chars"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text Value"}], "description": [{"code": "en-US", "content": "Splits the input text into a list of its constituent characters."}]})
16
+ class StdTextChars(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextChars.run() is not implemented")
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::contains")
9
+ @Signature("(value: TEXT, substring: TEXT): BOOLEAN")
10
+ @Name({"code": "en-US", "content": "Contains Text"})
11
+ @Description({"code": "en-US", "content": "Returns true if the subtext is found anywhere in the main text. Otherwise, returns false."})
12
+ @DisplayMessage({"code": "en-US", "content": "Check if ${value} contains ${substring}"})
13
+ @Alias({"code": "en-US", "content": "contains;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "The main text to search within."}]})
16
+ @Parameter({"runtime_name": "substring", "name": [{"code": "en-US", "content": "Subtext"}], "description": [{"code": "en-US", "content": "The text to search for inside the main text."}]})
17
+ class StdTextContains(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextContains.run() is not implemented")
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::decode")
9
+ @Signature("(value: TEXT, encoding: TEXT_ENCODING): TEXT")
10
+ @Name({"code": "en-US", "content": "Decode Text"})
11
+ @Description({"code": "en-US", "content": "Decodes the input text from the specified encoding format."})
12
+ @DisplayMessage({"code": "en-US", "content": "Decode ${value} using ${encoding}"})
13
+ @Alias({"code": "en-US", "content": "decode;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "The text to decode."}]})
16
+ @Parameter({"runtime_name": "encoding", "name": [{"code": "en-US", "content": "Encoding Type"}], "description": [{"code": "en-US", "content": "The decoding scheme to apply (e.g. Base64)."}]})
17
+ class StdTextDecode(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextDecode.run() is not implemented")
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::encode")
9
+ @Signature("(value: TEXT, encoding: TEXT_ENCODING): TEXT")
10
+ @Name({"code": "en-US", "content": "Encode Text"})
11
+ @Description({"code": "en-US", "content": "Transforms the given text into a representation encoded by the specified encoding scheme."})
12
+ @DisplayMessage({"code": "en-US", "content": "Encode ${value} to ${encoding}"})
13
+ @Alias({"code": "en-US", "content": "encode;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "The text to encode."}]})
16
+ @Parameter({"runtime_name": "encoding", "name": [{"code": "en-US", "content": "Encoding Type"}], "description": [{"code": "en-US", "content": "The encoding scheme to apply (e.g., UTF-8, Base64)."}]})
17
+ class StdTextEncode(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextEncode.run() is not implemented")
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::ends_with")
9
+ @Signature("(value: TEXT, suffix: TEXT): BOOLEAN")
10
+ @Name({"code": "en-US", "content": "Ends With"})
11
+ @Description({"code": "en-US", "content": "Returns true if the input text ends with the given suffix. Otherwise, returns false."})
12
+ @DisplayMessage({"code": "en-US", "content": "Check if ${value} Ends With ${suffix}"})
13
+ @Alias({"code": "en-US", "content": "ends_with;text;string;std;ends;with"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "The input text to check."}]})
16
+ @Parameter({"runtime_name": "suffix", "name": [{"code": "en-US", "content": "Suffix"}], "description": [{"code": "en-US", "content": "The suffix to test against the input text."}]})
17
+ class StdTextEndsWith(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextEndsWith.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::from_ascii")
9
+ @Signature("(value: LIST<NUMBER>): TEXT")
10
+ @Name({"code": "en-US", "content": "Text from ASCII"})
11
+ @Description({"code": "en-US", "content": "Converts a list of ASCII codes back into the corresponding text."})
12
+ @DisplayMessage({"code": "en-US", "content": "${value} to Text"})
13
+ @Alias({"code": "en-US", "content": "from_ascii;text;string;std;from;ascii"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "ASCII Code"}], "description": [{"code": "en-US", "content": "List of ASCII numeric codes representing characters."}]})
16
+ class StdTextFromAscii(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextFromAscii.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::hex")
9
+ @Signature("(value: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Text to Hexadecimal"})
11
+ @Description({"code": "en-US", "content": "Returns a text containing the hexadecimal values corresponding to each character of the input text."})
12
+ @DisplayMessage({"code": "en-US", "content": "${value} to Hexadecimal"})
13
+ @Alias({"code": "en-US", "content": "hex;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Input Text"}], "description": [{"code": "en-US", "content": "The text to be converted to its hexadecimal representation."}]})
16
+ class StdTextHex(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextHex.run() is not implemented")
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::index_of")
9
+ @Signature("(value: TEXT, substring: TEXT): NUMBER")
10
+ @Name({"code": "en-US", "content": "Index Of"})
11
+ @Description({"code": "en-US", "content": "Returns the zero-based index of the first occurrence of the subtext in the text. Returns -1 if the subtext is not found."})
12
+ @DisplayMessage({"code": "en-US", "content": "Get Position of ${substring} Inside ${value}"})
13
+ @Alias({"code": "en-US", "content": "index_of;text;string;std;index;of"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "The text to search within."}]})
16
+ @Parameter({"runtime_name": "substring", "name": [{"code": "en-US", "content": "Subtext"}], "description": [{"code": "en-US", "content": "The subtext to find inside the text."}]})
17
+ class StdTextIndexOf(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextIndexOf.run() is not implemented")
@@ -0,0 +1,20 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::insert")
9
+ @Signature("(value: TEXT, position: NUMBER, text: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Insert Text"})
11
+ @Description({"code": "en-US", "content": "Returns a new text where the provided text is inserted at the zero-based position index within the original text."})
12
+ @DisplayMessage({"code": "en-US", "content": "Insert ${value} at ${position} into ${text}"})
13
+ @Alias({"code": "en-US", "content": "insert;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Original Text"}], "description": [{"code": "en-US", "content": "The original text into which another text will be inserted."}]})
16
+ @Parameter({"runtime_name": "position", "name": [{"code": "en-US", "content": "Position"}], "description": [{"code": "en-US", "content": "Zero-based index indicating where the new text should be inserted."}]})
17
+ @Parameter({"runtime_name": "text", "name": [{"code": "en-US", "content": "Text to Insert"}], "description": [{"code": "en-US", "content": "The text that will be inserted into the original text."}]})
18
+ class StdTextInsert(RuntimeFunctionRunnable):
19
+ def run(self, *args):
20
+ raise NotImplementedError("StdTextInsert.run() is not implemented")
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::is_equal")
9
+ @Signature("(first: TEXT, second: TEXT): BOOLEAN")
10
+ @Name({"code": "en-US", "content": "Is Equal"})
11
+ @Description({"code": "en-US", "content": "Determines if the two given text inputs are exactly the same, returning true if equal, false otherwise."})
12
+ @DisplayMessage({"code": "en-US", "content": "${first} Equals ${second}"})
13
+ @Alias({"code": "en-US", "content": "equal;equals;same;text;string;std;is"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "first", "name": [{"code": "en-US", "content": "First Text"}], "description": [{"code": "en-US", "content": "The first text to compare."}]})
16
+ @Parameter({"runtime_name": "second", "name": [{"code": "en-US", "content": "Second Text"}], "description": [{"code": "en-US", "content": "The second text to compare."}]})
17
+ class StdTextIsEqual(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextIsEqual.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::length")
9
+ @Signature("(value: TEXT): NUMBER")
10
+ @Name({"code": "en-US", "content": "Length"})
11
+ @Description({"code": "en-US", "content": "Returns the number of characters in the given text."})
12
+ @DisplayMessage({"code": "en-US", "content": "Length of ${value}"})
13
+ @Alias({"code": "en-US", "content": "length;size;characters;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "Input text to determine the number of characters it contains."}]})
16
+ class StdTextLength(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextLength.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::lowercase")
9
+ @Signature("(value: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Text to Lowercase"})
11
+ @Description({"code": "en-US", "content": "Returns a new text with all characters converted to lowercase."})
12
+ @DisplayMessage({"code": "en-US", "content": "${value} to Lowercase"})
13
+ @Alias({"code": "en-US", "content": "lowercase;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text Value"}], "description": [{"code": "en-US", "content": "Converts all characters in the input text to lowercase."}]})
16
+ class StdTextLowercase(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextLowercase.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::octal")
9
+ @Signature("(value: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Text to Octal"})
11
+ @Description({"code": "en-US", "content": "Converts a text into an octal representation."})
12
+ @DisplayMessage({"code": "en-US", "content": "${value} to Octal"})
13
+ @Alias({"code": "en-US", "content": "octal;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Input Text"}], "description": [{"code": "en-US", "content": "The text to be converted to its octal representation."}]})
16
+ class StdTextOctal(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextOctal.run() is not implemented")
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::prepend")
9
+ @Signature("(value: TEXT, prefix: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Prepend Text"})
11
+ @Description({"code": "en-US", "content": "Returns a new text consisting of the specified prefix followed by the original text."})
12
+ @DisplayMessage({"code": "en-US", "content": "Prepend ${value} with ${prefix}"})
13
+ @Alias({"code": "en-US", "content": "prepend;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Original Text"}], "description": [{"code": "en-US", "content": "The base text that will have another text prepended to its beginning."}]})
16
+ @Parameter({"runtime_name": "prefix", "name": [{"code": "en-US", "content": "Prefix"}], "description": [{"code": "en-US", "content": "The text that will be added to the start of the original text."}]})
17
+ class StdTextPrepend(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextPrepend.run() is not implemented")
@@ -0,0 +1,20 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::remove")
9
+ @Signature("(value: TEXT, start: NUMBER, end: NUMBER): TEXT")
10
+ @Name({"code": "en-US", "content": "Remove String"})
11
+ @Description({"code": "en-US", "content": "Removes the subtext between the specified start and end indices from the input text."})
12
+ @DisplayMessage({"code": "en-US", "content": "Remove ${value} from ${start}"})
13
+ @Alias({"code": "en-US", "content": "remove;delete;strip;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "The input text from which a subtext will be removed."}]})
16
+ @Parameter({"runtime_name": "start", "name": [{"code": "en-US", "content": "Start Index"}], "description": [{"code": "en-US", "content": "The starting position for removing characters from the text."}]})
17
+ @Parameter({"runtime_name": "end", "name": [{"code": "en-US", "content": "End Index"}], "description": [{"code": "en-US", "content": "The zero-based index where removal ends (exclusive)."}]})
18
+ class StdTextRemove(RuntimeFunctionRunnable):
19
+ def run(self, *args):
20
+ raise NotImplementedError("StdTextRemove.run() is not implemented")
@@ -0,0 +1,20 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::replace")
9
+ @Signature("(value: TEXT, oldText: TEXT, newText: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Replace Subtext"})
11
+ @Description({"code": "en-US", "content": "Returns a new text where every instance of the old subtext is replaced by the new subtext."})
12
+ @DisplayMessage({"code": "en-US", "content": "Replace ${old} with ${new} Inside ${value}"})
13
+ @Alias({"code": "en-US", "content": "replace;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Original Text"}], "description": [{"code": "en-US", "content": "This is the text in which all occurrences of the old subtext will be replaced."}]})
16
+ @Parameter({"runtime_name": "oldText", "name": [{"code": "en-US", "content": "Old Subtext"}], "description": [{"code": "en-US", "content": "All occurrences of this subtext in the original text will be replaced."}]})
17
+ @Parameter({"runtime_name": "newText", "name": [{"code": "en-US", "content": "New Subtext"}], "description": [{"code": "en-US", "content": "This subtext will replace each occurrence of the old subtext."}]})
18
+ class StdTextReplace(RuntimeFunctionRunnable):
19
+ def run(self, *args):
20
+ raise NotImplementedError("StdTextReplace.run() is not implemented")
@@ -0,0 +1,21 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Documentation, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::replace_first")
9
+ @Signature("(value: TEXT, oldText: TEXT, newText: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Replace First Subtext"})
11
+ @Description({"code": "en-US", "content": "Replaces the first occurrence of a specified subtext with another subtext in the input text."})
12
+ @Documentation({"code": "en-US", "content": "Returns a new text where only the first instance of the old subtext is replaced by the new subtext."})
13
+ @DisplayMessage({"code": "en-US", "content": "In ${value} replace first ${old} with ${new}"})
14
+ @Alias({"code": "en-US", "content": "replace_first;text;string;std;replace;first"})
15
+ @DisplayIcon("tabler:abc")
16
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Original Text"}], "description": [{"code": "en-US", "content": "This text contains the subtext that will be replaced only once\u2014the first occurrence."}]})
17
+ @Parameter({"runtime_name": "oldText", "name": [{"code": "en-US", "content": "Old Subtext"}], "description": [{"code": "en-US", "content": "Only the first occurrence of this subtext will be replaced in the original text."}]})
18
+ @Parameter({"runtime_name": "newText", "name": [{"code": "en-US", "content": "New Subtext"}], "description": [{"code": "en-US", "content": "This subtext will replace only the first occurrence of the old subtext."}]})
19
+ class StdTextReplaceFirst(RuntimeFunctionRunnable):
20
+ def run(self, *args):
21
+ raise NotImplementedError("StdTextReplaceFirst.run() is not implemented")
@@ -0,0 +1,20 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::replace_last")
9
+ @Signature("(value: TEXT, oldText: TEXT, newText: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Replace Last Text"})
11
+ @Description({"code": "en-US", "content": "Replaces the last occurrence of a specified subtext with another subtext in the input text."})
12
+ @DisplayMessage({"code": "en-US", "content": "In ${value} replace the last ${old} with ${new}"})
13
+ @Alias({"code": "en-US", "content": "replace_last;text;string;std;replace;last"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Original Text"}], "description": [{"code": "en-US", "content": "This text contains the subtext that will be replaced only once\u2014the last occurrence."}]})
16
+ @Parameter({"runtime_name": "oldText", "name": [{"code": "en-US", "content": "Old Subtext"}], "description": [{"code": "en-US", "content": "Only the last occurrence of this subtext will be replaced in the original text."}]})
17
+ @Parameter({"runtime_name": "newText", "name": [{"code": "en-US", "content": "New Subtext"}], "description": [{"code": "en-US", "content": "This subtext will replace only the last occurrence of the old subtext."}]})
18
+ class StdTextReplaceLast(RuntimeFunctionRunnable):
19
+ def run(self, *args):
20
+ raise NotImplementedError("StdTextReplaceLast.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::reverse")
9
+ @Signature("(value: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Reverse Text"})
11
+ @Description({"code": "en-US", "content": "Returns a new text with the characters of the input text in reverse order."})
12
+ @DisplayMessage({"code": "en-US", "content": "Reverse ${value}"})
13
+ @Alias({"code": "en-US", "content": "reverse;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "The input text to be reversed."}]})
16
+ class StdTextReverse(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextReverse.run() is not implemented")
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::split")
9
+ @Signature("(value: TEXT, delimiter: TEXT): LIST<TEXT>")
10
+ @Name({"code": "en-US", "content": "Split"})
11
+ @Description({"code": "en-US", "content": "Returns a list of subtext obtained by splitting the input text at each occurrence of the delimiter."})
12
+ @DisplayMessage({"code": "en-US", "content": "Splits ${value} on '${delimiter}'"})
13
+ @Alias({"code": "en-US", "content": "split;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "The input text to be split."}]})
16
+ @Parameter({"runtime_name": "delimiter", "name": [{"code": "en-US", "content": "Delimiter"}], "description": [{"code": "en-US", "content": "The delimiter text to split the text by."}]})
17
+ class StdTextSplit(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextSplit.run() is not implemented")
@@ -0,0 +1,19 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::starts_with")
9
+ @Signature("(value: TEXT, prefix: TEXT): BOOLEAN")
10
+ @Name({"code": "en-US", "content": "Starts With"})
11
+ @Description({"code": "en-US", "content": "Returns true if the input text begins with the given prefix. Otherwise, returns false."})
12
+ @DisplayMessage({"code": "en-US", "content": "Check if ${value} starts with ${prefix}"})
13
+ @Alias({"code": "en-US", "content": "text;string;std;start;with;starts"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "The input text to check."}]})
16
+ @Parameter({"runtime_name": "prefix", "name": [{"code": "en-US", "content": "Prefix"}], "description": [{"code": "en-US", "content": "The prefix to test against the input text."}]})
17
+ class StdTextStartsWith(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdTextStartsWith.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::swapcase")
9
+ @Signature("(value: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Swap Case"})
11
+ @Description({"code": "en-US", "content": "Converts uppercase letters to lowercase and lowercase letters to uppercase in the given text."})
12
+ @DisplayMessage({"code": "en-US", "content": "Swapcase of ${value}"})
13
+ @Alias({"code": "en-US", "content": "swapcase;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text Value"}], "description": [{"code": "en-US", "content": "Swaps the case of each letter in the input text: uppercase letters become lowercase, and vice versa."}]})
16
+ class StdTextSwapcase(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextSwapcase.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::to_ascii")
9
+ @Signature("(value: TEXT): LIST<NUMBER>")
10
+ @Name({"code": "en-US", "content": "Text to ASCII"})
11
+ @Description({"code": "en-US", "content": "Returns a list of numbers where each number represents the ASCII code of the corresponding character in the input text."})
12
+ @DisplayMessage({"code": "en-US", "content": "${value} To Ascii"})
13
+ @Alias({"code": "en-US", "content": "to_ascii;text;string;std;to;ascii"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "Input text to convert to ASCII codes."}]})
16
+ class StdTextToAscii(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextToAscii.run() is not implemented")
@@ -0,0 +1,18 @@
1
+ from hercules.models.runtime_function import RuntimeFunctionRunnable
2
+ from hercules.decorators.meta import Alias, Description, DisplayIcon, DisplayMessage, Identifier, Name, Signature
3
+ from hercules.decorators.runtime_function import OmitRuntimeFunction
4
+ from hercules.decorators.function import Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::text::trim")
9
+ @Signature("(value: TEXT): TEXT")
10
+ @Name({"code": "en-US", "content": "Trim Text"})
11
+ @Description({"code": "en-US", "content": "Returns a new text with all leading and trailing whitespace characters removed from the input text."})
12
+ @DisplayMessage({"code": "en-US", "content": "Trim ${value}"})
13
+ @Alias({"code": "en-US", "content": "trim;text;string;std"})
14
+ @DisplayIcon("tabler:abc")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Text Value"}], "description": [{"code": "en-US", "content": "The input text from which leading and trailing whitespace characters will be removed."}]})
16
+ class StdTextTrim(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdTextTrim.run() is not implemented")