code0-hercules 1.7.2__tar.gz → 1.9.0__tar.gz

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 (271) hide show
  1. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/PKG-INFO +2 -2
  2. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/code0_hercules.egg-info/PKG-INFO +2 -2
  3. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/code0_hercules.egg-info/requires.txt +1 -1
  4. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/internal/literal.py +7 -1
  5. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/types.py +5 -2
  6. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/pyproject.toml +2 -2
  7. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/tests/test_execution.py +40 -0
  8. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/tests/test_literal.py +17 -2
  9. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/README.md +0 -0
  10. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/code0_hercules.egg-info/SOURCES.txt +0 -0
  11. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/code0_hercules.egg-info/dependency_links.txt +0 -0
  12. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/code0_hercules.egg-info/entry_points.txt +0 -0
  13. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/code0_hercules.egg-info/top_level.txt +0 -0
  14. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/__init__.py +0 -0
  15. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/_metadata.py +0 -0
  16. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/_tsgen/convert.mjs +0 -0
  17. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/_tsgen/package-lock.json +0 -0
  18. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/_tsgen/package.json +0 -0
  19. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/_tucana/__init__.py +0 -0
  20. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/_tucana/helpers.py +0 -0
  21. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/action.py +0 -0
  22. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/actions/__init__.py +0 -0
  23. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/actions/execution.py +0 -0
  24. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/actions/flow_execution.py +0 -0
  25. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/actions/flow_update.py +0 -0
  26. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/actions/module_configurations.py +0 -0
  27. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/actions/sub_flow_execution.py +0 -0
  28. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/cli.py +0 -0
  29. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/decorators/__init__.py +0 -0
  30. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/decorators/datatype.py +0 -0
  31. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/decorators/event.py +0 -0
  32. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/decorators/function.py +0 -0
  33. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/decorators/meta.py +0 -0
  34. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/decorators/runtime_event.py +0 -0
  35. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/decorators/runtime_function.py +0 -0
  36. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/__init__.py +0 -0
  37. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/cron_action/__init__.py +0 -0
  38. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/cron_action/data_types/__init__.py +0 -0
  39. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/cron_action/data_types/cron_day_of_month.py +0 -0
  40. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/cron_action/data_types/cron_day_of_week.py +0 -0
  41. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/cron_action/data_types/cron_hour.py +0 -0
  42. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/cron_action/data_types/cron_minute.py +0 -0
  43. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/cron_action/data_types/cron_month.py +0 -0
  44. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/cron_action/runtime_flow_types/__init__.py +0 -0
  45. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/cron_action/runtime_flow_types/cron.py +0 -0
  46. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/rest_action/__init__.py +0 -0
  47. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/rest_action/data_types/__init__.py +0 -0
  48. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/rest_action/data_types/rest_adapter_input.py +0 -0
  49. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/rest_action/data_types/rest_auth_type.py +0 -0
  50. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/rest_action/data_types/rest_auth_value.py +0 -0
  51. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/rest_action/runtime_flow_types/__init__.py +0 -0
  52. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/rest_action/runtime_flow_types/rest.py +0 -0
  53. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/rest_action/runtime_functions/__init__.py +0 -0
  54. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/rest_action/runtime_functions/rest_control_respond.py +0 -0
  55. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_boolean/__init__.py +0 -0
  56. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_boolean/data_types/__init__.py +0 -0
  57. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_boolean/data_types/boolean.py +0 -0
  58. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_boolean/runtime_functions/__init__.py +0 -0
  59. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_as_number.py +0 -0
  60. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_as_text.py +0 -0
  61. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_from_number.py +0 -0
  62. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_from_text.py +0 -0
  63. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_is_equal.py +0 -0
  64. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_negate.py +0 -0
  65. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_color/__init__.py +0 -0
  66. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_color/data_types/__init__.py +0 -0
  67. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_color/data_types/color.py +0 -0
  68. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_color/runtime_functions/__init__.py +0 -0
  69. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_color/runtime_functions/std_color_as_hex.py +0 -0
  70. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_color/runtime_functions/std_color_as_hsl.py +0 -0
  71. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_color/runtime_functions/std_color_as_rgb.py +0 -0
  72. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_color/runtime_functions/std_color_from_hex.py +0 -0
  73. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_color/runtime_functions/std_color_from_hsl.py +0 -0
  74. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_color/runtime_functions/std_color_from_rgb.py +0 -0
  75. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/__init__.py +0 -0
  76. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/data_types/__init__.py +0 -0
  77. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/data_types/comparator.py +0 -0
  78. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/data_types/consumer.py +0 -0
  79. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/data_types/predicate.py +0 -0
  80. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/data_types/runnable.py +0 -0
  81. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/data_types/transform.py +0 -0
  82. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/runtime_functions/__init__.py +0 -0
  83. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/runtime_functions/std_control_if.py +0 -0
  84. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/runtime_functions/std_control_if_else.py +0 -0
  85. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/runtime_functions/std_control_return.py +0 -0
  86. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/runtime_functions/std_control_stop.py +0 -0
  87. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_control/runtime_functions/std_control_value.py +0 -0
  88. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/__init__.py +0 -0
  89. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/data_types/__init__.py +0 -0
  90. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/data_types/date.py +0 -0
  91. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/data_types/hour.py +0 -0
  92. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/data_types/minute.py +0 -0
  93. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/data_types/month.py +0 -0
  94. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/runtime_functions/__init__.py +0 -0
  95. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/runtime_functions/std_date_format.py +0 -0
  96. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/runtime_functions/std_date_from.py +0 -0
  97. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/runtime_functions/std_date_from_text.py +0 -0
  98. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/runtime_functions/std_date_from_unix.py +0 -0
  99. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_date/runtime_functions/std_date_now.py +0 -0
  100. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_file/__init__.py +0 -0
  101. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_file/data_types/__init__.py +0 -0
  102. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_file/data_types/file.py +0 -0
  103. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_file/runtime_functions/__init__.py +0 -0
  104. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_file/runtime_functions/std_file_size.py +0 -0
  105. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/__init__.py +0 -0
  106. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/__init__.py +0 -0
  107. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/http_auth_place.py +0 -0
  108. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/http_auth_type.py +0 -0
  109. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/http_auth_value.py +0 -0
  110. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/http_method.py +0 -0
  111. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/http_payload.py +0 -0
  112. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/http_request.py +0 -0
  113. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/http_response.py +0 -0
  114. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/http_schema.py +0 -0
  115. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/http_status_code.py +0 -0
  116. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/data_types/http_url.py +0 -0
  117. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/runtime_functions/__init__.py +0 -0
  118. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_http/runtime_functions/http_request_send.py +0 -0
  119. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/__init__.py +0 -0
  120. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/data_types/__init__.py +0 -0
  121. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/data_types/list.py +0 -0
  122. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/__init__.py +0 -0
  123. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_at.py +0 -0
  124. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_concat.py +0 -0
  125. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_filter.py +0 -0
  126. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_find.py +0 -0
  127. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_find_index.py +0 -0
  128. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_find_last.py +0 -0
  129. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_first.py +0 -0
  130. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_flat.py +0 -0
  131. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_for_each.py +0 -0
  132. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_index_of.py +0 -0
  133. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_is_empty.py +0 -0
  134. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_join.py +0 -0
  135. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_last.py +0 -0
  136. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_map.py +0 -0
  137. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_max.py +0 -0
  138. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_min.py +0 -0
  139. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_pop.py +0 -0
  140. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_push.py +0 -0
  141. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_remove.py +0 -0
  142. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_reverse.py +0 -0
  143. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_size.py +0 -0
  144. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_sort.py +0 -0
  145. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_sort_reverse.py +0 -0
  146. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_sum.py +0 -0
  147. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_list/runtime_functions/std_list_to_unique.py +0 -0
  148. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/__init__.py +0 -0
  149. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/data_types/__init__.py +0 -0
  150. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/data_types/number.py +0 -0
  151. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/__init__.py +0 -0
  152. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_abs.py +0 -0
  153. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_add.py +0 -0
  154. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_arccos.py +0 -0
  155. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_arcsin.py +0 -0
  156. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_arctan.py +0 -0
  157. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_as_text.py +0 -0
  158. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_clamp.py +0 -0
  159. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_cos.py +0 -0
  160. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_cosh.py +0 -0
  161. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_divide.py +0 -0
  162. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_euler.py +0 -0
  163. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_exponential.py +0 -0
  164. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_from_text.py +0 -0
  165. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_has_digits.py +0 -0
  166. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_is_equal.py +0 -0
  167. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_is_greater.py +0 -0
  168. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_is_less.py +0 -0
  169. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_is_positive.py +0 -0
  170. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_is_zero.py +0 -0
  171. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_ln.py +0 -0
  172. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_log.py +0 -0
  173. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_max.py +0 -0
  174. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_min.py +0 -0
  175. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_modulo.py +0 -0
  176. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_multiply.py +0 -0
  177. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_negate.py +0 -0
  178. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_pi.py +0 -0
  179. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_random_number.py +0 -0
  180. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_remove_digits.py +0 -0
  181. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_root.py +0 -0
  182. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_round.py +0 -0
  183. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_round_down.py +0 -0
  184. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_round_up.py +0 -0
  185. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_sin.py +0 -0
  186. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_sinh.py +0 -0
  187. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_square.py +0 -0
  188. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_square_root.py +0 -0
  189. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_subtract.py +0 -0
  190. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_number/runtime_functions/std_number_tan.py +0 -0
  191. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_object/__init__.py +0 -0
  192. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_object/data_types/__init__.py +0 -0
  193. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_object/data_types/object.py +0 -0
  194. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_object/data_types/type.py +0 -0
  195. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_object/runtime_functions/__init__.py +0 -0
  196. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_object/runtime_functions/std_object_contains_key.py +0 -0
  197. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_object/runtime_functions/std_object_get.py +0 -0
  198. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_object/runtime_functions/std_object_keys.py +0 -0
  199. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_object/runtime_functions/std_object_set.py +0 -0
  200. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_object/runtime_functions/std_object_size.py +0 -0
  201. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/__init__.py +0 -0
  202. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/data_types/__init__.py +0 -0
  203. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/data_types/text.py +0 -0
  204. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/data_types/text_encoding.py +0 -0
  205. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/__init__.py +0 -0
  206. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_append.py +0 -0
  207. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_as_bytes.py +0 -0
  208. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_at.py +0 -0
  209. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_byte_size.py +0 -0
  210. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_capitalize.py +0 -0
  211. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_chars.py +0 -0
  212. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_contains.py +0 -0
  213. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_decode.py +0 -0
  214. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_encode.py +0 -0
  215. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_ends_with.py +0 -0
  216. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_from_ascii.py +0 -0
  217. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_hex.py +0 -0
  218. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_index_of.py +0 -0
  219. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_insert.py +0 -0
  220. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_is_equal.py +0 -0
  221. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_length.py +0 -0
  222. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_lowercase.py +0 -0
  223. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_octal.py +0 -0
  224. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_prepend.py +0 -0
  225. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_remove.py +0 -0
  226. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_replace.py +0 -0
  227. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_replace_first.py +0 -0
  228. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_replace_last.py +0 -0
  229. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_reverse.py +0 -0
  230. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_split.py +0 -0
  231. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_starts_with.py +0 -0
  232. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_swapcase.py +0 -0
  233. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_to_ascii.py +0 -0
  234. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_trim.py +0 -0
  235. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/definitions/taurus_text/runtime_functions/std_text_uppercase.py +0 -0
  236. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/events.py +0 -0
  237. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/internal/__init__.py +0 -0
  238. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/internal/connection.py +0 -0
  239. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/internal/jwt.py +0 -0
  240. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/internal/module_builder.py +0 -0
  241. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/internal/pydantic_codegen.py +0 -0
  242. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/internal/schema.py +0 -0
  243. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/internal/sub_flow_function.py +0 -0
  244. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/internal/tsgen.py +0 -0
  245. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/manager/__init__.py +0 -0
  246. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/manager/base.py +0 -0
  247. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/manager/config.py +0 -0
  248. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/manager/datatype.py +0 -0
  249. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/manager/event.py +0 -0
  250. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/manager/flow.py +0 -0
  251. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/manager/function.py +0 -0
  252. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/manager/runtime_event.py +0 -0
  253. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/manager/runtime_function.py +0 -0
  254. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/manager/sub_flow_function.py +0 -0
  255. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/map/__init__.py +0 -0
  256. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/map/datatype.py +0 -0
  257. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/map/event.py +0 -0
  258. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/map/function.py +0 -0
  259. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/map/runtime_event.py +0 -0
  260. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/map/runtime_function.py +0 -0
  261. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/models/__init__.py +0 -0
  262. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/models/datatype.py +0 -0
  263. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/models/event.py +0 -0
  264. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/models/function.py +0 -0
  265. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/models/runtime_event.py +0 -0
  266. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/models/runtime_function.py +0 -0
  267. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/hercules/schema.py +0 -0
  268. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/setup.cfg +0 -0
  269. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/tests/test_datatype.py +0 -0
  270. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/tests/test_export.py +0 -0
  271. {code0_hercules-1.7.2 → code0_hercules-1.9.0}/tests/test_index.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code0-hercules
