another-ayx-python-sdk 2.4.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- another_ayx_python_sdk/__init__.py +14 -0
- another_ayx_python_sdk/__main__.py +470 -0
- another_ayx_python_sdk/assets/workspace_files/__init__.py +14 -0
- another_ayx_python_sdk/assets/workspace_files/setup.py +38 -0
- another_ayx_python_sdk/cli/__init__.py +14 -0
- another_ayx_python_sdk/cli/utilities.py +103 -0
- another_ayx_python_sdk/cli/workspace.py +266 -0
- another_ayx_python_sdk/cli/yxi_builder.py +125 -0
- another_ayx_python_sdk/cli/yxi_installer.py +45 -0
- another_ayx_python_sdk/core/__init__.py +51 -0
- another_ayx_python_sdk/core/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/constants.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/dcm_base.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/doc_utilities.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/environment_base.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/field.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/input_anchor_base.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/input_connection_base.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/io_base.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/metadata.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/output_anchor_base.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/plugin.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/plugin_v2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/provider_base.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/record_packet.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/record_packet_base.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/__pycache__/register_plugin.cpython-310.pyc +0 -0
- another_ayx_python_sdk/core/constants.py +25 -0
- another_ayx_python_sdk/core/dcm_base.py +115 -0
- another_ayx_python_sdk/core/doc_utilities.py +40 -0
- another_ayx_python_sdk/core/environment_base.py +213 -0
- another_ayx_python_sdk/core/exceptions.py +59 -0
- another_ayx_python_sdk/core/field.py +183 -0
- another_ayx_python_sdk/core/input_anchor_base.py +86 -0
- another_ayx_python_sdk/core/input_connection_base.py +206 -0
- another_ayx_python_sdk/core/io_base.py +139 -0
- another_ayx_python_sdk/core/metadata.py +173 -0
- another_ayx_python_sdk/core/observable_mixin.py +90 -0
- another_ayx_python_sdk/core/output_anchor_base.py +151 -0
- another_ayx_python_sdk/core/plugin.py +108 -0
- another_ayx_python_sdk/core/plugin_v2.py +97 -0
- another_ayx_python_sdk/core/provider_base.py +125 -0
- another_ayx_python_sdk/core/proxy_requests.py +51 -0
- another_ayx_python_sdk/core/record_packet.py +88 -0
- another_ayx_python_sdk/core/record_packet_base.py +123 -0
- another_ayx_python_sdk/core/register_plugin.py +127 -0
- another_ayx_python_sdk/core/testing.py +191 -0
- another_ayx_python_sdk/core/utils.py +146 -0
- another_ayx_python_sdk/examples/AyxSdkInput/main.py +89 -0
- another_ayx_python_sdk/examples/AyxSdkMultiConnectionsMultiOutputAnchor/__pycache__/main.cpython-310.pyc +0 -0
- another_ayx_python_sdk/examples/AyxSdkMultiConnectionsMultiOutputAnchor/main.py +102 -0
- another_ayx_python_sdk/examples/AyxSdkMultipleInputAnchors/AyxSdkMultipleInputAnchorsConfig.xml +24 -0
- another_ayx_python_sdk/examples/AyxSdkMultipleInputAnchors/__pycache__/main.cpython-310.pyc +0 -0
- another_ayx_python_sdk/examples/AyxSdkMultipleInputAnchors/main.py +84 -0
- another_ayx_python_sdk/examples/AyxSdkMultipleOutputAnchors/__pycache__/main.cpython-310.pyc +0 -0
- another_ayx_python_sdk/examples/AyxSdkMultipleOutputAnchors/main.py +96 -0
- another_ayx_python_sdk/examples/AyxSdkOptionalInputAnchor/__pycache__/main.cpython-310.pyc +0 -0
- another_ayx_python_sdk/examples/AyxSdkOptionalInputAnchor/main.py +94 -0
- another_ayx_python_sdk/examples/AyxSdkOutput/__pycache__/main.cpython-310.pyc +0 -0
- another_ayx_python_sdk/examples/AyxSdkOutput/main.py +78 -0
- another_ayx_python_sdk/examples/AyxSdkPassThrough/AyxSdkPassThrough.xml +23 -0
- another_ayx_python_sdk/examples/AyxSdkPassThrough/__pycache__/main.cpython-310.pyc +0 -0
- another_ayx_python_sdk/examples/AyxSdkPassThrough/main.py +82 -0
- another_ayx_python_sdk/examples/requirements.txt +18 -0
- another_ayx_python_sdk/providers/__init__.py +14 -0
- another_ayx_python_sdk/providers/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__init__.py +41 -0
- another_ayx_python_sdk/providers/amp_provider/__main__.py +85 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/__main__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_dcm.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_driver.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_environment.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_environment_v2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_input_anchor.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_input_connection.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_io.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_io_components.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_output_anchor.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_provider.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_provider_v2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/amp_record_packet.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/cng_certs.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/grpc_util.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/logger_config.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/plugin_class_loader.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/sdk_tool_runner.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/sdk_tool_service.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/__pycache__/sdk_tool_service_v2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/amp_dcm.py +58 -0
- another_ayx_python_sdk/providers/amp_provider/amp_driver.py +358 -0
- another_ayx_python_sdk/providers/amp_provider/amp_environment.py +73 -0
- another_ayx_python_sdk/providers/amp_provider/amp_environment_v2.py +278 -0
- another_ayx_python_sdk/providers/amp_provider/amp_input_anchor.py +73 -0
- another_ayx_python_sdk/providers/amp_provider/amp_input_connection.py +132 -0
- another_ayx_python_sdk/providers/amp_provider/amp_io.py +64 -0
- another_ayx_python_sdk/providers/amp_provider/amp_io_components.py +407 -0
- another_ayx_python_sdk/providers/amp_provider/amp_output_anchor.py +107 -0
- another_ayx_python_sdk/providers/amp_provider/amp_provider.py +68 -0
- another_ayx_python_sdk/providers/amp_provider/amp_provider_v2.py +128 -0
- another_ayx_python_sdk/providers/amp_provider/amp_record_packet.py +21 -0
- another_ayx_python_sdk/providers/amp_provider/builders/__init__.py +32 -0
- another_ayx_python_sdk/providers/amp_provider/builders/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/builders/__pycache__/input_anchor_builder.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/builders/__pycache__/input_connection_builder.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/builders/__pycache__/metadata_builder.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/builders/__pycache__/output_anchor_builder.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/builders/__pycache__/packers.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/builders/__pycache__/record_builder.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/builders/__pycache__/record_packet_builder.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/builders/__pycache__/tool_config_builder.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/builders/input_anchor_builder.py +123 -0
- another_ayx_python_sdk/providers/amp_provider/builders/input_connection_builder.py +95 -0
- another_ayx_python_sdk/providers/amp_provider/builders/metadata_builder.py +118 -0
- another_ayx_python_sdk/providers/amp_provider/builders/output_anchor_builder.py +110 -0
- another_ayx_python_sdk/providers/amp_provider/builders/packers.py +458 -0
- another_ayx_python_sdk/providers/amp_provider/builders/record_builder.py +204 -0
- another_ayx_python_sdk/providers/amp_provider/builders/record_packet_builder.py +133 -0
- another_ayx_python_sdk/providers/amp_provider/builders/tool_config_builder.py +59 -0
- another_ayx_python_sdk/providers/amp_provider/cng_certs.py +197 -0
- another_ayx_python_sdk/providers/amp_provider/data_transport/__init__.py +18 -0
- another_ayx_python_sdk/providers/amp_provider/data_transport/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/data_transport/__pycache__/amp_transport.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/data_transport/__pycache__/transport_base.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/data_transport/amp_transport.py +127 -0
- another_ayx_python_sdk/providers/amp_provider/data_transport/transport_base.py +35 -0
- another_ayx_python_sdk/providers/amp_provider/grpc_helpers/__init__.py +14 -0
- another_ayx_python_sdk/providers/amp_provider/grpc_helpers/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/grpc_helpers/__pycache__/control_msgs.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/grpc_helpers/__pycache__/dcme_msgs.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/grpc_helpers/__pycache__/record_transfer_msgs.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/grpc_helpers/control_msgs.py +189 -0
- another_ayx_python_sdk/providers/amp_provider/grpc_helpers/dcme_msgs.py +119 -0
- another_ayx_python_sdk/providers/amp_provider/grpc_helpers/record_transfer_msgs.py +32 -0
- another_ayx_python_sdk/providers/amp_provider/grpc_util.py +161 -0
- another_ayx_python_sdk/providers/amp_provider/logger_config.py +63 -0
- another_ayx_python_sdk/providers/amp_provider/plugin_class_loader.py +77 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__init__.py +67 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/dcm_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/environment_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/grpc_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/input_anchor_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/input_connection_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/input_metadata_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/input_record_packet_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/io_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/output_anchor_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/output_metadata_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/output_record_packet_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/plugin_class_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/singleton.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/test_harness_state_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/__pycache__/tool_config_repository.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/dcm_repository.py +252 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/environment_repository.py +212 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/grpc_repository.py +119 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/input_anchor_repository.py +110 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/input_connection_repository.py +276 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/input_metadata_repository.py +144 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/input_record_packet_repository.py +252 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/io_repository.py +188 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/output_anchor_repository.py +117 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/output_metadata_repository.py +129 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/output_record_packet_repository.py +170 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/plugin_class_repository.py +55 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/singleton.py +32 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/test_harness_state_repository.py +172 -0
- another_ayx_python_sdk/providers/amp_provider/repositories/tool_config_repository.py +89 -0
- another_ayx_python_sdk/providers/amp_provider/resources/__init__.py +14 -0
- another_ayx_python_sdk/providers/amp_provider/resources/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__init__.py +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/close_outgoing_anchor_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/close_outgoing_anchor_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/dcm_e_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/dcm_e_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/incoming_anchor_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/incoming_anchor_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/incoming_connection_complete_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/incoming_connection_complete_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/incoming_connection_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/incoming_connection_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/incoming_data_push_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/incoming_data_push_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/incoming_record_packet_push_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/incoming_record_packet_push_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/metadata_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/metadata_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/outgoing_anchor_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/outgoing_anchor_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/outgoing_data_push_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/outgoing_data_push_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/outgoing_metadata_push_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/outgoing_metadata_push_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/outgoing_record_packet_push_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/outgoing_record_packet_push_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/output_message_data_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/output_message_data_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/password_data_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/password_data_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/plugin_initialization_data_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/plugin_initialization_data_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/record_batch_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/record_batch_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/record_packet_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/record_packet_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/sdk_engine_service_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/sdk_engine_service_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/sdk_tool_service_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/sdk_tool_service_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/sdk_tool_service_startup_info_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/sdk_tool_service_startup_info_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/sdk_tool_service_v2_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/sdk_tool_service_v2_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/translate_message_data_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/translate_message_data_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/transport_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/transport_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/update_progress_pb2.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/__pycache__/update_progress_pb2_grpc.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/close_outgoing_anchor_pb2.py +25 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/close_outgoing_anchor_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/dcm_e_pb2.py +38 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/dcm_e_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_anchor_pb2.py +26 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_anchor_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_connection_complete_pb2.py +25 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_connection_complete_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_connection_pb2.py +26 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_connection_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_data_push_pb2.py +26 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_data_push_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_record_packet_push_pb2.py +26 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_record_packet_push_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/metadata_pb2.py +31 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/metadata_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_anchor_pb2.py +28 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_anchor_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_data_push_pb2.py +26 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_data_push_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_metadata_push_pb2.py +26 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_metadata_push_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_record_packet_push_pb2.py +26 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_record_packet_push_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/output_message_data_pb2.py +29 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/output_message_data_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/password_data_pb2.py +25 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/password_data_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/plugin_initialization_data_pb2.py +33 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/plugin_initialization_data_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/record_batch_pb2.py +25 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/record_batch_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/record_packet_pb2.py +29 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/record_packet_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_engine_service_pb2.py +34 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_engine_service_pb2_grpc.py +305 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_pb2.py +30 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_pb2_grpc.py +235 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_startup_info_pb2.py +25 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_startup_info_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_v2_pb2.py +54 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_v2_pb2_grpc.py +99 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/translate_message_data_pb2.py +27 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/translate_message_data_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/transport_pb2.py +31 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/transport_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/update_progress_pb2.py +25 -0
- another_ayx_python_sdk/providers/amp_provider/resources/generated/update_progress_pb2_grpc.py +4 -0
- another_ayx_python_sdk/providers/amp_provider/sdk_tool_runner.py +115 -0
- another_ayx_python_sdk/providers/amp_provider/sdk_tool_service.py +207 -0
- another_ayx_python_sdk/providers/amp_provider/sdk_tool_service_v2.py +306 -0
- another_ayx_python_sdk/providers/amp_provider/utilities/__init__.py +14 -0
- another_ayx_python_sdk/providers/amp_provider/utilities/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/utilities/__pycache__/constants.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/utilities/__pycache__/conversions.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/utilities/__pycache__/utilities.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/amp_provider/utilities/constants.py +22 -0
- another_ayx_python_sdk/providers/amp_provider/utilities/conversions.py +55 -0
- another_ayx_python_sdk/providers/amp_provider/utilities/utilities.py +63 -0
- another_ayx_python_sdk/providers/e1_provider/__init__.py +36 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/anchor_builder.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/cache_e1_sdk_import.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/connection_callback_strategy.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/connection_interface.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_dcm.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_environment.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_input_anchor.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_input_anchor_proxy.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_input_connection.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_io.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_output_anchor.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_output_anchor_proxy.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_plugin_driver.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_plugin_proxy.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_provider.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/e1_record_packet.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/events.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/tool_config_loader.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/__pycache__/workflow_config.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/anchor_builder.py +95 -0
- another_ayx_python_sdk/providers/e1_provider/cache_e1_sdk_import.py +31 -0
- another_ayx_python_sdk/providers/e1_provider/connection_callback_strategy.py +155 -0
- another_ayx_python_sdk/providers/e1_provider/connection_interface.py +125 -0
- another_ayx_python_sdk/providers/e1_provider/e1_dcm.py +53 -0
- another_ayx_python_sdk/providers/e1_provider/e1_environment.py +127 -0
- another_ayx_python_sdk/providers/e1_provider/e1_input_anchor.py +51 -0
- another_ayx_python_sdk/providers/e1_provider/e1_input_anchor_proxy.py +33 -0
- another_ayx_python_sdk/providers/e1_provider/e1_input_connection.py +87 -0
- another_ayx_python_sdk/providers/e1_provider/e1_io.py +71 -0
- another_ayx_python_sdk/providers/e1_provider/e1_output_anchor.py +157 -0
- another_ayx_python_sdk/providers/e1_provider/e1_output_anchor_proxy.py +97 -0
- another_ayx_python_sdk/providers/e1_provider/e1_plugin_driver.py +63 -0
- another_ayx_python_sdk/providers/e1_provider/e1_plugin_proxy.py +363 -0
- another_ayx_python_sdk/providers/e1_provider/e1_provider.py +71 -0
- another_ayx_python_sdk/providers/e1_provider/e1_record_packet.py +21 -0
- another_ayx_python_sdk/providers/e1_provider/events.py +36 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__init__.py +37 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/alteryx_engine.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/constants.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/field.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/output_anchor.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/output_anchor_manager.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/record_copier.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/record_creator.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/record_info.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/record_ref.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/tool.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__pycache__/tool_execution_info.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/alteryx_engine.py +105 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/constants.py +50 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/field.py +122 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/output_anchor.py +55 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/output_anchor_manager.py +31 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/record_copier.py +65 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/record_creator.py +41 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/record_info.py +134 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/record_ref.py +42 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/tool.py +29 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/tool_execution_info.py +43 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/__init__.py +14 -0
- another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/proxies/__init__.py +18 -0
- another_ayx_python_sdk/providers/e1_provider/proxies/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/proxies/__pycache__/field_proxy.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/proxies/__pycache__/record_copier_proxy.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/proxies/field_proxy.py +109 -0
- another_ayx_python_sdk/providers/e1_provider/proxies/record_copier_proxy.py +49 -0
- another_ayx_python_sdk/providers/e1_provider/records/__init__.py +23 -0
- another_ayx_python_sdk/providers/e1_provider/records/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/records/__pycache__/base_record_container.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/records/__pycache__/parsed_record_container.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/records/__pycache__/raw_record_container.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/records/base_record_container.py +47 -0
- another_ayx_python_sdk/providers/e1_provider/records/parsed_record_container.py +67 -0
- another_ayx_python_sdk/providers/e1_provider/records/raw_record_container.py +111 -0
- another_ayx_python_sdk/providers/e1_provider/tool_config_loader.py +132 -0
- another_ayx_python_sdk/providers/e1_provider/utilities/__init__.py +35 -0
- another_ayx_python_sdk/providers/e1_provider/utilities/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/utilities/__pycache__/utilities.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/e1_provider/utilities/utilities.py +54 -0
- another_ayx_python_sdk/providers/e1_provider/workflow_config.py +31 -0
- another_ayx_python_sdk/providers/file_provider/__init__.py +32 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/environment.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/file_adapter.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/file_provider.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/file_provider_dcm.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/file_provider_input_anchor.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/file_provider_input_connection.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/file_provider_output_anchor.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/file_record_packet.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/iox.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/__pycache__/tool_input.cpython-310.pyc +0 -0
- another_ayx_python_sdk/providers/file_provider/environment.py +131 -0
- another_ayx_python_sdk/providers/file_provider/file_adapter.py +286 -0
- another_ayx_python_sdk/providers/file_provider/file_provider.py +185 -0
- another_ayx_python_sdk/providers/file_provider/file_provider_dcm.py +53 -0
- another_ayx_python_sdk/providers/file_provider/file_provider_input_anchor.py +70 -0
- another_ayx_python_sdk/providers/file_provider/file_provider_input_connection.py +112 -0
- another_ayx_python_sdk/providers/file_provider/file_provider_output_anchor.py +114 -0
- another_ayx_python_sdk/providers/file_provider/file_record_packet.py +21 -0
- another_ayx_python_sdk/providers/file_provider/iox.py +56 -0
- another_ayx_python_sdk/providers/file_provider/tool_input.py +104 -0
- another_ayx_python_sdk/test_harness/__init__.py +14 -0
- another_ayx_python_sdk/test_harness/__main__.py +120 -0
- another_ayx_python_sdk/test_harness/__pycache__/__init__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/test_harness/__pycache__/__main__.cpython-310.pyc +0 -0
- another_ayx_python_sdk/test_harness/__pycache__/plugin_runner.cpython-310.pyc +0 -0
- another_ayx_python_sdk/test_harness/__pycache__/process_lifecycle_manager.cpython-310.pyc +0 -0
- another_ayx_python_sdk/test_harness/__pycache__/sdk_engine_service.cpython-310.pyc +0 -0
- another_ayx_python_sdk/test_harness/plugin_runner.py +416 -0
- another_ayx_python_sdk/test_harness/process_lifecycle_manager.py +80 -0
- another_ayx_python_sdk/test_harness/sdk_engine_service.py +106 -0
- another_ayx_python_sdk/version.py +8 -0
- another_ayx_python_sdk-2.4.2.dist-info/METADATA +63 -0
- another_ayx_python_sdk-2.4.2.dist-info/RECORD +403 -0
- another_ayx_python_sdk-2.4.2.dist-info/WHEEL +5 -0
- another_ayx_python_sdk-2.4.2.dist-info/entry_points.txt +2 -0
- another_ayx_python_sdk-2.4.2.dist-info/licenses/LICENSE +21 -0
- another_ayx_python_sdk-2.4.2.dist-info/top_level.txt +1 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
# Copyright (C) 2022 Alteryx, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the ALTERYX SDK AND API LICENSE AGREEMENT;
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.alteryx.com/alteryx-sdk-and-api-license-agreement
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
"""Proxy Class for SDK IO."""
|
15
|
+
from pathlib import Path
|
16
|
+
from typing import Any, cast
|
17
|
+
|
18
|
+
import another_ayx_python_sdk.providers.e1_provider.mock_e1_sdk.AlteryxPythonSDK as Sdk
|
19
|
+
|
20
|
+
from another_ayx_python_sdk.core.doc_utilities import inherit_docs
|
21
|
+
from another_ayx_python_sdk.core.io_base import IoBase
|
22
|
+
|
23
|
+
import deprecation
|
24
|
+
|
25
|
+
|
26
|
+
@inherit_docs
|
27
|
+
class E1IO(IoBase):
|
28
|
+
"""Class that wraps all IO communication with Alteryx Designer."""
|
29
|
+
|
30
|
+
__slots__ = ["_engine", "_tool_id"]
|
31
|
+
|
32
|
+
def __init__(self, engine: Sdk.AlteryxEngine, tool_id: int) -> None:
|
33
|
+
self._engine = engine
|
34
|
+
self._tool_id = tool_id
|
35
|
+
|
36
|
+
def error(self, error_msg: str) -> None: # noqa: D102
|
37
|
+
self._engine.output_message(
|
38
|
+
self._tool_id, Sdk.EngineMessageType.error, str(error_msg)
|
39
|
+
)
|
40
|
+
|
41
|
+
def warn(self, warn_msg: str) -> None: # noqa: D102
|
42
|
+
self._engine.output_message(
|
43
|
+
self._tool_id, Sdk.EngineMessageType.warning, str(warn_msg)
|
44
|
+
)
|
45
|
+
|
46
|
+
def info(self, info_msg: str) -> None: # noqa: D102
|
47
|
+
self._engine.output_message(
|
48
|
+
self._tool_id, Sdk.EngineMessageType.info, str(info_msg)
|
49
|
+
)
|
50
|
+
|
51
|
+
def translate_msg(self, msg: str, *args: Any) -> str: # noqa: D102
|
52
|
+
stringified_args = [str(arg) for arg in args]
|
53
|
+
translated_msg: str = self._engine.xmsg(msg, *stringified_args)
|
54
|
+
return translated_msg
|
55
|
+
|
56
|
+
def update_progress(self, percent: float) -> None: # noqa: D102
|
57
|
+
self._engine.output_tool_progress(self._tool_id, percent)
|
58
|
+
|
59
|
+
def create_temp_file(
|
60
|
+
self, extension: str = "tmp", options: int = 0
|
61
|
+
) -> Path: # noqa: D102
|
62
|
+
return Path(str(self._engine.create_temp_file_name(extension, options)))
|
63
|
+
|
64
|
+
@deprecation.deprecated(
|
65
|
+
deprecated_in="1.0.3",
|
66
|
+
removed_in="2.0.0",
|
67
|
+
details="Use functions of provider's dcm property instead",
|
68
|
+
) # type: ignore
|
69
|
+
def decrypt_password(self, password: str) -> str: # noqa: D102
|
70
|
+
# mode 0 being passed here means decryption
|
71
|
+
return cast(str, self._engine.decrypt_password(password, 0))
|
@@ -0,0 +1,157 @@
|
|
1
|
+
# Copyright (C) 2022 Alteryx, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the ALTERYX SDK AND API LICENSE AGREEMENT;
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.alteryx.com/alteryx-sdk-and-api-license-agreement
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
"""Alteryx plugin output anchor definition."""
|
15
|
+
from enum import Enum, unique
|
16
|
+
from typing import Iterator, Optional, TYPE_CHECKING
|
17
|
+
|
18
|
+
import another_ayx_python_sdk.providers.e1_provider.mock_e1_sdk.AlteryxPythonSDK as Sdk
|
19
|
+
|
20
|
+
|
21
|
+
from another_ayx_python_sdk.core import OutputAnchorBase
|
22
|
+
from another_ayx_python_sdk.core.doc_utilities import inherit_docs
|
23
|
+
from another_ayx_python_sdk.core.metadata import Metadata
|
24
|
+
from another_ayx_python_sdk.core.record_packet import RecordPacket
|
25
|
+
from another_ayx_python_sdk.providers.e1_provider.e1_output_anchor_proxy import (
|
26
|
+
E1OutputAnchorProxy,
|
27
|
+
)
|
28
|
+
from another_ayx_python_sdk.providers.e1_provider.e1_record_packet import E1RecordPacket
|
29
|
+
from another_ayx_python_sdk.providers.e1_provider.proxies.field_proxy import FieldProxy
|
30
|
+
from another_ayx_python_sdk.providers.e1_provider.utilities import (
|
31
|
+
convert_metadata_to_record_info,
|
32
|
+
fill_df_nulls_with_blackbird_nulls,
|
33
|
+
)
|
34
|
+
|
35
|
+
if TYPE_CHECKING:
|
36
|
+
from another_ayx_python_sdk.core.record_packet_base import RecordPacketBase
|
37
|
+
import pandas as pd
|
38
|
+
|
39
|
+
|
40
|
+
@unique
|
41
|
+
class OutputAnchorStatus(Enum):
|
42
|
+
"""Output anchor status enumeration."""
|
43
|
+
|
44
|
+
CREATED = 0
|
45
|
+
OPEN = 1
|
46
|
+
CLOSED = 2
|
47
|
+
|
48
|
+
|
49
|
+
@inherit_docs
|
50
|
+
class E1OutputAnchor(OutputAnchorBase):
|
51
|
+
"""Output anchor definition."""
|
52
|
+
|
53
|
+
__slots__ = ["_output_anchor_proxy", "_engine", "_metadata", "_status"]
|
54
|
+
|
55
|
+
def __init__(
|
56
|
+
self,
|
57
|
+
output_anchor_proxy: E1OutputAnchorProxy,
|
58
|
+
engine: Sdk.AlteryxEngine,
|
59
|
+
) -> None:
|
60
|
+
"""Initialize an output anchor."""
|
61
|
+
self._output_anchor_proxy = output_anchor_proxy
|
62
|
+
self._engine = engine
|
63
|
+
self._metadata: Optional[Metadata] = None
|
64
|
+
self._status = OutputAnchorStatus.CREATED
|
65
|
+
|
66
|
+
@property
|
67
|
+
def name(self) -> str: # noqa: D102
|
68
|
+
return self._output_anchor_proxy.name
|
69
|
+
|
70
|
+
@property
|
71
|
+
def allow_multiple(self) -> bool: # noqa: D102
|
72
|
+
return self._output_anchor_proxy.allow_multiple
|
73
|
+
|
74
|
+
@property
|
75
|
+
def optional(self) -> bool: # noqa: D102
|
76
|
+
return self._output_anchor_proxy.optional
|
77
|
+
|
78
|
+
@property
|
79
|
+
def num_connections(self) -> int: # noqa: D102
|
80
|
+
return self._output_anchor_proxy.num_connections
|
81
|
+
|
82
|
+
@property
|
83
|
+
def is_open(self) -> bool:
|
84
|
+
"""Get status indicating if the anchor is open."""
|
85
|
+
return self._status == OutputAnchorStatus.OPEN
|
86
|
+
|
87
|
+
@property
|
88
|
+
def metadata(self) -> Optional["Metadata"]:
|
89
|
+
"""Get the anchor metadata."""
|
90
|
+
return self._metadata
|
91
|
+
|
92
|
+
def open(self, metadata: Metadata) -> None: # noqa: D102
|
93
|
+
if self._status.value > OutputAnchorStatus.CREATED.value:
|
94
|
+
raise RuntimeError("Output anchor has already been opened.")
|
95
|
+
|
96
|
+
self._metadata = metadata
|
97
|
+
self._output_anchor_proxy.record_info = convert_metadata_to_record_info(
|
98
|
+
metadata, self._engine
|
99
|
+
)
|
100
|
+
self._output_anchor_proxy.push_metadata()
|
101
|
+
self._status = OutputAnchorStatus.OPEN
|
102
|
+
|
103
|
+
def write(self, record_packet: "RecordPacketBase") -> None: # noqa: D102
|
104
|
+
if self._status != OutputAnchorStatus.OPEN:
|
105
|
+
raise RuntimeError("Anchor must be opened before it can be written to.")
|
106
|
+
|
107
|
+
if isinstance(record_packet, E1RecordPacket) or isinstance(
|
108
|
+
record_packet, RecordPacket
|
109
|
+
):
|
110
|
+
self._output_anchor_proxy.push_records(
|
111
|
+
generate_records_from_df(
|
112
|
+
record_packet.to_dataframe(), self._output_anchor_proxy.record_info
|
113
|
+
)
|
114
|
+
)
|
115
|
+
else:
|
116
|
+
raise ValueError(
|
117
|
+
"The E1 SDK Provider only supports E1RecordPacket and "
|
118
|
+
"RecordPacket implementations of RecordPacketBase."
|
119
|
+
)
|
120
|
+
|
121
|
+
def flush(self) -> None: # noqa: D102
|
122
|
+
# The E1 Provider doesn't support flush, so just pass
|
123
|
+
pass
|
124
|
+
|
125
|
+
def close(self) -> None: # noqa: D102
|
126
|
+
if self._status != OutputAnchorStatus.OPEN:
|
127
|
+
raise RuntimeError("Output anchor is not open, so it cannot be closed.")
|
128
|
+
|
129
|
+
self._output_anchor_proxy.close()
|
130
|
+
self._status = OutputAnchorStatus.CLOSED
|
131
|
+
|
132
|
+
def update_progress(self, percent: float) -> None: # noqa: D102
|
133
|
+
if self._status != OutputAnchorStatus.OPEN:
|
134
|
+
raise RuntimeError(
|
135
|
+
"Output anchor must be open before progress can be written."
|
136
|
+
)
|
137
|
+
self._output_anchor_proxy.update_progress(percent)
|
138
|
+
|
139
|
+
|
140
|
+
def generate_records_from_df(
|
141
|
+
df: "pd.DataFrame", record_info: Sdk.RecordInfo
|
142
|
+
) -> Iterator[Sdk.RecordCreator]:
|
143
|
+
"""Generate record creators from a dataframe."""
|
144
|
+
fill_df_nulls_with_blackbird_nulls(df)
|
145
|
+
columns = list(df)
|
146
|
+
field_map = {field.name: FieldProxy(field) for field in record_info}
|
147
|
+
fields = [field_map[column_name] for column_name in columns]
|
148
|
+
|
149
|
+
record_creator = record_info.construct_record_creator()
|
150
|
+
|
151
|
+
col_range = range(len(fields))
|
152
|
+
for row in df.itertuples():
|
153
|
+
record_creator.reset()
|
154
|
+
for col_idx in col_range:
|
155
|
+
fields[col_idx].set(record_creator, row[col_idx + 1])
|
156
|
+
|
157
|
+
yield record_creator
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# Copyright (C) 2022 Alteryx, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the ALTERYX SDK AND API LICENSE AGREEMENT;
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.alteryx.com/alteryx-sdk-and-api-license-agreement
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
"""Alteryx plugin output anchor definition."""
|
15
|
+
from typing import Callable, Iterable, Optional
|
16
|
+
|
17
|
+
import another_ayx_python_sdk.providers.e1_provider.mock_e1_sdk.AlteryxPythonSDK as Sdk
|
18
|
+
|
19
|
+
|
20
|
+
class E1OutputAnchorProxy:
|
21
|
+
"""Output anchor definition."""
|
22
|
+
|
23
|
+
__slots__ = [
|
24
|
+
"engine_anchor_ref",
|
25
|
+
"_metadata_pushed",
|
26
|
+
"__record_info",
|
27
|
+
"name",
|
28
|
+
"allow_multiple",
|
29
|
+
"optional",
|
30
|
+
"num_connections",
|
31
|
+
"push_records",
|
32
|
+
]
|
33
|
+
|
34
|
+
def __init__(
|
35
|
+
self,
|
36
|
+
name: str,
|
37
|
+
allow_multiple: bool,
|
38
|
+
optional: bool,
|
39
|
+
output_anchor_mgr: Sdk.OutputAnchorManager,
|
40
|
+
record_info: Optional[Sdk.RecordInfo] = None,
|
41
|
+
) -> None:
|
42
|
+
"""Initialize an output anchor."""
|
43
|
+
engine_anchor_ref_optional = output_anchor_mgr.get_output_anchor(name)
|
44
|
+
if engine_anchor_ref_optional is None:
|
45
|
+
raise RuntimeError(f"Can't find output anchor: {name}")
|
46
|
+
else:
|
47
|
+
self.engine_anchor_ref: Sdk.OutputAnchor = engine_anchor_ref_optional
|
48
|
+
|
49
|
+
self._metadata_pushed: bool = False
|
50
|
+
self.__record_info = record_info
|
51
|
+
self.name = name
|
52
|
+
self.allow_multiple = allow_multiple
|
53
|
+
self.optional = optional
|
54
|
+
self.num_connections: int = 0
|
55
|
+
self.push_records: Callable = self._raise_metadata_error
|
56
|
+
|
57
|
+
@property
|
58
|
+
def record_info(self) -> Optional[Sdk.RecordInfo]:
|
59
|
+
"""Getter for record info."""
|
60
|
+
return self.__record_info
|
61
|
+
|
62
|
+
@record_info.setter
|
63
|
+
def record_info(self, value: Sdk.RecordInfo) -> None:
|
64
|
+
"""Setter for record info."""
|
65
|
+
if self._metadata_pushed:
|
66
|
+
raise RuntimeError("Can't reassign record_info after it has been pushed.")
|
67
|
+
|
68
|
+
self.__record_info = value
|
69
|
+
|
70
|
+
def update_progress(self, percent: float) -> None:
|
71
|
+
"""Push the progress to downstream tools."""
|
72
|
+
self.engine_anchor_ref.update_progress(percent)
|
73
|
+
|
74
|
+
def push_metadata(self) -> None:
|
75
|
+
"""Push metadata to downstream tools."""
|
76
|
+
if self.record_info is None:
|
77
|
+
raise ValueError("record_info must be set before metadata can be pushed.")
|
78
|
+
|
79
|
+
if not self._metadata_pushed:
|
80
|
+
self.engine_anchor_ref.init(self.record_info)
|
81
|
+
self._metadata_pushed = True
|
82
|
+
self.push_records = self._push_records
|
83
|
+
else:
|
84
|
+
raise RuntimeError("Metadata is trying to be pushed a second time.")
|
85
|
+
|
86
|
+
def _raise_metadata_error(self, _: Iterable[Sdk.RecordCreator]) -> None:
|
87
|
+
"""Push records out."""
|
88
|
+
raise RuntimeError("Must run push_metadata before push_records can be called.")
|
89
|
+
|
90
|
+
def _push_records(self, record_creators: Iterable[Sdk.RecordCreator]) -> None:
|
91
|
+
"""Push all records passed from iterable."""
|
92
|
+
for record_creator in record_creators:
|
93
|
+
self.engine_anchor_ref.push_record(record_creator.finalize_record(), False)
|
94
|
+
|
95
|
+
def close(self) -> None:
|
96
|
+
"""Close the output anchor."""
|
97
|
+
self.engine_anchor_ref.close()
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Copyright (C) 2022 Alteryx, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the ALTERYX SDK AND API LICENSE AGREEMENT;
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.alteryx.com/alteryx-sdk-and-api-license-agreement
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
"""E1 SDK Driver Class."""
|
15
|
+
from typing import Optional, TYPE_CHECKING, Type
|
16
|
+
|
17
|
+
from another_ayx_python_sdk.providers.e1_provider.e1_input_connection import E1InputConnection
|
18
|
+
from another_ayx_python_sdk.providers.e1_provider.records import ParsedRecordContainer
|
19
|
+
|
20
|
+
if TYPE_CHECKING:
|
21
|
+
from another_ayx_python_sdk.core.plugin import Plugin # noqa: F401
|
22
|
+
from another_ayx_python_sdk.core.provider_base import ProviderBase
|
23
|
+
from another_ayx_python_sdk.providers.e1_provider.connection_interface import (
|
24
|
+
ConnectionInterface,
|
25
|
+
)
|
26
|
+
|
27
|
+
|
28
|
+
class E1PluginDriver:
|
29
|
+
"""Wrapper around the plugin to expose only interfaces defined for a provider."""
|
30
|
+
|
31
|
+
def __init__(self, user_plugin_class: Type["Plugin"], provider: "ProviderBase"):
|
32
|
+
"""Construct the E1Provider."""
|
33
|
+
self._provider = provider
|
34
|
+
self._user_plugin_class = user_plugin_class
|
35
|
+
self._user_plugin: Optional["Plugin"] = None
|
36
|
+
|
37
|
+
def initialize_plugin(self) -> None:
|
38
|
+
"""Initialize plugin."""
|
39
|
+
self._user_plugin = self._user_plugin_class(self._provider)
|
40
|
+
|
41
|
+
def initialize_connection(self, connection: "ConnectionInterface") -> None:
|
42
|
+
"""Initialize a connection."""
|
43
|
+
if connection.record_info is None:
|
44
|
+
raise RuntimeError("Record info must be present before setting containers.")
|
45
|
+
|
46
|
+
if self._user_plugin is None:
|
47
|
+
raise ValueError("user_plugin hasn't been set.")
|
48
|
+
|
49
|
+
connection.add_record_container(ParsedRecordContainer(connection.record_info))
|
50
|
+
self._user_plugin.on_input_connection_opened(E1InputConnection(connection))
|
51
|
+
|
52
|
+
def on_record_packet(self, connection: "ConnectionInterface") -> None:
|
53
|
+
"""Handle the record packet received through the input connection."""
|
54
|
+
if self._user_plugin is None:
|
55
|
+
raise ValueError("user_plugin hasn't been set.")
|
56
|
+
|
57
|
+
self._user_plugin.on_record_packet(E1InputConnection(connection))
|
58
|
+
|
59
|
+
def on_complete(self) -> None:
|
60
|
+
"""Close plugin code after all records have finished streaming."""
|
61
|
+
if self._user_plugin is None:
|
62
|
+
raise ValueError("user_plugin hasn't been set.")
|
63
|
+
self._user_plugin.on_complete()
|