code0-hercules 1.3.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.
- code0_hercules-1.3.0/PKG-INFO +79 -0
- code0_hercules-1.3.0/README.md +64 -0
- code0_hercules-1.3.0/code0_hercules.egg-info/PKG-INFO +79 -0
- code0_hercules-1.3.0/code0_hercules.egg-info/SOURCES.txt +265 -0
- code0_hercules-1.3.0/code0_hercules.egg-info/dependency_links.txt +1 -0
- code0_hercules-1.3.0/code0_hercules.egg-info/entry_points.txt +2 -0
- code0_hercules-1.3.0/code0_hercules.egg-info/requires.txt +7 -0
- code0_hercules-1.3.0/code0_hercules.egg-info/top_level.txt +1 -0
- code0_hercules-1.3.0/hercules/__init__.py +81 -0
- code0_hercules-1.3.0/hercules/_metadata.py +38 -0
- code0_hercules-1.3.0/hercules/_tsgen/convert.mjs +96 -0
- code0_hercules-1.3.0/hercules/_tsgen/package-lock.json +366 -0
- code0_hercules-1.3.0/hercules/_tsgen/package.json +11 -0
- code0_hercules-1.3.0/hercules/_tucana/__init__.py +29 -0
- code0_hercules-1.3.0/hercules/_tucana/helpers.py +73 -0
- code0_hercules-1.3.0/hercules/action.py +345 -0
- code0_hercules-1.3.0/hercules/actions/__init__.py +21 -0
- code0_hercules-1.3.0/hercules/actions/execution.py +121 -0
- code0_hercules-1.3.0/hercules/actions/flow_execution.py +11 -0
- code0_hercules-1.3.0/hercules/actions/flow_update.py +18 -0
- code0_hercules-1.3.0/hercules/actions/module_configurations.py +14 -0
- code0_hercules-1.3.0/hercules/actions/sub_flow_execution.py +14 -0
- code0_hercules-1.3.0/hercules/cli.py +137 -0
- code0_hercules-1.3.0/hercules/decorators/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/decorators/datatype.py +39 -0
- code0_hercules-1.3.0/hercules/decorators/event.py +35 -0
- code0_hercules-1.3.0/hercules/decorators/function.py +59 -0
- code0_hercules-1.3.0/hercules/decorators/meta.py +82 -0
- code0_hercules-1.3.0/hercules/decorators/runtime_event.py +15 -0
- code0_hercules-1.3.0/hercules/decorators/runtime_function.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/__init__.py +162 -0
- code0_hercules-1.3.0/hercules/definitions/cron_action/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/cron_action/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/cron_action/data_types/cron_day_of_month.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/cron_action/data_types/cron_day_of_week.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/cron_action/data_types/cron_hour.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/cron_action/data_types/cron_minute.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/cron_action/data_types/cron_month.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/cron_action/runtime_flow_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/cron_action/runtime_flow_types/cron.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/rest_action/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/rest_action/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/rest_action/data_types/rest_adapter_input.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/rest_action/data_types/rest_auth_type.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/rest_action/data_types/rest_auth_value.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/rest_action/runtime_flow_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/rest_action/runtime_flow_types/rest.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/rest_action/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/rest_action/runtime_functions/rest_control_respond.py +21 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_boolean/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_boolean/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_boolean/data_types/boolean.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_boolean/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_as_number.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_as_text.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_from_number.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_from_text.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_is_equal.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_boolean/runtime_functions/std_boolean_negate.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_color/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_color/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_color/data_types/color.py +17 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_color/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_color/runtime_functions/std_color_as_hex.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_color/runtime_functions/std_color_as_hsl.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_color/runtime_functions/std_color_as_rgb.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_color/runtime_functions/std_color_from_hex.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_color/runtime_functions/std_color_from_hsl.py +21 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_color/runtime_functions/std_color_from_rgb.py +21 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/data_types/comparator.py +21 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/data_types/consumer.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/data_types/predicate.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/data_types/runnable.py +13 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/data_types/transform.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/runtime_functions/std_control_if.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/runtime_functions/std_control_if_else.py +21 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/runtime_functions/std_control_return.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/runtime_functions/std_control_stop.py +16 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_control/runtime_functions/std_control_value.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/data_types/date.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/data_types/hour.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/data_types/minute.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/data_types/month.py +22 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/runtime_functions/std_date_format.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/runtime_functions/std_date_from.py +24 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/runtime_functions/std_date_from_text.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/runtime_functions/std_date_from_unix.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_date/runtime_functions/std_date_now.py +16 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_file/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_file/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_file/data_types/file.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_file/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_file/runtime_functions/std_file_size.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/http_auth_place.py +12 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/http_auth_type.py +17 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/http_auth_value.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/http_method.py +16 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/http_payload.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/http_request.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/http_response.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/http_schema.py +31 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/http_status_code.py +13 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/data_types/http_url.py +13 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_http/runtime_functions/http_request_send.py +26 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/data_types/list.py +13 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_at.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_concat.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_filter.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_find.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_find_index.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_find_last.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_first.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_flat.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_for_each.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_index_of.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_is_empty.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_join.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_last.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_map.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_max.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_min.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_pop.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_push.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_remove.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_reverse.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_size.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_sort.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_sort_reverse.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_sum.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_list/runtime_functions/std_list_to_unique.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/data_types/number.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_abs.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_add.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_arccos.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_arcsin.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_arctan.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_as_text.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_clamp.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_cos.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_cosh.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_divide.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_euler.py +16 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_exponential.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_from_text.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_has_digits.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_is_equal.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_is_greater.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_is_less.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_is_positive.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_is_zero.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_ln.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_log.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_max.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_min.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_modulo.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_multiply.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_negate.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_pi.py +16 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_random_number.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_remove_digits.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_root.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_round.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_round_down.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_round_up.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_sin.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_sinh.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_square.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_square_root.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_subtract.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_number/runtime_functions/std_number_tan.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_object/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_object/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_object/data_types/object.py +13 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_object/data_types/type.py +13 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_object/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_object/runtime_functions/std_object_contains_key.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_object/runtime_functions/std_object_get.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_object/runtime_functions/std_object_keys.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_object/runtime_functions/std_object_set.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_object/runtime_functions/std_object_size.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/data_types/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/data_types/text.py +11 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/data_types/text_encoding.py +13 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_append.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_as_bytes.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_at.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_byte_size.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_capitalize.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_chars.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_contains.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_decode.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_encode.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_ends_with.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_from_ascii.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_hex.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_index_of.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_insert.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_is_equal.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_length.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_lowercase.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_octal.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_prepend.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_remove.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_replace.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_replace_first.py +21 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_replace_last.py +20 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_reverse.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_split.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_starts_with.py +19 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_swapcase.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_to_ascii.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_trim.py +18 -0
- code0_hercules-1.3.0/hercules/definitions/taurus_text/runtime_functions/std_text_uppercase.py +18 -0
- code0_hercules-1.3.0/hercules/events.py +23 -0
- code0_hercules-1.3.0/hercules/internal/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/internal/connection.py +37 -0
- code0_hercules-1.3.0/hercules/internal/literal.py +113 -0
- code0_hercules-1.3.0/hercules/internal/module_builder.py +261 -0
- code0_hercules-1.3.0/hercules/internal/pydantic_codegen.py +82 -0
- code0_hercules-1.3.0/hercules/internal/schema.py +158 -0
- code0_hercules-1.3.0/hercules/internal/tsgen.py +93 -0
- code0_hercules-1.3.0/hercules/manager/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/manager/base.py +73 -0
- code0_hercules-1.3.0/hercules/manager/config.py +45 -0
- code0_hercules-1.3.0/hercules/manager/datatype.py +8 -0
- code0_hercules-1.3.0/hercules/manager/event.py +8 -0
- code0_hercules-1.3.0/hercules/manager/flow.py +12 -0
- code0_hercules-1.3.0/hercules/manager/function.py +8 -0
- code0_hercules-1.3.0/hercules/manager/runtime_event.py +8 -0
- code0_hercules-1.3.0/hercules/manager/runtime_function.py +8 -0
- code0_hercules-1.3.0/hercules/map/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/map/datatype.py +41 -0
- code0_hercules-1.3.0/hercules/map/event.py +74 -0
- code0_hercules-1.3.0/hercules/map/function.py +76 -0
- code0_hercules-1.3.0/hercules/map/runtime_event.py +43 -0
- code0_hercules-1.3.0/hercules/map/runtime_function.py +64 -0
- code0_hercules-1.3.0/hercules/models/__init__.py +0 -0
- code0_hercules-1.3.0/hercules/models/datatype.py +49 -0
- code0_hercules-1.3.0/hercules/models/event.py +35 -0
- code0_hercules-1.3.0/hercules/models/function.py +37 -0
- code0_hercules-1.3.0/hercules/models/runtime_event.py +29 -0
- code0_hercules-1.3.0/hercules/models/runtime_function.py +33 -0
- code0_hercules-1.3.0/hercules/schema.py +38 -0
- code0_hercules-1.3.0/hercules/types.py +88 -0
- code0_hercules-1.3.0/pyproject.toml +60 -0
- code0_hercules-1.3.0/setup.cfg +4 -0
- code0_hercules-1.3.0/tests/test_datatype.py +121 -0
- code0_hercules-1.3.0/tests/test_export.py +55 -0
- code0_hercules-1.3.0/tests/test_index.py +87 -0
- code0_hercules-1.3.0/tests/test_literal.py +139 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: code0-hercules
|
|
3
|
+
Version: 1.3.0
|
|
4
|
+
Summary: Python SDK for the hercules action runner
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/code0-tech/hercules
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: grpcio>=1.64
|
|
10
|
+
Requires-Dist: protobuf>=5.0
|
|
11
|
+
Requires-Dist: tucana>=0.0.82
|
|
12
|
+
Requires-Dist: pydantic>=2
|
|
13
|
+
Provides-Extra: codegen
|
|
14
|
+
Requires-Dist: datamodel-code-generator>=0.25; extra == "codegen"
|
|
15
|
+
|
|
16
|
+
# code0-hercules (Python)
|
|
17
|
+
|
|
18
|
+
Python SDK for the hercules action runner — the counterpart to the TypeScript
|
|
19
|
+
`@code0-tech/hercules` package. Define data types, functions, and events, and
|
|
20
|
+
connect them to aquila.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install code0-hercules
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Requirements:
|
|
29
|
+
|
|
30
|
+
- **Python 3.10+**
|
|
31
|
+
- **Node.js** — data-type schemas are converted to/from TypeScript via a bundled
|
|
32
|
+
Node helper (`hercules/_tsgen`). Its npm dependencies are installed automatically
|
|
33
|
+
on first use.
|
|
34
|
+
|
|
35
|
+
## Develop
|
|
36
|
+
|
|
37
|
+
This project uses [uv](https://docs.astral.sh/uv/).
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
uv sync # create .venv + install (incl. dev deps)
|
|
41
|
+
npm ci --prefix hercules/_tsgen # install the Node schema helper
|
|
42
|
+
uv run pytest # run the tests
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The runnable example lives in [`examples/simple-example-py`](examples/simple-example-py).
|
|
46
|
+
|
|
47
|
+
## Built-in definitions
|
|
48
|
+
|
|
49
|
+
The built-in data types / functions in `hercules/definitions/` are **generated**
|
|
50
|
+
(not committed) from a [`code0-definition`](https://github.com/code0-tech/code0-definition)
|
|
51
|
+
release:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
uv run python scripts/build_definitions.py --version def-0.0.35
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Build & release
|
|
58
|
+
|
|
59
|
+
Packages are built with `uv build` and published to PyPI from CI:
|
|
60
|
+
|
|
61
|
+
- **`build.yml`** builds and tests the package on every push.
|
|
62
|
+
- **`publish.yml`** runs on a pushed git tag: it sets the package version from the
|
|
63
|
+
tag, regenerates the definitions, builds, and publishes to PyPI via
|
|
64
|
+
[trusted publishing](https://docs.pypi.org/trusted-publishers/) (OIDC — no token).
|
|
65
|
+
|
|
66
|
+
To cut a release, push a PEP 440 version tag (e.g. `0.1.0`):
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
git tag 0.1.0 && git push origin 0.1.0
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The `code0-definition` release used for the built-in definitions is controlled by
|
|
73
|
+
the `HERCULES_DEFINITIONS_VERSION` repository variable (default `def-0.0.35`).
|
|
74
|
+
|
|
75
|
+
Build locally:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
uv build # -> dist/*.whl and dist/*.tar.gz
|
|
79
|
+
```
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# code0-hercules (Python)
|
|
2
|
+
|
|
3
|
+
Python SDK for the hercules action runner — the counterpart to the TypeScript
|
|
4
|
+
`@code0-tech/hercules` package. Define data types, functions, and events, and
|
|
5
|
+
connect them to aquila.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install code0-hercules
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Requirements:
|
|
14
|
+
|
|
15
|
+
- **Python 3.10+**
|
|
16
|
+
- **Node.js** — data-type schemas are converted to/from TypeScript via a bundled
|
|
17
|
+
Node helper (`hercules/_tsgen`). Its npm dependencies are installed automatically
|
|
18
|
+
on first use.
|
|
19
|
+
|
|
20
|
+
## Develop
|
|
21
|
+
|
|
22
|
+
This project uses [uv](https://docs.astral.sh/uv/).
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
uv sync # create .venv + install (incl. dev deps)
|
|
26
|
+
npm ci --prefix hercules/_tsgen # install the Node schema helper
|
|
27
|
+
uv run pytest # run the tests
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The runnable example lives in [`examples/simple-example-py`](examples/simple-example-py).
|
|
31
|
+
|
|
32
|
+
## Built-in definitions
|
|
33
|
+
|
|
34
|
+
The built-in data types / functions in `hercules/definitions/` are **generated**
|
|
35
|
+
(not committed) from a [`code0-definition`](https://github.com/code0-tech/code0-definition)
|
|
36
|
+
release:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
uv run python scripts/build_definitions.py --version def-0.0.35
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Build & release
|
|
43
|
+
|
|
44
|
+
Packages are built with `uv build` and published to PyPI from CI:
|
|
45
|
+
|
|
46
|
+
- **`build.yml`** builds and tests the package on every push.
|
|
47
|
+
- **`publish.yml`** runs on a pushed git tag: it sets the package version from the
|
|
48
|
+
tag, regenerates the definitions, builds, and publishes to PyPI via
|
|
49
|
+
[trusted publishing](https://docs.pypi.org/trusted-publishers/) (OIDC — no token).
|
|
50
|
+
|
|
51
|
+
To cut a release, push a PEP 440 version tag (e.g. `0.1.0`):
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
git tag 0.1.0 && git push origin 0.1.0
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The `code0-definition` release used for the built-in definitions is controlled by
|
|
58
|
+
the `HERCULES_DEFINITIONS_VERSION` repository variable (default `def-0.0.35`).
|
|
59
|
+
|
|
60
|
+
Build locally:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
uv build # -> dist/*.whl and dist/*.tar.gz
|
|
64
|
+
```
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: code0-hercules
|
|
3
|
+
Version: 1.3.0
|
|
4
|
+
Summary: Python SDK for the hercules action runner
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/code0-tech/hercules
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: grpcio>=1.64
|
|
10
|
+
Requires-Dist: protobuf>=5.0
|
|
11
|
+
Requires-Dist: tucana>=0.0.82
|
|
12
|
+
Requires-Dist: pydantic>=2
|
|
13
|
+
Provides-Extra: codegen
|
|
14
|
+
Requires-Dist: datamodel-code-generator>=0.25; extra == "codegen"
|
|
15
|
+
|
|
16
|
+
# code0-hercules (Python)
|
|
17
|
+
|
|
18
|
+
Python SDK for the hercules action runner — the counterpart to the TypeScript
|
|
19
|
+
`@code0-tech/hercules` package. Define data types, functions, and events, and
|
|
20
|
+
connect them to aquila.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install code0-hercules
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Requirements:
|
|
29
|
+
|
|
30
|
+
- **Python 3.10+**
|
|
31
|
+
- **Node.js** — data-type schemas are converted to/from TypeScript via a bundled
|
|
32
|
+
Node helper (`hercules/_tsgen`). Its npm dependencies are installed automatically
|
|
33
|
+
on first use.
|
|
34
|
+
|
|
35
|
+
## Develop
|
|
36
|
+
|
|
37
|
+
This project uses [uv](https://docs.astral.sh/uv/).
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
uv sync # create .venv + install (incl. dev deps)
|
|
41
|
+
npm ci --prefix hercules/_tsgen # install the Node schema helper
|
|
42
|
+
uv run pytest # run the tests
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The runnable example lives in [`examples/simple-example-py`](examples/simple-example-py).
|
|
46
|
+
|
|
47
|
+
## Built-in definitions
|
|
48
|
+
|
|
49
|
+
The built-in data types / functions in `hercules/definitions/` are **generated**
|
|
50
|
+
(not committed) from a [`code0-definition`](https://github.com/code0-tech/code0-definition)
|
|
51
|
+
release:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
uv run python scripts/build_definitions.py --version def-0.0.35
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Build & release
|
|
58
|
+
|
|
59
|
+
Packages are built with `uv build` and published to PyPI from CI:
|
|
60
|
+
|
|
61
|
+
- **`build.yml`** builds and tests the package on every push.
|
|
62
|
+
- **`publish.yml`** runs on a pushed git tag: it sets the package version from the
|
|
63
|
+
tag, regenerates the definitions, builds, and publishes to PyPI via
|
|
64
|
+
[trusted publishing](https://docs.pypi.org/trusted-publishers/) (OIDC — no token).
|
|
65
|
+
|
|
66
|
+
To cut a release, push a PEP 440 version tag (e.g. `0.1.0`):
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
git tag 0.1.0 && git push origin 0.1.0
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The `code0-definition` release used for the built-in definitions is controlled by
|
|
73
|
+
the `HERCULES_DEFINITIONS_VERSION` repository variable (default `def-0.0.35`).
|
|
74
|
+
|
|
75
|
+
Build locally:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
uv build # -> dist/*.whl and dist/*.tar.gz
|
|
79
|
+
```
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
code0_hercules.egg-info/PKG-INFO
|
|
4
|
+
code0_hercules.egg-info/SOURCES.txt
|
|
5
|
+
code0_hercules.egg-info/dependency_links.txt
|
|
6
|
+
code0_hercules.egg-info/entry_points.txt
|
|
7
|
+
code0_hercules.egg-info/requires.txt
|
|
8
|
+
code0_hercules.egg-info/top_level.txt
|
|
9
|
+
hercules/__init__.py
|
|
10
|
+
hercules/_metadata.py
|
|
11
|
+
hercules/action.py
|
|
12
|
+
hercules/cli.py
|
|
13
|
+
hercules/events.py
|
|
14
|
+
hercules/schema.py
|
|
15
|
+
hercules/types.py
|
|
16
|
+
hercules/_tsgen/convert.mjs
|
|
17
|
+
hercules/_tsgen/package-lock.json
|
|
18
|
+
hercules/_tsgen/package.json
|
|
19
|
+
hercules/_tucana/__init__.py
|
|
20
|
+
hercules/_tucana/helpers.py
|
|
21
|
+
hercules/actions/__init__.py
|
|
22
|
+
hercules/actions/execution.py
|
|
23
|
+
hercules/actions/flow_execution.py
|
|
24
|
+
hercules/actions/flow_update.py
|
|
25
|
+
hercules/actions/module_configurations.py
|
|
26
|
+
hercules/actions/sub_flow_execution.py
|
|
27
|
+
hercules/decorators/__init__.py
|
|
28
|
+
hercules/decorators/datatype.py
|
|
29
|
+
hercules/decorators/event.py
|
|
30
|
+
hercules/decorators/function.py
|
|
31
|
+
hercules/decorators/meta.py
|
|
32
|
+
hercules/decorators/runtime_event.py
|
|
33
|
+
hercules/decorators/runtime_function.py
|
|
34
|
+
hercules/definitions/__init__.py
|
|
35
|
+
hercules/definitions/cron_action/__init__.py
|
|
36
|
+
hercules/definitions/cron_action/data_types/__init__.py
|
|
37
|
+
hercules/definitions/cron_action/data_types/cron_day_of_month.py
|
|
38
|
+
hercules/definitions/cron_action/data_types/cron_day_of_week.py
|
|
39
|
+
hercules/definitions/cron_action/data_types/cron_hour.py
|
|
40
|
+
hercules/definitions/cron_action/data_types/cron_minute.py
|
|
41
|
+
hercules/definitions/cron_action/data_types/cron_month.py
|
|
42
|
+
hercules/definitions/cron_action/runtime_flow_types/__init__.py
|
|
43
|
+
hercules/definitions/cron_action/runtime_flow_types/cron.py
|
|
44
|
+
hercules/definitions/rest_action/__init__.py
|
|
45
|
+
hercules/definitions/rest_action/data_types/__init__.py
|
|
46
|
+
hercules/definitions/rest_action/data_types/rest_adapter_input.py
|
|
47
|
+
hercules/definitions/rest_action/data_types/rest_auth_type.py
|
|
48
|
+
hercules/definitions/rest_action/data_types/rest_auth_value.py
|
|
49
|
+
hercules/definitions/rest_action/runtime_flow_types/__init__.py
|
|
50
|
+
hercules/definitions/rest_action/runtime_flow_types/rest.py
|
|
51
|
+
hercules/definitions/rest_action/runtime_functions/__init__.py
|
|
52
|
+
hercules/definitions/rest_action/runtime_functions/rest_control_respond.py
|
|
53
|
+
hercules/definitions/taurus_boolean/__init__.py
|
|
54
|
+
hercules/definitions/taurus_boolean/data_types/__init__.py
|
|
55
|
+
hercules/definitions/taurus_boolean/data_types/boolean.py
|
|
56
|
+
hercules/definitions/taurus_boolean/runtime_functions/__init__.py
|
|
57
|
+
hercules/definitions/taurus_boolean/runtime_functions/std_boolean_as_number.py
|
|
58
|
+
hercules/definitions/taurus_boolean/runtime_functions/std_boolean_as_text.py
|
|
59
|
+
hercules/definitions/taurus_boolean/runtime_functions/std_boolean_from_number.py
|
|
60
|
+
hercules/definitions/taurus_boolean/runtime_functions/std_boolean_from_text.py
|
|
61
|
+
hercules/definitions/taurus_boolean/runtime_functions/std_boolean_is_equal.py
|
|
62
|
+
hercules/definitions/taurus_boolean/runtime_functions/std_boolean_negate.py
|
|
63
|
+
hercules/definitions/taurus_color/__init__.py
|
|
64
|
+
hercules/definitions/taurus_color/data_types/__init__.py
|
|
65
|
+
hercules/definitions/taurus_color/data_types/color.py
|
|
66
|
+
hercules/definitions/taurus_color/runtime_functions/__init__.py
|
|
67
|
+
hercules/definitions/taurus_color/runtime_functions/std_color_as_hex.py
|
|
68
|
+
hercules/definitions/taurus_color/runtime_functions/std_color_as_hsl.py
|
|
69
|
+
hercules/definitions/taurus_color/runtime_functions/std_color_as_rgb.py
|
|
70
|
+
hercules/definitions/taurus_color/runtime_functions/std_color_from_hex.py
|
|
71
|
+
hercules/definitions/taurus_color/runtime_functions/std_color_from_hsl.py
|
|
72
|
+
hercules/definitions/taurus_color/runtime_functions/std_color_from_rgb.py
|
|
73
|
+
hercules/definitions/taurus_control/__init__.py
|
|
74
|
+
hercules/definitions/taurus_control/data_types/__init__.py
|
|
75
|
+
hercules/definitions/taurus_control/data_types/comparator.py
|
|
76
|
+
hercules/definitions/taurus_control/data_types/consumer.py
|
|
77
|
+
hercules/definitions/taurus_control/data_types/predicate.py
|
|
78
|
+
hercules/definitions/taurus_control/data_types/runnable.py
|
|
79
|
+
hercules/definitions/taurus_control/data_types/transform.py
|
|
80
|
+
hercules/definitions/taurus_control/runtime_functions/__init__.py
|
|
81
|
+
hercules/definitions/taurus_control/runtime_functions/std_control_if.py
|
|
82
|
+
hercules/definitions/taurus_control/runtime_functions/std_control_if_else.py
|
|
83
|
+
hercules/definitions/taurus_control/runtime_functions/std_control_return.py
|
|
84
|
+
hercules/definitions/taurus_control/runtime_functions/std_control_stop.py
|
|
85
|
+
hercules/definitions/taurus_control/runtime_functions/std_control_value.py
|
|
86
|
+
hercules/definitions/taurus_date/__init__.py
|
|
87
|
+
hercules/definitions/taurus_date/data_types/__init__.py
|
|
88
|
+
hercules/definitions/taurus_date/data_types/date.py
|
|
89
|
+
hercules/definitions/taurus_date/data_types/hour.py
|
|
90
|
+
hercules/definitions/taurus_date/data_types/minute.py
|
|
91
|
+
hercules/definitions/taurus_date/data_types/month.py
|
|
92
|
+
hercules/definitions/taurus_date/runtime_functions/__init__.py
|
|
93
|
+
hercules/definitions/taurus_date/runtime_functions/std_date_format.py
|
|
94
|
+
hercules/definitions/taurus_date/runtime_functions/std_date_from.py
|
|
95
|
+
hercules/definitions/taurus_date/runtime_functions/std_date_from_text.py
|
|
96
|
+
hercules/definitions/taurus_date/runtime_functions/std_date_from_unix.py
|
|
97
|
+
hercules/definitions/taurus_date/runtime_functions/std_date_now.py
|
|
98
|
+
hercules/definitions/taurus_file/__init__.py
|
|
99
|
+
hercules/definitions/taurus_file/data_types/__init__.py
|
|
100
|
+
hercules/definitions/taurus_file/data_types/file.py
|
|
101
|
+
hercules/definitions/taurus_file/runtime_functions/__init__.py
|
|
102
|
+
hercules/definitions/taurus_file/runtime_functions/std_file_size.py
|
|
103
|
+
hercules/definitions/taurus_http/__init__.py
|
|
104
|
+
hercules/definitions/taurus_http/data_types/__init__.py
|
|
105
|
+
hercules/definitions/taurus_http/data_types/http_auth_place.py
|
|
106
|
+
hercules/definitions/taurus_http/data_types/http_auth_type.py
|
|
107
|
+
hercules/definitions/taurus_http/data_types/http_auth_value.py
|
|
108
|
+
hercules/definitions/taurus_http/data_types/http_method.py
|
|
109
|
+
hercules/definitions/taurus_http/data_types/http_payload.py
|
|
110
|
+
hercules/definitions/taurus_http/data_types/http_request.py
|
|
111
|
+
hercules/definitions/taurus_http/data_types/http_response.py
|
|
112
|
+
hercules/definitions/taurus_http/data_types/http_schema.py
|
|
113
|
+
hercules/definitions/taurus_http/data_types/http_status_code.py
|
|
114
|
+
hercules/definitions/taurus_http/data_types/http_url.py
|
|
115
|
+
hercules/definitions/taurus_http/runtime_functions/__init__.py
|
|
116
|
+
hercules/definitions/taurus_http/runtime_functions/http_request_send.py
|
|
117
|
+
hercules/definitions/taurus_list/__init__.py
|
|
118
|
+
hercules/definitions/taurus_list/data_types/__init__.py
|
|
119
|
+
hercules/definitions/taurus_list/data_types/list.py
|
|
120
|
+
hercules/definitions/taurus_list/runtime_functions/__init__.py
|
|
121
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_at.py
|
|
122
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_concat.py
|
|
123
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_filter.py
|
|
124
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_find.py
|
|
125
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_find_index.py
|
|
126
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_find_last.py
|
|
127
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_first.py
|
|
128
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_flat.py
|
|
129
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_for_each.py
|
|
130
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_index_of.py
|
|
131
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_is_empty.py
|
|
132
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_join.py
|
|
133
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_last.py
|
|
134
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_map.py
|
|
135
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_max.py
|
|
136
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_min.py
|
|
137
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_pop.py
|
|
138
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_push.py
|
|
139
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_remove.py
|
|
140
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_reverse.py
|
|
141
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_size.py
|
|
142
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_sort.py
|
|
143
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_sort_reverse.py
|
|
144
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_sum.py
|
|
145
|
+
hercules/definitions/taurus_list/runtime_functions/std_list_to_unique.py
|
|
146
|
+
hercules/definitions/taurus_number/__init__.py
|
|
147
|
+
hercules/definitions/taurus_number/data_types/__init__.py
|
|
148
|
+
hercules/definitions/taurus_number/data_types/number.py
|
|
149
|
+
hercules/definitions/taurus_number/runtime_functions/__init__.py
|
|
150
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_abs.py
|
|
151
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_add.py
|
|
152
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_arccos.py
|
|
153
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_arcsin.py
|
|
154
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_arctan.py
|
|
155
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_as_text.py
|
|
156
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_clamp.py
|
|
157
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_cos.py
|
|
158
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_cosh.py
|
|
159
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_divide.py
|
|
160
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_euler.py
|
|
161
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_exponential.py
|
|
162
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_from_text.py
|
|
163
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_has_digits.py
|
|
164
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_is_equal.py
|
|
165
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_is_greater.py
|
|
166
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_is_less.py
|
|
167
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_is_positive.py
|
|
168
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_is_zero.py
|
|
169
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_ln.py
|
|
170
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_log.py
|
|
171
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_max.py
|
|
172
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_min.py
|
|
173
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_modulo.py
|
|
174
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_multiply.py
|
|
175
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_negate.py
|
|
176
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_pi.py
|
|
177
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_random_number.py
|
|
178
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_remove_digits.py
|
|
179
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_root.py
|
|
180
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_round.py
|
|
181
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_round_down.py
|
|
182
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_round_up.py
|
|
183
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_sin.py
|
|
184
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_sinh.py
|
|
185
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_square.py
|
|
186
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_square_root.py
|
|
187
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_subtract.py
|
|
188
|
+
hercules/definitions/taurus_number/runtime_functions/std_number_tan.py
|
|
189
|
+
hercules/definitions/taurus_object/__init__.py
|
|
190
|
+
hercules/definitions/taurus_object/data_types/__init__.py
|
|
191
|
+
hercules/definitions/taurus_object/data_types/object.py
|
|
192
|
+
hercules/definitions/taurus_object/data_types/type.py
|
|
193
|
+
hercules/definitions/taurus_object/runtime_functions/__init__.py
|
|
194
|
+
hercules/definitions/taurus_object/runtime_functions/std_object_contains_key.py
|
|
195
|
+
hercules/definitions/taurus_object/runtime_functions/std_object_get.py
|
|
196
|
+
hercules/definitions/taurus_object/runtime_functions/std_object_keys.py
|
|
197
|
+
hercules/definitions/taurus_object/runtime_functions/std_object_set.py
|
|
198
|
+
hercules/definitions/taurus_object/runtime_functions/std_object_size.py
|
|
199
|
+
hercules/definitions/taurus_text/__init__.py
|
|
200
|
+
hercules/definitions/taurus_text/data_types/__init__.py
|
|
201
|
+
hercules/definitions/taurus_text/data_types/text.py
|
|
202
|
+
hercules/definitions/taurus_text/data_types/text_encoding.py
|
|
203
|
+
hercules/definitions/taurus_text/runtime_functions/__init__.py
|
|
204
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_append.py
|
|
205
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_as_bytes.py
|
|
206
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_at.py
|
|
207
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_byte_size.py
|
|
208
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_capitalize.py
|
|
209
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_chars.py
|
|
210
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_contains.py
|
|
211
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_decode.py
|
|
212
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_encode.py
|
|
213
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_ends_with.py
|
|
214
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_from_ascii.py
|
|
215
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_hex.py
|
|
216
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_index_of.py
|
|
217
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_insert.py
|
|
218
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_is_equal.py
|
|
219
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_length.py
|
|
220
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_lowercase.py
|
|
221
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_octal.py
|
|
222
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_prepend.py
|
|
223
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_remove.py
|
|
224
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_replace.py
|
|
225
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_replace_first.py
|
|
226
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_replace_last.py
|
|
227
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_reverse.py
|
|
228
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_split.py
|
|
229
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_starts_with.py
|
|
230
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_swapcase.py
|
|
231
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_to_ascii.py
|
|
232
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_trim.py
|
|
233
|
+
hercules/definitions/taurus_text/runtime_functions/std_text_uppercase.py
|
|
234
|
+
hercules/internal/__init__.py
|
|
235
|
+
hercules/internal/connection.py
|
|
236
|
+
hercules/internal/literal.py
|
|
237
|
+
hercules/internal/module_builder.py
|
|
238
|
+
hercules/internal/pydantic_codegen.py
|
|
239
|
+
hercules/internal/schema.py
|
|
240
|
+
hercules/internal/tsgen.py
|
|
241
|
+
hercules/manager/__init__.py
|
|
242
|
+
hercules/manager/base.py
|
|
243
|
+
hercules/manager/config.py
|
|
244
|
+
hercules/manager/datatype.py
|
|
245
|
+
hercules/manager/event.py
|
|
246
|
+
hercules/manager/flow.py
|
|
247
|
+
hercules/manager/function.py
|
|
248
|
+
hercules/manager/runtime_event.py
|
|
249
|
+
hercules/manager/runtime_function.py
|
|
250
|
+
hercules/map/__init__.py
|
|
251
|
+
hercules/map/datatype.py
|
|
252
|
+
hercules/map/event.py
|
|
253
|
+
hercules/map/function.py
|
|
254
|
+
hercules/map/runtime_event.py
|
|
255
|
+
hercules/map/runtime_function.py
|
|
256
|
+
hercules/models/__init__.py
|
|
257
|
+
hercules/models/datatype.py
|
|
258
|
+
hercules/models/event.py
|
|
259
|
+
hercules/models/function.py
|
|
260
|
+
hercules/models/runtime_event.py
|
|
261
|
+
hercules/models/runtime_function.py
|
|
262
|
+
tests/test_datatype.py
|
|
263
|
+
tests/test_export.py
|
|
264
|
+
tests/test_index.py
|
|
265
|
+
tests/test_literal.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hercules
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"""hercules — the action SDK to connect with aquila (Python).
|
|
2
|
+
|
|
3
|
+
Public API mirror of the TypeScript ``src/index.ts`` re-exports.
|
|
4
|
+
"""
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
# Must run before any module that imports the tucana protobufs: it puts
|
|
8
|
+
# ``tucana/generated`` on sys.path so the generated protos' internal
|
|
9
|
+
# ``from shared import ...`` / ``from aquila import ...`` imports resolve.
|
|
10
|
+
import hercules._tucana # noqa: F401 isort: skip
|
|
11
|
+
|
|
12
|
+
from hercules.types import (
|
|
13
|
+
ConfigurationDefinition,
|
|
14
|
+
FlowTypeSetting_UniquenessScope,
|
|
15
|
+
FunctionContext,
|
|
16
|
+
PlainValue,
|
|
17
|
+
ProjectConfiguration,
|
|
18
|
+
RuntimeError,
|
|
19
|
+
RuntimeFlowTypeSetting_UniquenessScope,
|
|
20
|
+
SubFlow,
|
|
21
|
+
Translation,
|
|
22
|
+
)
|
|
23
|
+
from hercules.events import CodeZeroEvent
|
|
24
|
+
from hercules.schema import (
|
|
25
|
+
Annotated,
|
|
26
|
+
BaseModel,
|
|
27
|
+
ConfigDict,
|
|
28
|
+
Field,
|
|
29
|
+
RootModel,
|
|
30
|
+
StringConstraints,
|
|
31
|
+
Schema as SchemaType,
|
|
32
|
+
)
|
|
33
|
+
from hercules.decorators.meta import (
|
|
34
|
+
Alias,
|
|
35
|
+
DeprecationMessage,
|
|
36
|
+
Description,
|
|
37
|
+
DisplayIcon,
|
|
38
|
+
DisplayMessage,
|
|
39
|
+
Documentation,
|
|
40
|
+
Editable,
|
|
41
|
+
Identifier,
|
|
42
|
+
Name,
|
|
43
|
+
Signature,
|
|
44
|
+
)
|
|
45
|
+
from hercules.decorators.function import Design, OmitFunction, Parameter, ThrowsError
|
|
46
|
+
from hercules.decorators.datatype import Schema, TypeString
|
|
47
|
+
from hercules.decorators.event import EventSetting
|
|
48
|
+
from hercules.decorators.runtime_event import OmitEvent
|
|
49
|
+
from hercules.decorators.runtime_function import OmitRuntimeFunction
|
|
50
|
+
from hercules.manager.base import BaseManager
|
|
51
|
+
from hercules.manager.config import ConfigManager
|
|
52
|
+
from hercules.manager.datatype import DataTypeManager
|
|
53
|
+
from hercules.manager.event import EventManager
|
|
54
|
+
from hercules.manager.flow import FlowManager
|
|
55
|
+
from hercules.manager.function import FunctionManager
|
|
56
|
+
from hercules.manager.runtime_event import RuntimeEventManager
|
|
57
|
+
from hercules.manager.runtime_function import RuntimeFunctionManager
|
|
58
|
+
from hercules.models.datatype import DataTypeProps, DataTypeRunnable
|
|
59
|
+
from hercules.models.event import EventModel, EventSettingProps
|
|
60
|
+
from hercules.models.function import FunctionParameterProps, FunctionProps
|
|
61
|
+
from hercules.models.runtime_event import RuntimeEventProps, RuntimeEventRunnable
|
|
62
|
+
from hercules.models.runtime_function import RuntimeFunctionProps, RuntimeFunctionRunnable
|
|
63
|
+
from hercules.action import Action, is_export_mode, registered_actions
|
|
64
|
+
|
|
65
|
+
__all__ = [
|
|
66
|
+
"Translation", "PlainValue", "SubFlow", "FunctionContext",
|
|
67
|
+
"ProjectConfiguration", "ConfigurationDefinition", "RuntimeError",
|
|
68
|
+
"FlowTypeSetting_UniquenessScope", "RuntimeFlowTypeSetting_UniquenessScope",
|
|
69
|
+
"CodeZeroEvent", "SchemaType",
|
|
70
|
+
"BaseModel", "RootModel", "Field", "StringConstraints", "ConfigDict", "Annotated",
|
|
71
|
+
"Identifier", "Name", "Description", "Documentation", "DisplayMessage",
|
|
72
|
+
"Alias", "DeprecationMessage", "Signature", "DisplayIcon", "Editable",
|
|
73
|
+
"OmitFunction", "Design", "ThrowsError", "Parameter", "Schema", "TypeString",
|
|
74
|
+
"EventSetting", "OmitEvent", "OmitRuntimeFunction",
|
|
75
|
+
"BaseManager", "ConfigManager", "FlowManager", "FunctionManager",
|
|
76
|
+
"RuntimeFunctionManager", "DataTypeManager", "EventManager", "RuntimeEventManager",
|
|
77
|
+
"FunctionProps", "FunctionParameterProps", "RuntimeFunctionProps",
|
|
78
|
+
"RuntimeFunctionRunnable", "DataTypeProps", "DataTypeRunnable", "EventModel",
|
|
79
|
+
"EventSettingProps", "RuntimeEventProps", "RuntimeEventRunnable",
|
|
80
|
+
"Action", "is_export_mode", "registered_actions",
|
|
81
|
+
]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Class metadata store — Python equivalent of ``reflect-metadata``.
|
|
2
|
+
|
|
3
|
+
Metadata is attached to classes under a private per-class dict. ``get_metadata``
|
|
4
|
+
walks the MRO (like ``Reflect.getMetadata`` walking the prototype chain), while
|
|
5
|
+
``get_own_metadata`` only inspects the class itself (like ``getOwnMetadata``).
|
|
6
|
+
"""
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from typing import Any
|
|
10
|
+
|
|
11
|
+
_OWN = "__hercules_own_meta__"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _own_dict(target: type) -> dict:
|
|
15
|
+
# Only create/return the dict that belongs to ``target`` itself, never an
|
|
16
|
+
# inherited one — mirrors ``Reflect.getOwnMetadata`` semantics.
|
|
17
|
+
if _OWN not in target.__dict__:
|
|
18
|
+
setattr(target, _OWN, {})
|
|
19
|
+
return target.__dict__[_OWN]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def define_metadata(key: str, value: Any, target: type) -> None:
|
|
23
|
+
_own_dict(target)[key] = value
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def get_own_metadata(key: str, target: type, default: Any = None) -> Any:
|
|
27
|
+
own = target.__dict__.get(_OWN)
|
|
28
|
+
if own is None:
|
|
29
|
+
return default
|
|
30
|
+
return own.get(key, default)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def get_metadata(key: str, target: type, default: Any = None) -> Any:
|
|
34
|
+
for klass in getattr(target, "__mro__", (target,)):
|
|
35
|
+
own = klass.__dict__.get(_OWN)
|
|
36
|
+
if own is not None and key in own:
|
|
37
|
+
return own[key]
|
|
38
|
+
return default
|