3
- Version: 1.7.2
3
+ Version: 1.9.0
4
4
  Summary: Python SDK for the hercules action runner
5
5
  License-Expression: MIT
6
6
  Project-URL: Repository, https://github.com/code0-tech/hercules
@@ -8,7 +8,7 @@ Requires-Python: >=3.10
8
8
  Description-Content-Type: text/markdown
9
9
  Requires-Dist: grpcio>=1.64
10
10
  Requires-Dist: protobuf>=5.0
11
- Requires-Dist: tucana>=0.0.83
11
+ Requires-Dist: tucana>=0.0.86
12
12
  Requires-Dist: pydantic>=2
13
13
  Provides-Extra: codegen
14
14
  Requires-Dist: datamodel-code-generator>=0.25; extra == "codegen"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code0-hercules
3
- Version: 1.7.2
3
+ Version: 1.9.0
4
4
  Summary: Python SDK for the hercules action runner
5
5
  License-Expression: MIT
6
6
  Project-URL: Repository, https://github.com/code0-tech/hercules
@@ -8,7 +8,7 @@ Requires-Python: >=3.10
8
8
  Description-Content-Type: text/markdown
9
9
  Requires-Dist: grpcio>=1.64
10
10
  Requires-Dist: protobuf>=5.0
11
- Requires-Dist: tucana>=0.0.83
11
+ Requires-Dist: tucana>=0.0.86
12
12
  Requires-Dist: pydantic>=2
