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,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::list::max")
9
+ @Signature("(list: LIST<NUMBER>): NUMBER")
10
+ @Name({"code": "en-US", "content": "Find Maximum Number"})
11
+ @Description({"code": "en-US", "content": "Finds the maximum value in a numeric list."})
12
+ @DisplayMessage({"code": "en-US", "content": "Maximum of ${list}"})
13
+ @Alias({"code": "en-US", "content": "max;maximum;largest;greatest;array;list;collection;std"})
14
+ @DisplayIcon("tabler:list")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "List of Numbers"}], "description": [{"code": "en-US", "content": "A list of numbers to find the maximum value from."}]})
16
+ class StdListMax(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdListMax.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::list::min")
9
+ @Signature("(list: LIST<NUMBER>): NUMBER")
10
+ @Name({"code": "en-US", "content": "Find Minimum Number"})
11
+ @Description({"code": "en-US", "content": "Finds the minimum value in a numeric list."})
12
+ @DisplayMessage({"code": "en-US", "content": "Minimum of ${list}"})
13
+ @Alias({"code": "en-US", "content": "min;minimum;smallest;least;array;list;collection;std"})
14
+ @DisplayIcon("tabler:list")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "Number List"}], "description": [{"code": "en-US", "content": "A list of numbers to find the minimum value from."}]})
16
+ class StdListMin(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdListMin.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::list::pop")
9
+ @Signature("<T>(list: LIST<T>): T")
10
+ @Name({"code": "en-US", "content": "Pop from List"})
11
+ @Description({"code": "en-US", "content": "Removes the last element from the specified list and returns it. The list will be modified."})
12
+ @DisplayMessage({"code": "en-US", "content": "Remove Last Item of ${list}"})
13
+ @Alias({"code": "en-US", "content": "pop;array;list;collection;std"})
14
+ @DisplayIcon("tabler:list")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "List"}], "description": [{"code": "en-US", "content": "The list to remove the last item from."}]})
16
+ class StdListPop(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdListPop.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::list::push")
9
+ @Signature("<T>(list: LIST<T>, item: T): NUMBER")
10
+ @Name({"code": "en-US", "content": "Push to List"})
11
+ @Description({"code": "en-US", "content": "Adds a new element to the end of the list and returns the new length of the list."})
12
+ @DisplayMessage({"code": "en-US", "content": "Push ${item} into ${list}"})
13
+ @Alias({"code": "en-US", "content": "push;array;list;collection;std"})
14
+ @DisplayIcon("tabler:list")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "List"}], "description": [{"code": "en-US", "content": "The list to which an item will be added."}]})
16
+ @Parameter({"runtime_name": "item", "name": [{"code": "en-US", "content": "Item"}], "description": [{"code": "en-US", "content": "The value to be added at the end of the list."}]})
17
+ class StdListPush(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdListPush.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::list::remove")
9
+ @Signature("<T>(list: LIST<T>, item: T): LIST<T>")
10
+ @Name({"code": "en-US", "content": "Remove from List"})
11
+ @Description({"code": "en-US", "content": "Removes the first matching item from the given list and returns the resulting list."})
12
+ @DisplayMessage({"code": "en-US", "content": "Remove ${item} from ${list}"})
13
+ @Alias({"code": "en-US", "content": "remove;delete;strip;array;list;collection;std"})
14
+ @DisplayIcon("tabler:list")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "List"}], "description": [{"code": "en-US", "content": "The list from which the item will be removed."}]})
16
+ @Parameter({"runtime_name": "item", "name": [{"code": "en-US", "content": "Item"}], "description": [{"code": "en-US", "content": "The item to remove from the list."}]})
17
+ class StdListRemove(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdListRemove.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::list::reverse")
9
+ @Signature("<T>(list: LIST<T>): LIST<T>")
10
+ @Name({"code": "en-US", "content": "Reverse List"})
11
+ @Description({"code": "en-US", "content": "Returns a new list with the elements of the input list in reverse order."})
12
+ @DisplayMessage({"code": "en-US", "content": "Reverse ${list}"})
13
+ @Alias({"code": "en-US", "content": "reverse;array;list;collection;std"})
14
+ @DisplayIcon("tabler:list")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "List"}], "description": [{"code": "en-US", "content": "The input list to be reversed."}]})
16
+ class StdListReverse(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdListReverse.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::list::size")
9
+ @Signature("<T>(list: LIST<T>): NUMBER")
10
+ @Name({"code": "en-US", "content": "List Size"})
11
+ @Description({"code": "en-US", "content": "This function returns the count of elements present in the given list."})
12
+ @DisplayMessage({"code": "en-US", "content": "Size of ${list}"})
13
+ @Alias({"code": "en-US", "content": "size;array;list;collection;std"})
14
+ @DisplayIcon("tabler:list")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "List"}], "description": [{"code": "en-US", "content": "The list whose number of elements is to be returned."}]})
16
+ class StdListSize(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdListSize.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::list::sort")
9
+ @Signature("<T>(list: LIST<T>, comparator: COMPARATOR<T>): LIST<T>")
10
+ @Name({"code": "en-US", "content": "Sort List"})
11
+ @Description({"code": "en-US", "content": "Returns a new list with the elements sorted according to the comparator function provided."})
12
+ @DisplayMessage({"code": "en-US", "content": "Sort ${list} using ${comparator}"})
13
+ @Alias({"code": "en-US", "content": "sort;array;list;collection;std"})
14
+ @DisplayIcon("tabler:arrow-iteration")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "List"}], "description": [{"code": "en-US", "content": "The input list to be sorted."}]})
16
+ @Parameter({"runtime_name": "comparator", "name": [{"code": "en-US", "content": "Comparator"}], "description": [{"code": "en-US", "content": "A function that takes two elements and returns a negative, zero, or positive number to indicate their ordering."}]})
17
+ class StdListSort(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdListSort.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::list::sort_reverse")
9
+ @Signature("<T>(list: LIST<T>, comparator: COMPARATOR<T>): LIST<T>")
10
+ @Name({"code": "en-US", "content": "Sort List in Reverse"})
11
+ @Description({"code": "en-US", "content": "Returns a new list with the elements sorted in descending order according to the comparator function provided."})
12
+ @DisplayMessage({"code": "en-US", "content": "Reversed-Sort ${list} using ${comparator}"})
13
+ @Alias({"code": "en-US", "content": "sort_reverse;array;list;collection;std;sort;reverse"})
14
+ @DisplayIcon("tabler:arrow-iteration")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "List"}], "description": [{"code": "en-US", "content": "The input list to be sorted in reverse order."}]})
16
+ @Parameter({"runtime_name": "comparator", "name": [{"code": "en-US", "content": "Comparator"}], "description": [{"code": "en-US", "content": "A function that takes two elements and returns a negative, zero, or positive number to indicate their ordering."}]})
17
+ class StdListSortReverse(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdListSortReverse.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::list::sum")
9
+ @Signature("(list: LIST<NUMBER>): NUMBER")
10
+ @Name({"code": "en-US", "content": "Sum of Numbers"})
11
+ @Description({"code": "en-US", "content": "Returns the total sum of the elements in the numeric list."})
12
+ @DisplayMessage({"code": "en-US", "content": "Sum of ${list}"})
13
+ @Alias({"code": "en-US", "content": "sum;total;add all;array;list;collection;std"})
14
+ @DisplayIcon("tabler:list")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "Number List"}], "description": [{"code": "en-US", "content": "Calculates the sum of all numbers in the given list."}]})
16
+ class StdListSum(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdListSum.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::list::to_unique")
9
+ @Signature("<T>(list: LIST<T>): LIST<T>")
10
+ @Name({"code": "en-US", "content": "To Unique"})
11
+ @Description({"code": "en-US", "content": "Returns a new list containing only the unique elements from the input list."})
12
+ @DisplayMessage({"code": "en-US", "content": "Remove duplicates in ${list}"})
13
+ @Alias({"code": "en-US", "content": "to_unique;array;list;collection;std;to;unique"})
14
+ @DisplayIcon("tabler:list")
15
+ @Parameter({"runtime_name": "list", "name": [{"code": "en-US", "content": "List"}], "description": [{"code": "en-US", "content": "The input list from which duplicates will be removed."}]})
16
+ class StdListToUnique(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdListToUnique.run() is not implemented")
File without changes
@@ -0,0 +1,11 @@
1
+ from __future__ import annotations
2
+
3
+ from pydantic import RootModel
4
+
5
+
6
+ class Number(RootModel[float]):
7
+ root: float
8
+
9
+
10
+ from hercules.internal.schema import register_schema
11
+ register_schema(Number, "NUMBER")
@@ -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::number::abs")
9
+ @Signature("(value: NUMBER): NUMBER")
10
+ @Name({"code": "en-US", "content": "Absolute Value"})
11
+ @Description({"code": "en-US", "content": "Removes the sign from the input number, returning its non-negative value."})
12
+ @DisplayMessage({"code": "en-US", "content": "Absolute Value of ${value}"})
13
+ @Alias({"code": "en-US", "content": "absolute;abs;magnitude;number;math;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Number Input"}], "description": [{"code": "en-US", "content": "This is the numeric input. The result will be its absolute (non-negative) value."}]})
16
+ class StdNumberAbs(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdNumberAbs.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::number::add")
9
+ @Signature("(first: NUMBER, second: NUMBER): NUMBER")
10
+ @Name({"code": "en-US", "content": "Add Numbers"})
11
+ @Description({"code": "en-US", "content": "Adds two numbers together."})
12
+ @DisplayMessage({"code": "en-US", "content": "${first} Plus ${second}"})
13
+ @Alias({"code": "en-US", "content": "add;plus;sum;total;number;math;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "first", "name": [{"code": "en-US", "content": "First Number"}], "description": [{"code": "en-US", "content": "The first number to add."}]})
16
+ @Parameter({"runtime_name": "second", "name": [{"code": "en-US", "content": "Second Number"}], "description": [{"code": "en-US", "content": "The second number to add."}]})
17
+ class StdNumberAdd(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdNumberAdd.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::number::arccos")
9
+ @Signature("(value: NUMBER): NUMBER")
10
+ @Name({"code": "en-US", "content": "Arccosine"})
11
+ @Description({"code": "en-US", "content": "Computes the angle in radians whose cosine is the given number."})
12
+ @DisplayMessage({"code": "en-US", "content": "Arccosine of ${value}"})
13
+ @Alias({"code": "en-US", "content": "arccos;acos;inverse cosine;number;math;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Input Number"}], "description": [{"code": "en-US", "content": "Calculates the arccosine (inverse cosine) of the input value."}]})
16
+ class StdNumberArccos(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdNumberArccos.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::number::arcsin")
9
+ @Signature("(value: NUMBER): NUMBER")
10
+ @Name({"code": "en-US", "content": "Arcsine"})
11
+ @Description({"code": "en-US", "content": "Computes the angle in radians whose sine is the given number."})
12
+ @DisplayMessage({"code": "en-US", "content": "Arcsine of ${value}"})
13
+ @Alias({"code": "en-US", "content": "arcsin;asin;inverse sine;number;math;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Value"}], "description": [{"code": "en-US", "content": "Calculates the arcsine (inverse sine) of the input value."}]})
16
+ class StdNumberArcsin(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdNumberArcsin.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::number::arctan")
9
+ @Signature("(value: NUMBER): NUMBER")
10
+ @Name({"code": "en-US", "content": "Arctangent"})
11
+ @Description({"code": "en-US", "content": "Computes the angle in radians whose tangent is the given number."})
12
+ @DisplayMessage({"code": "en-US", "content": "Arctangent of ${value}"})
13
+ @Alias({"code": "en-US", "content": "arctan;atan;inverse tangent;number;math;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Input Value"}], "description": [{"code": "en-US", "content": "Calculates the arctangent (inverse tangent) of the input value."}]})
16
+ class StdNumberArctan(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdNumberArctan.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::number::as_text")
9
+ @Signature("(number: NUMBER): TEXT")
10
+ @Name({"code": "en-US", "content": "Number as Text"})
11
+ @Description({"code": "en-US", "content": "Converts a number into text."})
12
+ @DisplayMessage({"code": "en-US", "content": "Convert ${number} to Text"})
13
+ @Alias({"code": "en-US", "content": "to text;string;format number;number;math;std;as;text"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "number", "name": [{"code": "en-US", "content": "Number"}], "description": [{"code": "en-US", "content": "The number to convert to text."}]})
16
+ class StdNumberAsText(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdNumberAsText.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::number::clamp")
9
+ @Signature("(value: NUMBER, min: NUMBER, max: NUMBER): NUMBER")
10
+ @Name({"code": "en-US", "content": "Clamp Number"})
11
+ @Description({"code": "en-US", "content": "Returns the given number clamped between the minimum and maximum bounds."})
12
+ @DisplayMessage({"code": "en-US", "content": "Clamp ${value} between ${min} and ${max}"})
13
+ @Alias({"code": "en-US", "content": "clamp;limit;bound;number;math;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Number Input"}], "description": [{"code": "en-US", "content": "The input number that will be limited (clamped) to the specified range."}]})
16
+ @Parameter({"runtime_name": "min", "name": [{"code": "en-US", "content": "Minimum"}], "description": [{"code": "en-US", "content": "The minimum allowed value in the clamping operation."}]})
17
+ @Parameter({"runtime_name": "max", "name": [{"code": "en-US", "content": "Maximum"}], "description": [{"code": "en-US", "content": "The maximum allowed value in the clamping operation."}]})
18
+ class StdNumberClamp(RuntimeFunctionRunnable):
19
+ def run(self, *args):
20
+ raise NotImplementedError("StdNumberClamp.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::number::cos")
9
+ @Signature("(radians: NUMBER): NUMBER")
10
+ @Name({"code": "en-US", "content": "Cosine"})
11
+ @Description({"code": "en-US", "content": "Calculates the cosine value of the input angle measured in radians."})
12
+ @DisplayMessage({"code": "en-US", "content": "Cosine of ${radians}"})
13
+ @Alias({"code": "en-US", "content": "cos;cosine;trigonometry;number;math;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "radians", "name": [{"code": "en-US", "content": "Radians"}], "description": [{"code": "en-US", "content": "Computes the cosine of the given angle in radians."}]})
16
+ class StdNumberCos(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdNumberCos.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::number::cosh")
9
+ @Signature("(value: NUMBER): NUMBER")
10
+ @Name({"code": "en-US", "content": "Hyperbolic Cosine"})
11
+ @Description({"code": "en-US", "content": "Calculates the hyperbolic cosine (cosh) of the input value."})
12
+ @DisplayMessage({"code": "en-US", "content": "Hyperbolic Cosine of ${value}"})
13
+ @Alias({"code": "en-US", "content": "cosh;hyperbolic cosine;number;math;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Number Input"}], "description": [{"code": "en-US", "content": "The number for which to calculate the hyperbolic cosine."}]})
16
+ class StdNumberCosh(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdNumberCosh.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 ThrowsError, Parameter
5
+
6
+
7
+ @OmitRuntimeFunction()
8
+ @Identifier("std::number::divide")
9
+ @Signature("(first: NUMBER, second: NUMBER): NUMBER")
10
+ @Name({"code": "en-US", "content": "Divide Numbers"})
11
+ @Description({"code": "en-US", "content": "Returns the result of dividing the first numeric input (dividend) by the second (divisor)."})
12
+ @DisplayMessage({"code": "en-US", "content": "${first} Divided by ${second}"})
13
+ @Alias({"code": "en-US", "content": "divide;division;quotient;div;number;math;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @ThrowsError()
16
+ @Parameter({"runtime_name": "first", "name": [{"code": "en-US", "content": "Dividend"}], "description": [{"code": "en-US", "content": "This is the numerator or the number that will be divided by the second value."}]})
17
+ @Parameter({"runtime_name": "second", "name": [{"code": "en-US", "content": "Divisor"}], "description": [{"code": "en-US", "content": "This is the denominator or the value that divides the first number."}]})
18
+ class StdNumberDivide(RuntimeFunctionRunnable):
19
+ def run(self, *args):
20
+ raise NotImplementedError("StdNumberDivide.run() is not implemented")
@@ -0,0 +1,16 @@
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
+
5
+
6
+ @OmitRuntimeFunction()
7
+ @Identifier("std::number::euler")
8
+ @Signature("(): NUMBER")
9
+ @Name({"code": "en-US", "content": "Euler's Number"})
10
+ @Description({"code": "en-US", "content": "Provides the constant value of Euler's number, approximately 2.71828, which is the base of the natural logarithm."})
11
+ @DisplayMessage({"code": "en-US", "content": "Euler's Number"})
12
+ @Alias({"code": "en-US", "content": "euler;number;math;std"})
13
+ @DisplayIcon("tabler:math-function")
14
+ class StdNumberEuler(RuntimeFunctionRunnable):
15
+ def run(self, *args):
16
+ raise NotImplementedError("StdNumberEuler.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::number::exponential")
9
+ @Signature("(base: NUMBER, exponent: NUMBER): NUMBER")
10
+ @Name({"code": "en-US", "content": "Exponential"})
11
+ @Description({"code": "en-US", "content": "Computes the result of raising the base to the power specified by the exponent."})
12
+ @DisplayMessage({"code": "en-US", "content": "${base} to the Exponent of ${exponent}"})
13
+ @Alias({"code": "en-US", "content": "exponential;exp;e power;number;math;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "base", "name": [{"code": "en-US", "content": "Base"}], "description": [{"code": "en-US", "content": "This is the numeric value that will be raised to the power of the exponent."}]})
16
+ @Parameter({"runtime_name": "exponent", "name": [{"code": "en-US", "content": "Exponent"}], "description": [{"code": "en-US", "content": "This numeric value indicates the power to which the base is raised."}]})
17
+ class StdNumberExponential(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdNumberExponential.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::number::from_text")
9
+ @Signature("(text: TEXT): NUMBER")
10
+ @Name({"code": "en-US", "content": "Number from Text"})
11
+ @Description({"code": "en-US", "content": "Attempts to parse the provided text input and return its numeric equivalent."})
12
+ @DisplayMessage({"code": "en-US", "content": "Convert ${text} to Number"})
13
+ @Alias({"code": "en-US", "content": "from text;parse;convert;number;math;std;from;text"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "text", "name": [{"code": "en-US", "content": "Text"}], "description": [{"code": "en-US", "content": "The text string to convert to a number."}]})
16
+ class StdNumberFromText(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdNumberFromText.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::number::has_digits")
9
+ @Signature("(number: NUMBER): BOOLEAN")
10
+ @Name({"code": "en-US", "content": "Has Digits in Number"})
11
+ @Description({"code": "en-US", "content": "Checks if the given number contains any digit characters"})
12
+ @DisplayMessage({"code": "en-US", "content": "Does ${number} have digits"})
13
+ @Alias({"code": "en-US", "content": "has;digits;contains;number;std"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "number", "name": [{"code": "en-US", "content": "Number Input"}], "description": [{"code": "en-US", "content": "The number to check for digit characters."}]})
16
+ class StdNumberHasDigits(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdNumberHasDigits.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::number::is_equal")
9
+ @Signature("(first: NUMBER, second: NUMBER): BOOLEAN")
10
+ @Name({"code": "en-US", "content": "Is Equal"})
11
+ @Description({"code": "en-US", "content": "Returns true if the first number is equal to the second number, otherwise false."})
12
+ @DisplayMessage({"code": "en-US", "content": "${first} Equals ${second}"})
13
+ @Alias({"code": "en-US", "content": "equal;equals;same;number;math;std;is"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "first", "name": [{"code": "en-US", "content": "First Number"}], "description": [{"code": "en-US", "content": "The first number to compare."}]})
16
+ @Parameter({"runtime_name": "second", "name": [{"code": "en-US", "content": "Second Number"}], "description": [{"code": "en-US", "content": "The second number to compare."}]})
17
+ class StdNumberIsEqual(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdNumberIsEqual.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::number::is_greater")
9
+ @Signature("(first: NUMBER, second: NUMBER): BOOLEAN")
10
+ @Name({"code": "en-US", "content": "Is Greater"})
11
+ @Description({"code": "en-US", "content": "Returns true if the first numeric input is greater than the second; otherwise, returns false."})
12
+ @DisplayMessage({"code": "en-US", "content": "${first} Is Greater than ${second}"})
13
+ @Alias({"code": "en-US", "content": "greater;larger;more;number;math;std;is"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "first", "name": [{"code": "en-US", "content": "First Number"}], "description": [{"code": "en-US", "content": "This is the number that will be evaluated to determine if it is greater than the second number."}]})
16
+ @Parameter({"runtime_name": "second", "name": [{"code": "en-US", "content": "Second Number"}], "description": [{"code": "en-US", "content": "This is the number that the first number will be compared to."}]})
17
+ class StdNumberIsGreater(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdNumberIsGreater.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::number::is_less")
9
+ @Signature("(first: NUMBER, second: NUMBER): BOOLEAN")
10
+ @Name({"code": "en-US", "content": "Is Less"})
11
+ @Description({"code": "en-US", "content": "Returns true if the first numeric input is less than the second; otherwise, returns false."})
12
+ @DisplayMessage({"code": "en-US", "content": "${first} Less than ${second}"})
13
+ @Alias({"code": "en-US", "content": "less;smaller;fewer;number;math;std;is"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "first", "name": [{"code": "en-US", "content": "First Number"}], "description": [{"code": "en-US", "content": "This is the number that will be evaluated to determine if it is less than the second number."}]})
16
+ @Parameter({"runtime_name": "second", "name": [{"code": "en-US", "content": "Second Number"}], "description": [{"code": "en-US", "content": "This is the number that the first number will be compared to."}]})
17
+ class StdNumberIsLess(RuntimeFunctionRunnable):
18
+ def run(self, *args):
19
+ raise NotImplementedError("StdNumberIsLess.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::number::is_positive")
9
+ @Signature("(value: NUMBER): BOOLEAN")
10
+ @Name({"code": "en-US", "content": "Is Positive Number"})
11
+ @Description({"code": "en-US", "content": "Evaluates the input number and returns true if it is positive (greater than zero), otherwise false."})
12
+ @DisplayMessage({"code": "en-US", "content": "${value} Is Greater than 0"})
13
+ @Alias({"code": "en-US", "content": "positive;greater than zero;number;math;std;is"})
14
+ @DisplayIcon("tabler:math-function")
15
+ @Parameter({"runtime_name": "value", "name": [{"code": "en-US", "content": "Value"}], "description": [{"code": "en-US", "content": "The number to check for positivity."}]})
16
+ class StdNumberIsPositive(RuntimeFunctionRunnable):
17
+ def run(self, *args):
18
+ raise NotImplementedError("StdNumberIsPositive.run() is not implemented")