13
13
  Provides-Extra: codegen
14
14
  Requires-Dist: datamodel-code-generator>=0.25; extra == "codegen"
@@ -1,6 +1,6 @@
1
1
  grpcio>=1.64
2
2
  protobuf>=5.0
3
- tucana>=0.0.83
3
+ tucana>=0.0.86
4
4
  pydantic>=2
5
5
 
6
6
  [codegen]
@@ -25,7 +25,7 @@ _SOLE_REFERENCE_PATTERN = re.compile(r"\A\$\{([^}]+)\}\Z")
25
25
 
26
26
 
27
27
  def to_sub_flow_caller(action, sub_flow):
28
- """Wrap a sub flow value in an awaitable caller exposing its declared I/O schema."""
28
+ """Wrap a sub flow value in an awaitable caller exposing its declared metadata."""
29
29
 
30
30
  async def caller(*args):
31
31
  return await action.execute_sub_flow(sub_flow, *args)
@@ -33,6 +33,12 @@ def to_sub_flow_caller(action, sub_flow):
33
33
  # Expose the sub flow's declared I/O so the handler can inspect it.
34
34
  caller.input_schema = sub_flow.input_schema
35
35
  caller.output_schema = sub_flow.output_schema
36
+ # ``name``/``description`` are ``optional`` on the wire, so an unset field is
37
+ # surfaced as ``None`` rather than protobuf's empty-string default.
38
+ caller.name = sub_flow.name if sub_flow.HasField("name") else None
39
+ caller.description = (
40
+ sub_flow.description if sub_flow.HasField("description") else None
41
+ )
36
42
  return caller
37
43
 
38
44
 
@@ -42,12 +42,15 @@ class SubFlow(Protocol):
42
42
 
43
43
  Call it with the sub flow's parameters to execute it and await its result.
44
44
  The input/output schema declared for the sub flow by the caller are exposed
45
- via :attr:`input_schema` / :attr:`output_schema` (either may be ``None`` if
46
- the caller omitted it).
45
+ via :attr:`input_schema` / :attr:`output_schema`, and the human-readable name
46
+ and description it was given via :attr:`name` / :attr:`description`. All four
47
+ are optional on the wire and are ``None`` if the caller omitted them.
47
48
  """
48
49
 
49
50
  input_schema: Optional[Struct]
50
51
  output_schema: Optional[Struct]
52
+ name: Optional[str]
53
+ description: Optional[str]
51
54
 
52
55
  def __call__(self, *args: PlainValue) -> Awaitable[PlainValue]: ...
53
56
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "code0-hercules"
7
- version = "1.7.2"
7
+ version = "1.9.0"
8
8
  description = "Python SDK for the hercules action runner"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -12,7 +12,7 @@ license = "MIT"
12
12
  dependencies = [
13
13
  "grpcio>=1.64",
14
14
  "protobuf>=5.0",
15
- "tucana>=0.0.83",
15
+ "tucana>=0.0.86",
16
16
  "pydantic>=2",
17
17
  ]
18
18
 
@@ -10,6 +10,7 @@ from hercules.manager.sub_flow_function import (
10
10
  SUB_FLOW_FUNCTION_TTL_SECONDS,
11
11
  SubFlowFunctionManager,
12
12
  )
13
+ from hercules.models.function import FunctionParameterProps
13
14
  from hercules.models.runtime_function import RuntimeFunctionProps
14
15
  from tucana.generated.aquila import action_pb2
15
16
  from tucana.generated.shared import struct_pb2
@@ -33,6 +34,12 @@ def _literal_param(value):
33
34
  )
34
35
 
35
36
 
37
+ def _sub_flow_param(**kwargs):
38
+ return action_pb2.ActionNodeValue(
39
+ sub_flow=action_pb2.ActionNodeSubFlowValue(**kwargs)
40
+ )
41
+
42
+
36
43
  class _StubStream:
37
44
  """Records everything the action would send to Aquila."""
38
45
 
@@ -187,6 +194,39 @@ def test_passes_a_plain_json_schema_dict_through_unchanged(action, sent):
187
194
  assert result.output_schema == struct_pb2.Struct(fields={"type": _str("string")})
188
195
 
189
196
 
197
+ def test_hands_a_sub_flow_parameter_to_the_handler_with_its_name_and_description(
198
+ action, sent
199
+ ):
200
+ seen = []
201
+
202
+ def handler(callback):
203
+ seen.append((callback.name, callback.description))
204
+ return "ok"
205
+
206
+ action.runtime_functions.set(
207
+ "fn",
208
+ _runtime_function(
209
+ handler, parameters=[FunctionParameterProps(runtime_name="callback")]
210
+ ),
211
+ )
212
+
213
+ _run_handle(
214
+ action,
215
+ _request(
216
+ "fn",
217
+ [
218
+ _sub_flow_param(
219
+ execution_identifier="sub-1",
220
+ name="on_each_row",
221
+ description="Runs for every row",
222
+ )
223
+ ],
224
+ ),
225
+ )
226
+
227
+ assert seen == [("on_each_row", "Runs for every row")]
228
+
229
+
190
230
  def test_gives_each_returned_sub_flow_function_its_own_identifier(action, sent):
191
231
  action.runtime_functions.set(
192
232
  "fn", _runtime_function(lambda: _sub_flow_function(lambda: None))
@@ -121,7 +121,7 @@ class TestResolveNodeValue:
121
121
  def test_returns_none_for_absent_node(self):
122
122
  assert resolve_node_value(_NOOP_ACTION, None) is None
123
123
 
124
- def test_wraps_sub_flow_node_in_caller_exposing_schema(self):
124
+ def test_wraps_sub_flow_node_in_caller_exposing_schema_and_metadata(self):
125
125
  calls = []
126
126
 
127
127
  class _Action:
@@ -130,10 +130,25 @@ class TestResolveNodeValue:
130
130
  return "done"
131
131
 
132
132
  node = action_pb2.ActionNodeValue(
133
- sub_flow=action_pb2.ActionNodeSubFlowValue(execution_identifier="sf")
133
+ sub_flow=action_pb2.ActionNodeSubFlowValue(
134
+ execution_identifier="sf",
135
+ name="greet",
136
+ description="Greets a name",
137
+ )
134
138
  )
135
139
  caller = resolve_node_value(_Action(), node)
136
140
  assert callable(caller)
137
141
  assert caller.input_schema == node.sub_flow.input_schema
142
+ assert caller.name == "greet"
143
+ assert caller.description == "Greets a name"
138
144
  assert asyncio.get_event_loop().run_until_complete(caller("a")) == "done"
139
145
  assert calls == [(node.sub_flow, "a")]
146
+
147
+ def test_sub_flow_metadata_is_none_when_omitted(self):
148
+ node = action_pb2.ActionNodeValue(
149
+ sub_flow=action_pb2.ActionNodeSubFlowValue(execution_identifier="sf")
150
+ )
151
+ caller = resolve_node_value(_NOOP_ACTION, node)
152
+ # ``optional`` on the wire: an unset field is ``None``, not ``""``.
153
+ assert caller.name is None
154
+ assert caller.description is None
File without changes