sapiopycommons 2025.9.19a761__py3-none-any.whl → 2025.10.1a772__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.
Potentially problematic release.
This version of sapiopycommons might be problematic. Click here for more details.
- sapiopycommons/webhook/webservice_handlers.py +1 -1
- {sapiopycommons-2025.9.19a761.dist-info → sapiopycommons-2025.10.1a772.dist-info}/METADATA +1 -1
- {sapiopycommons-2025.9.19a761.dist-info → sapiopycommons-2025.10.1a772.dist-info}/RECORD +5 -41
- sapiopycommons/ai/converter_service_base.py +0 -163
- sapiopycommons/ai/protoapi/fielddefinitions/fields_pb2.py +0 -43
- sapiopycommons/ai/protoapi/fielddefinitions/fields_pb2.pyi +0 -31
- sapiopycommons/ai/protoapi/fielddefinitions/fields_pb2_grpc.py +0 -24
- sapiopycommons/ai/protoapi/fielddefinitions/velox_field_def_pb2.py +0 -123
- sapiopycommons/ai/protoapi/fielddefinitions/velox_field_def_pb2.pyi +0 -598
- sapiopycommons/ai/protoapi/fielddefinitions/velox_field_def_pb2_grpc.py +0 -24
- sapiopycommons/ai/protoapi/plan/converter/converter_pb2.py +0 -51
- sapiopycommons/ai/protoapi/plan/converter/converter_pb2.pyi +0 -63
- sapiopycommons/ai/protoapi/plan/converter/converter_pb2_grpc.py +0 -149
- sapiopycommons/ai/protoapi/plan/item/item_container_pb2.py +0 -55
- sapiopycommons/ai/protoapi/plan/item/item_container_pb2.pyi +0 -90
- sapiopycommons/ai/protoapi/plan/item/item_container_pb2_grpc.py +0 -24
- sapiopycommons/ai/protoapi/plan/script/script_pb2.py +0 -59
- sapiopycommons/ai/protoapi/plan/script/script_pb2.pyi +0 -102
- sapiopycommons/ai/protoapi/plan/script/script_pb2_grpc.py +0 -153
- sapiopycommons/ai/protoapi/plan/step_output_pb2.py +0 -45
- sapiopycommons/ai/protoapi/plan/step_output_pb2.pyi +0 -42
- sapiopycommons/ai/protoapi/plan/step_output_pb2_grpc.py +0 -24
- sapiopycommons/ai/protoapi/plan/step_pb2.py +0 -43
- sapiopycommons/ai/protoapi/plan/step_pb2.pyi +0 -43
- sapiopycommons/ai/protoapi/plan/step_pb2_grpc.py +0 -24
- sapiopycommons/ai/protoapi/plan/tool/entry_pb2.py +0 -41
- sapiopycommons/ai/protoapi/plan/tool/entry_pb2.pyi +0 -35
- sapiopycommons/ai/protoapi/plan/tool/entry_pb2_grpc.py +0 -24
- sapiopycommons/ai/protoapi/plan/tool/tool_pb2.py +0 -77
- sapiopycommons/ai/protoapi/plan/tool/tool_pb2.pyi +0 -253
- sapiopycommons/ai/protoapi/plan/tool/tool_pb2_grpc.py +0 -154
- sapiopycommons/ai/protoapi/session/sapio_conn_info_pb2.py +0 -39
- sapiopycommons/ai/protoapi/session/sapio_conn_info_pb2.pyi +0 -32
- sapiopycommons/ai/protoapi/session/sapio_conn_info_pb2_grpc.py +0 -24
- sapiopycommons/ai/protobuf_utils.py +0 -504
- sapiopycommons/ai/server.py +0 -145
- sapiopycommons/ai/test_client.py +0 -367
- sapiopycommons/ai/tool_service_base.py +0 -1099
- sapiopycommons/files/temp_files.py +0 -79
- {sapiopycommons-2025.9.19a761.dist-info → sapiopycommons-2025.10.1a772.dist-info}/WHEEL +0 -0
- {sapiopycommons-2025.9.19a761.dist-info → sapiopycommons-2025.10.1a772.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: sapiopycommons/ai/protoapi/plan/converter/converter.proto
|
|
5
|
-
# Protobuf Python Version: 5.29.0
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
5,
|
|
15
|
-
29,
|
|
16
|
-
0,
|
|
17
|
-
'',
|
|
18
|
-
'sapiopycommons/ai/protoapi/plan/converter/converter.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from sapiopycommons.ai.protoapi.session import sapio_conn_info_pb2 as sapiopycommons_dot_ai_dot_protoapi_dot_session_dot_sapio__conn__info__pb2
|
|
26
|
-
from sapiopycommons.ai.protoapi.plan.item import item_container_pb2 as sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_item_dot_item__container__pb2
|
|
27
|
-
|
|
28
|
-
from sapiopycommons.ai.protoapi.session.sapio_conn_info_pb2 import *
|
|
29
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import *
|
|
30
|
-
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n9sapiopycommons/ai/protoapi/plan/converter/converter.proto\x1a\x38sapiopycommons/ai/protoapi/session/sapio_conn_info.proto\x1a\x39sapiopycommons/ai/protoapi/plan/item/item_container.proto\"\x1c\n\x1a\x43onverterDetailsRequestPbo\"\x87\x01\n\x12\x43ontentTypePairPbo\x12+\n\x12input_content_type\x18\x01 \x01(\x0b\x32\x0f.ContentTypePbo\x12,\n\x13output_content_type\x18\x02 \x01(\x0b\x32\x0f.ContentTypePbo\x12\x16\n\x0e\x63onverter_name\x18\x03 \x01(\t\"a\n\x1b\x43onverterDetailsResponsePbo\x12,\n\x0fsupported_types\x18\x01 \x03(\x0b\x32\x13.ContentTypePairPbo\x12\x14\n\x0cservice_name\x18\x02 \x01(\t\"p\n\x11\x43onvertRequestPbo\x12-\n\x0eitem_container\x18\x01 \x01(\x0b\x32\x15.StepItemContainerPbo\x12,\n\x13target_content_type\x18\x03 \x01(\x0b\x32\x0f.ContentTypePbo\"C\n\x12\x43onvertResponsePbo\x12-\n\x0eitem_container\x18\x01 \x01(\x0b\x32\x15.StepItemContainerPbo2\x9f\x01\n\x10\x43onverterService\x12P\n\x13GetConverterDetails\x12\x1b.ConverterDetailsRequestPbo\x1a\x1c.ConverterDetailsResponsePbo\x12\x39\n\x0e\x43onvertContent\x12\x12.ConvertRequestPbo\x1a\x13.ConvertResponsePboB%\n!com.velox.protoapi.plan.converterP\x01P\x00P\x01\x62\x06proto3')
|
|
32
|
-
|
|
33
|
-
_globals = globals()
|
|
34
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sapiopycommons.ai.protoapi.plan.converter.converter_pb2', _globals)
|
|
36
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n!com.velox.protoapi.plan.converterP\001'
|
|
39
|
-
_globals['_CONVERTERDETAILSREQUESTPBO']._serialized_start=178
|
|
40
|
-
_globals['_CONVERTERDETAILSREQUESTPBO']._serialized_end=206
|
|
41
|
-
_globals['_CONTENTTYPEPAIRPBO']._serialized_start=209
|
|
42
|
-
_globals['_CONTENTTYPEPAIRPBO']._serialized_end=344
|
|
43
|
-
_globals['_CONVERTERDETAILSRESPONSEPBO']._serialized_start=346
|
|
44
|
-
_globals['_CONVERTERDETAILSRESPONSEPBO']._serialized_end=443
|
|
45
|
-
_globals['_CONVERTREQUESTPBO']._serialized_start=445
|
|
46
|
-
_globals['_CONVERTREQUESTPBO']._serialized_end=557
|
|
47
|
-
_globals['_CONVERTRESPONSEPBO']._serialized_start=559
|
|
48
|
-
_globals['_CONVERTRESPONSEPBO']._serialized_end=626
|
|
49
|
-
_globals['_CONVERTERSERVICE']._serialized_start=629
|
|
50
|
-
_globals['_CONVERTERSERVICE']._serialized_end=788
|
|
51
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
from sapiopycommons.ai.protoapi.session import sapio_conn_info_pb2 as _sapio_conn_info_pb2
|
|
2
|
-
from sapiopycommons.ai.protoapi.plan.item import item_container_pb2 as _item_container_pb2
|
|
3
|
-
from google.protobuf.internal import containers as _containers
|
|
4
|
-
from google.protobuf import descriptor as _descriptor
|
|
5
|
-
from google.protobuf import message as _message
|
|
6
|
-
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
7
|
-
from sapiopycommons.ai.protoapi.session.sapio_conn_info_pb2 import SapioConnectionInfoPbo as SapioConnectionInfoPbo
|
|
8
|
-
from sapiopycommons.ai.protoapi.session.sapio_conn_info_pb2 import SapioUserSecretTypePbo as SapioUserSecretTypePbo
|
|
9
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import ContentTypePbo as ContentTypePbo
|
|
10
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import StepCsvHeaderRowPbo as StepCsvHeaderRowPbo
|
|
11
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import StepCsvRowPbo as StepCsvRowPbo
|
|
12
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import StepCsvContainerPbo as StepCsvContainerPbo
|
|
13
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import StepJsonContainerPbo as StepJsonContainerPbo
|
|
14
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import StepTextContainerPbo as StepTextContainerPbo
|
|
15
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import StepBinaryContainerPbo as StepBinaryContainerPbo
|
|
16
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import StepImageContainerPbo as StepImageContainerPbo
|
|
17
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import StepItemContainerPbo as StepItemContainerPbo
|
|
18
|
-
from sapiopycommons.ai.protoapi.plan.item.item_container_pb2 import DataTypePbo as DataTypePbo
|
|
19
|
-
|
|
20
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
21
|
-
SESSION_TOKEN: _sapio_conn_info_pb2.SapioUserSecretTypePbo
|
|
22
|
-
PASSWORD: _sapio_conn_info_pb2.SapioUserSecretTypePbo
|
|
23
|
-
BINARY: _item_container_pb2.DataTypePbo
|
|
24
|
-
JSON: _item_container_pb2.DataTypePbo
|
|
25
|
-
CSV: _item_container_pb2.DataTypePbo
|
|
26
|
-
TEXT: _item_container_pb2.DataTypePbo
|
|
27
|
-
IMAGE: _item_container_pb2.DataTypePbo
|
|
28
|
-
|
|
29
|
-
class ConverterDetailsRequestPbo(_message.Message):
|
|
30
|
-
__slots__ = ()
|
|
31
|
-
def __init__(self) -> None: ...
|
|
32
|
-
|
|
33
|
-
class ContentTypePairPbo(_message.Message):
|
|
34
|
-
__slots__ = ("input_content_type", "output_content_type", "converter_name")
|
|
35
|
-
INPUT_CONTENT_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
-
OUTPUT_CONTENT_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
-
CONVERTER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
-
input_content_type: _item_container_pb2.ContentTypePbo
|
|
39
|
-
output_content_type: _item_container_pb2.ContentTypePbo
|
|
40
|
-
converter_name: str
|
|
41
|
-
def __init__(self, input_content_type: _Optional[_Union[_item_container_pb2.ContentTypePbo, _Mapping]] = ..., output_content_type: _Optional[_Union[_item_container_pb2.ContentTypePbo, _Mapping]] = ..., converter_name: _Optional[str] = ...) -> None: ...
|
|
42
|
-
|
|
43
|
-
class ConverterDetailsResponsePbo(_message.Message):
|
|
44
|
-
__slots__ = ("supported_types", "service_name")
|
|
45
|
-
SUPPORTED_TYPES_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
-
SERVICE_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
-
supported_types: _containers.RepeatedCompositeFieldContainer[ContentTypePairPbo]
|
|
48
|
-
service_name: str
|
|
49
|
-
def __init__(self, supported_types: _Optional[_Iterable[_Union[ContentTypePairPbo, _Mapping]]] = ..., service_name: _Optional[str] = ...) -> None: ...
|
|
50
|
-
|
|
51
|
-
class ConvertRequestPbo(_message.Message):
|
|
52
|
-
__slots__ = ("item_container", "target_content_type")
|
|
53
|
-
ITEM_CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
-
TARGET_CONTENT_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
-
item_container: _item_container_pb2.StepItemContainerPbo
|
|
56
|
-
target_content_type: _item_container_pb2.ContentTypePbo
|
|
57
|
-
def __init__(self, item_container: _Optional[_Union[_item_container_pb2.StepItemContainerPbo, _Mapping]] = ..., target_content_type: _Optional[_Union[_item_container_pb2.ContentTypePbo, _Mapping]] = ...) -> None: ...
|
|
58
|
-
|
|
59
|
-
class ConvertResponsePbo(_message.Message):
|
|
60
|
-
__slots__ = ("item_container",)
|
|
61
|
-
ITEM_CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
-
item_container: _item_container_pb2.StepItemContainerPbo
|
|
63
|
-
def __init__(self, item_container: _Optional[_Union[_item_container_pb2.StepItemContainerPbo, _Mapping]] = ...) -> None: ...
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
-
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
-
import grpc
|
|
4
|
-
import warnings
|
|
5
|
-
|
|
6
|
-
from sapiopycommons.ai.protoapi.plan.converter import converter_pb2 as sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2
|
|
7
|
-
|
|
8
|
-
GRPC_GENERATED_VERSION = '1.70.0'
|
|
9
|
-
GRPC_VERSION = grpc.__version__
|
|
10
|
-
_version_not_supported = False
|
|
11
|
-
|
|
12
|
-
try:
|
|
13
|
-
from grpc._utilities import first_version_is_lower
|
|
14
|
-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
-
except ImportError:
|
|
16
|
-
_version_not_supported = True
|
|
17
|
-
|
|
18
|
-
if _version_not_supported:
|
|
19
|
-
raise RuntimeError(
|
|
20
|
-
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
-
+ f' but the generated code in sapiopycommons/ai/protoapi/plan/converter/converter_pb2_grpc.py depends on'
|
|
22
|
-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class ConverterServiceStub(object):
|
|
29
|
-
"""*
|
|
30
|
-
The ConverterService provides methods to retrieve converter details and perform content conversion between
|
|
31
|
-
different ConteTypes
|
|
32
|
-
"""
|
|
33
|
-
|
|
34
|
-
def __init__(self, channel):
|
|
35
|
-
"""Constructor.
|
|
36
|
-
|
|
37
|
-
Args:
|
|
38
|
-
channel: A grpc.Channel.
|
|
39
|
-
"""
|
|
40
|
-
self.GetConverterDetails = channel.unary_unary(
|
|
41
|
-
'/ConverterService/GetConverterDetails',
|
|
42
|
-
request_serializer=sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConverterDetailsRequestPbo.SerializeToString,
|
|
43
|
-
response_deserializer=sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConverterDetailsResponsePbo.FromString,
|
|
44
|
-
_registered_method=True)
|
|
45
|
-
self.ConvertContent = channel.unary_unary(
|
|
46
|
-
'/ConverterService/ConvertContent',
|
|
47
|
-
request_serializer=sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConvertRequestPbo.SerializeToString,
|
|
48
|
-
response_deserializer=sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConvertResponsePbo.FromString,
|
|
49
|
-
_registered_method=True)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
class ConverterServiceServicer(object):
|
|
53
|
-
"""*
|
|
54
|
-
The ConverterService provides methods to retrieve converter details and perform content conversion between
|
|
55
|
-
different ConteTypes
|
|
56
|
-
"""
|
|
57
|
-
|
|
58
|
-
def GetConverterDetails(self, request, context):
|
|
59
|
-
"""Missing associated documentation comment in .proto file."""
|
|
60
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
61
|
-
context.set_details('Method not implemented!')
|
|
62
|
-
raise NotImplementedError('Method not implemented!')
|
|
63
|
-
|
|
64
|
-
def ConvertContent(self, request, context):
|
|
65
|
-
"""Missing associated documentation comment in .proto file."""
|
|
66
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
67
|
-
context.set_details('Method not implemented!')
|
|
68
|
-
raise NotImplementedError('Method not implemented!')
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
def add_ConverterServiceServicer_to_server(servicer, server):
|
|
72
|
-
rpc_method_handlers = {
|
|
73
|
-
'GetConverterDetails': grpc.unary_unary_rpc_method_handler(
|
|
74
|
-
servicer.GetConverterDetails,
|
|
75
|
-
request_deserializer=sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConverterDetailsRequestPbo.FromString,
|
|
76
|
-
response_serializer=sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConverterDetailsResponsePbo.SerializeToString,
|
|
77
|
-
),
|
|
78
|
-
'ConvertContent': grpc.unary_unary_rpc_method_handler(
|
|
79
|
-
servicer.ConvertContent,
|
|
80
|
-
request_deserializer=sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConvertRequestPbo.FromString,
|
|
81
|
-
response_serializer=sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConvertResponsePbo.SerializeToString,
|
|
82
|
-
),
|
|
83
|
-
}
|
|
84
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
|
85
|
-
'ConverterService', rpc_method_handlers)
|
|
86
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
|
87
|
-
server.add_registered_method_handlers('ConverterService', rpc_method_handlers)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
# This class is part of an EXPERIMENTAL API.
|
|
91
|
-
class ConverterService(object):
|
|
92
|
-
"""*
|
|
93
|
-
The ConverterService provides methods to retrieve converter details and perform content conversion between
|
|
94
|
-
different ConteTypes
|
|
95
|
-
"""
|
|
96
|
-
|
|
97
|
-
@staticmethod
|
|
98
|
-
def GetConverterDetails(request,
|
|
99
|
-
target,
|
|
100
|
-
options=(),
|
|
101
|
-
channel_credentials=None,
|
|
102
|
-
call_credentials=None,
|
|
103
|
-
insecure=False,
|
|
104
|
-
compression=None,
|
|
105
|
-
wait_for_ready=None,
|
|
106
|
-
timeout=None,
|
|
107
|
-
metadata=None):
|
|
108
|
-
return grpc.experimental.unary_unary(
|
|
109
|
-
request,
|
|
110
|
-
target,
|
|
111
|
-
'/ConverterService/GetConverterDetails',
|
|
112
|
-
sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConverterDetailsRequestPbo.SerializeToString,
|
|
113
|
-
sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConverterDetailsResponsePbo.FromString,
|
|
114
|
-
options,
|
|
115
|
-
channel_credentials,
|
|
116
|
-
insecure,
|
|
117
|
-
call_credentials,
|
|
118
|
-
compression,
|
|
119
|
-
wait_for_ready,
|
|
120
|
-
timeout,
|
|
121
|
-
metadata,
|
|
122
|
-
_registered_method=True)
|
|
123
|
-
|
|
124
|
-
@staticmethod
|
|
125
|
-
def ConvertContent(request,
|
|
126
|
-
target,
|
|
127
|
-
options=(),
|
|
128
|
-
channel_credentials=None,
|
|
129
|
-
call_credentials=None,
|
|
130
|
-
insecure=False,
|
|
131
|
-
compression=None,
|
|
132
|
-
wait_for_ready=None,
|
|
133
|
-
timeout=None,
|
|
134
|
-
metadata=None):
|
|
135
|
-
return grpc.experimental.unary_unary(
|
|
136
|
-
request,
|
|
137
|
-
target,
|
|
138
|
-
'/ConverterService/ConvertContent',
|
|
139
|
-
sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConvertRequestPbo.SerializeToString,
|
|
140
|
-
sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_converter_dot_converter__pb2.ConvertResponsePbo.FromString,
|
|
141
|
-
options,
|
|
142
|
-
channel_credentials,
|
|
143
|
-
insecure,
|
|
144
|
-
call_credentials,
|
|
145
|
-
compression,
|
|
146
|
-
wait_for_ready,
|
|
147
|
-
timeout,
|
|
148
|
-
metadata,
|
|
149
|
-
_registered_method=True)
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: sapiopycommons/ai/protoapi/plan/item/item_container.proto
|
|
5
|
-
# Protobuf Python Version: 5.29.0
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
5,
|
|
15
|
-
29,
|
|
16
|
-
0,
|
|
17
|
-
'',
|
|
18
|
-
'sapiopycommons/ai/protoapi/plan/item/item_container.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n9sapiopycommons/ai/protoapi/plan/item/item_container.proto\"2\n\x0e\x43ontentTypePbo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nextensions\x18\x02 \x03(\t\"$\n\x13StepCsvHeaderRowPbo\x12\r\n\x05\x63\x65lls\x18\x01 \x03(\t\"\x1e\n\rStepCsvRowPbo\x12\r\n\x05\x63\x65lls\x18\x01 \x03(\t\"Z\n\x13StepCsvContainerPbo\x12$\n\x06header\x18\x0e \x01(\x0b\x32\x14.StepCsvHeaderRowPbo\x12\x1d\n\x05items\x18\x0f \x03(\x0b\x32\x0e.StepCsvRowPbo\"%\n\x14StepJsonContainerPbo\x12\r\n\x05items\x18\x0f \x03(\t\"%\n\x14StepTextContainerPbo\x12\r\n\x05items\x18\x0f \x03(\t\"\'\n\x16StepBinaryContainerPbo\x12\r\n\x05items\x18\x0f \x03(\x0c\"<\n\x15StepImageContainerPbo\x12\x14\n\x0cimage_format\x18\x01 \x01(\t\x12\r\n\x05items\x18\x0f \x03(\x0c\"\xac\x02\n\x14StepItemContainerPbo\x12%\n\x0c\x63ontent_type\x18\x02 \x01(\x0b\x32\x0f.ContentTypePbo\x12\x16\n\x0e\x63ontainer_name\x18\x03 \x01(\t\x12\x34\n\x10\x62inary_container\x18\xff\x0f \x01(\x0b\x32\x17.StepBinaryContainerPboH\x00\x12.\n\rcsv_container\x18\xfe\x0f \x01(\x0b\x32\x14.StepCsvContainerPboH\x00\x12\x30\n\x0ejson_container\x18\xfd\x0f \x01(\x0b\x32\x15.StepJsonContainerPboH\x00\x12\x30\n\x0etext_container\x18\xfc\x0f \x01(\x0b\x32\x15.StepTextContainerPboH\x00\x42\x0b\n\tcontainer*A\n\x0b\x44\x61taTypePbo\x12\n\n\x06\x42INARY\x10\x00\x12\x08\n\x04JSON\x10\x01\x12\x07\n\x03\x43SV\x10\x02\x12\x08\n\x04TEXT\x10\x03\x12\t\n\x05IMAGE\x10\x04\x42 \n\x1c\x63om.velox.protoapi.plan.itemP\x01\x62\x06proto3')
|
|
28
|
-
|
|
29
|
-
_globals = globals()
|
|
30
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sapiopycommons.ai.protoapi.plan.item.item_container_pb2', _globals)
|
|
32
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.velox.protoapi.plan.itemP\001'
|
|
35
|
-
_globals['_DATATYPEPBO']._serialized_start=759
|
|
36
|
-
_globals['_DATATYPEPBO']._serialized_end=824
|
|
37
|
-
_globals['_CONTENTTYPEPBO']._serialized_start=61
|
|
38
|
-
_globals['_CONTENTTYPEPBO']._serialized_end=111
|
|
39
|
-
_globals['_STEPCSVHEADERROWPBO']._serialized_start=113
|
|
40
|
-
_globals['_STEPCSVHEADERROWPBO']._serialized_end=149
|
|
41
|
-
_globals['_STEPCSVROWPBO']._serialized_start=151
|
|
42
|
-
_globals['_STEPCSVROWPBO']._serialized_end=181
|
|
43
|
-
_globals['_STEPCSVCONTAINERPBO']._serialized_start=183
|
|
44
|
-
_globals['_STEPCSVCONTAINERPBO']._serialized_end=273
|
|
45
|
-
_globals['_STEPJSONCONTAINERPBO']._serialized_start=275
|
|
46
|
-
_globals['_STEPJSONCONTAINERPBO']._serialized_end=312
|
|
47
|
-
_globals['_STEPTEXTCONTAINERPBO']._serialized_start=314
|
|
48
|
-
_globals['_STEPTEXTCONTAINERPBO']._serialized_end=351
|
|
49
|
-
_globals['_STEPBINARYCONTAINERPBO']._serialized_start=353
|
|
50
|
-
_globals['_STEPBINARYCONTAINERPBO']._serialized_end=392
|
|
51
|
-
_globals['_STEPIMAGECONTAINERPBO']._serialized_start=394
|
|
52
|
-
_globals['_STEPIMAGECONTAINERPBO']._serialized_end=454
|
|
53
|
-
_globals['_STEPITEMCONTAINERPBO']._serialized_start=457
|
|
54
|
-
_globals['_STEPITEMCONTAINERPBO']._serialized_end=757
|
|
55
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
from google.protobuf.internal import containers as _containers
|
|
2
|
-
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
3
|
-
from google.protobuf import descriptor as _descriptor
|
|
4
|
-
from google.protobuf import message as _message
|
|
5
|
-
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
6
|
-
|
|
7
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
-
|
|
9
|
-
class DataTypePbo(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
10
|
-
__slots__ = ()
|
|
11
|
-
BINARY: _ClassVar[DataTypePbo]
|
|
12
|
-
JSON: _ClassVar[DataTypePbo]
|
|
13
|
-
CSV: _ClassVar[DataTypePbo]
|
|
14
|
-
TEXT: _ClassVar[DataTypePbo]
|
|
15
|
-
IMAGE: _ClassVar[DataTypePbo]
|
|
16
|
-
BINARY: DataTypePbo
|
|
17
|
-
JSON: DataTypePbo
|
|
18
|
-
CSV: DataTypePbo
|
|
19
|
-
TEXT: DataTypePbo
|
|
20
|
-
IMAGE: DataTypePbo
|
|
21
|
-
|
|
22
|
-
class ContentTypePbo(_message.Message):
|
|
23
|
-
__slots__ = ("name", "extensions")
|
|
24
|
-
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
-
EXTENSIONS_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
-
name: str
|
|
27
|
-
extensions: _containers.RepeatedScalarFieldContainer[str]
|
|
28
|
-
def __init__(self, name: _Optional[str] = ..., extensions: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
29
|
-
|
|
30
|
-
class StepCsvHeaderRowPbo(_message.Message):
|
|
31
|
-
__slots__ = ("cells",)
|
|
32
|
-
CELLS_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
-
cells: _containers.RepeatedScalarFieldContainer[str]
|
|
34
|
-
def __init__(self, cells: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
35
|
-
|
|
36
|
-
class StepCsvRowPbo(_message.Message):
|
|
37
|
-
__slots__ = ("cells",)
|
|
38
|
-
CELLS_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
-
cells: _containers.RepeatedScalarFieldContainer[str]
|
|
40
|
-
def __init__(self, cells: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
41
|
-
|
|
42
|
-
class StepCsvContainerPbo(_message.Message):
|
|
43
|
-
__slots__ = ("header", "items")
|
|
44
|
-
HEADER_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
-
ITEMS_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
-
header: StepCsvHeaderRowPbo
|
|
47
|
-
items: _containers.RepeatedCompositeFieldContainer[StepCsvRowPbo]
|
|
48
|
-
def __init__(self, header: _Optional[_Union[StepCsvHeaderRowPbo, _Mapping]] = ..., items: _Optional[_Iterable[_Union[StepCsvRowPbo, _Mapping]]] = ...) -> None: ...
|
|
49
|
-
|
|
50
|
-
class StepJsonContainerPbo(_message.Message):
|
|
51
|
-
__slots__ = ("items",)
|
|
52
|
-
ITEMS_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
-
items: _containers.RepeatedScalarFieldContainer[str]
|
|
54
|
-
def __init__(self, items: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
55
|
-
|
|
56
|
-
class StepTextContainerPbo(_message.Message):
|
|
57
|
-
__slots__ = ("items",)
|
|
58
|
-
ITEMS_FIELD_NUMBER: _ClassVar[int]
|
|
59
|
-
items: _containers.RepeatedScalarFieldContainer[str]
|
|
60
|
-
def __init__(self, items: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
61
|
-
|
|
62
|
-
class StepBinaryContainerPbo(_message.Message):
|
|
63
|
-
__slots__ = ("items",)
|
|
64
|
-
ITEMS_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
-
items: _containers.RepeatedScalarFieldContainer[bytes]
|
|
66
|
-
def __init__(self, items: _Optional[_Iterable[bytes]] = ...) -> None: ...
|
|
67
|
-
|
|
68
|
-
class StepImageContainerPbo(_message.Message):
|
|
69
|
-
__slots__ = ("image_format", "items")
|
|
70
|
-
IMAGE_FORMAT_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
-
ITEMS_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
-
image_format: str
|
|
73
|
-
items: _containers.RepeatedScalarFieldContainer[bytes]
|
|
74
|
-
def __init__(self, image_format: _Optional[str] = ..., items: _Optional[_Iterable[bytes]] = ...) -> None: ...
|
|
75
|
-
|
|
76
|
-
class StepItemContainerPbo(_message.Message):
|
|
77
|
-
__slots__ = ("content_type", "container_name", "binary_container", "csv_container", "json_container", "text_container")
|
|
78
|
-
CONTENT_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
79
|
-
CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
-
BINARY_CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
81
|
-
CSV_CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
-
JSON_CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
-
TEXT_CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
-
content_type: ContentTypePbo
|
|
85
|
-
container_name: str
|
|
86
|
-
binary_container: StepBinaryContainerPbo
|
|
87
|
-
csv_container: StepCsvContainerPbo
|
|
88
|
-
json_container: StepJsonContainerPbo
|
|
89
|
-
text_container: StepTextContainerPbo
|
|
90
|
-
def __init__(self, content_type: _Optional[_Union[ContentTypePbo, _Mapping]] = ..., container_name: _Optional[str] = ..., binary_container: _Optional[_Union[StepBinaryContainerPbo, _Mapping]] = ..., csv_container: _Optional[_Union[StepCsvContainerPbo, _Mapping]] = ..., json_container: _Optional[_Union[StepJsonContainerPbo, _Mapping]] = ..., text_container: _Optional[_Union[StepTextContainerPbo, _Mapping]] = ...) -> None: ...
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
-
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
-
import grpc
|
|
4
|
-
import warnings
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
GRPC_GENERATED_VERSION = '1.70.0'
|
|
8
|
-
GRPC_VERSION = grpc.__version__
|
|
9
|
-
_version_not_supported = False
|
|
10
|
-
|
|
11
|
-
try:
|
|
12
|
-
from grpc._utilities import first_version_is_lower
|
|
13
|
-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
-
except ImportError:
|
|
15
|
-
_version_not_supported = True
|
|
16
|
-
|
|
17
|
-
if _version_not_supported:
|
|
18
|
-
raise RuntimeError(
|
|
19
|
-
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
-
+ f' but the generated code in sapiopycommons/ai/protoapi/plan/item/item_container_pb2_grpc.py depends on'
|
|
21
|
-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
-
)
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: sapiopycommons/ai/protoapi/plan/script/script.proto
|
|
5
|
-
# Protobuf Python Version: 5.29.0
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
5,
|
|
15
|
-
29,
|
|
16
|
-
0,
|
|
17
|
-
'',
|
|
18
|
-
'sapiopycommons/ai/protoapi/plan/script/script.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from sapiopycommons.ai.protoapi.plan.tool import entry_pb2 as sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_tool_dot_entry__pb2
|
|
26
|
-
try:
|
|
27
|
-
sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_item_dot_item__container__pb2 = sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_tool_dot_entry__pb2.sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_item_dot_item__container__pb2
|
|
28
|
-
except AttributeError:
|
|
29
|
-
sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_item_dot_item__container__pb2 = sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_tool_dot_entry__pb2.sapiopycommons.ai.protoapi.plan.item.item_container_pb2
|
|
30
|
-
from sapiopycommons.ai.protoapi.plan import step_pb2 as sapiopycommons_dot_ai_dot_protoapi_dot_plan_dot_step__pb2
|
|
31
|
-
from sapiopycommons.ai.protoapi.session import sapio_conn_info_pb2 as sapiopycommons_dot_ai_dot_protoapi_dot_session_dot_sapio__conn__info__pb2
|
|
32
|
-
|
|
33
|
-
from sapiopycommons.ai.protoapi.plan.tool.entry_pb2 import *
|
|
34
|
-
from sapiopycommons.ai.protoapi.plan.step_pb2 import *
|
|
35
|
-
from sapiopycommons.ai.protoapi.session.sapio_conn_info_pb2 import *
|
|
36
|
-
|
|
37
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3sapiopycommons/ai/protoapi/plan/script/script.proto\x1a\x30sapiopycommons/ai/protoapi/plan/tool/entry.proto\x1a*sapiopycommons/ai/protoapi/plan/step.proto\x1a\x38sapiopycommons/ai/protoapi/session/sapio_conn_info.proto\"A\n\x15ScriptFileContentsPbo\x12\x11\n\tfile_name\x18\x01 \x01(\t\x12\x15\n\rfile_contents\x18\x02 \x01(\x0c\"\xc2\x03\n\x19\x43reateScriptJobRequestPbo\x12+\n\nsapio_user\x18\x01 \x01(\x0b\x32\x17.SapioConnectionInfoPbo\x12\x17\n\x0fscript_language\x18\x02 \x01(\t\x12\x18\n\x10plan_instance_id\x18\x03 \x01(\x03\x12\x18\n\x10step_instance_id\x18\x04 \x01(\x03\x12\x15\n\rinvocation_id\x18\x05 \x01(\x03\x12%\n\rinput_configs\x18\x06 \x03(\x0b\x32\x0e.StepIoInfoPbo\x12&\n\x0eoutput_configs\x18\x07 \x03(\x0b\x32\x0e.StepIoInfoPbo\x12\x0f\n\x06script\x18\x80\x08 \x01(\t\x12\x10\n\x07timeout\x18\x81\x08 \x01(\x05\x12\x16\n\rmax_memory_mb\x18\x82\x08 \x01(\x05\x12\x1a\n\x11working_directory\x18\x83\x08 \x01(\t\x12,\n\x0binput_files\x18\x84\x08 \x03(\x0b\x32\x16.ScriptFileContentsPbo\x12\x1c\n\x13\x64ownload_file_names\x18\x85\x08 \x03(\t\x12\"\n\x05input\x18\xff\x0f \x03(\x0b\x32\x12.StepInputBatchPbo\",\n\x1a\x43reateScriptJobResponsePbo\x12\x0e\n\x06job_id\x18\x01 \x01(\t\"N\n\x10GetJobRequestPbo\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x12\n\nlog_offset\x18\x02 \x01(\x05\x12\x16\n\x0e\x64ownload_files\x18\x03 \x01(\x08\"\xa4\x01\n\x11GetJobResponsePbo\x12\x1a\n\x06status\x18\x01 \x01(\x0e\x32\n.JobStatus\x12\x0b\n\x03log\x18\x02 \x01(\t\x12\x11\n\texception\x18\x03 \x01(\t\x12-\n\x0coutput_files\x18\x84\x08 \x03(\x0b\x32\x16.ScriptFileContentsPbo\x12$\n\x06output\x18\xff\x0f \x03(\x0b\x32\x13.StepOutputBatchPbo*@\n\tJobStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x32\x8c\x01\n\rScriptService\x12J\n\x0f\x43reateScriptJob\x12\x1a.CreateScriptJobRequestPbo\x1a\x1b.CreateScriptJobResponsePbo\x12/\n\x06GetJob\x12\x11.GetJobRequestPbo\x1a\x12.GetJobResponsePboB \n\x1e\x63om.velox.protoapi.plan.scriptP\x00P\x01P\x02\x62\x06proto3')
|
|
38
|
-
|
|
39
|
-
_globals = globals()
|
|
40
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
41
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sapiopycommons.ai.protoapi.plan.script.script_pb2', _globals)
|
|
42
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
43
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
44
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\036com.velox.protoapi.plan.script'
|
|
45
|
-
_globals['_JOBSTATUS']._serialized_start=1020
|
|
46
|
-
_globals['_JOBSTATUS']._serialized_end=1084
|
|
47
|
-
_globals['_SCRIPTFILECONTENTSPBO']._serialized_start=207
|
|
48
|
-
_globals['_SCRIPTFILECONTENTSPBO']._serialized_end=272
|
|
49
|
-
_globals['_CREATESCRIPTJOBREQUESTPBO']._serialized_start=275
|
|
50
|
-
_globals['_CREATESCRIPTJOBREQUESTPBO']._serialized_end=725
|
|
51
|
-
_globals['_CREATESCRIPTJOBRESPONSEPBO']._serialized_start=727
|
|
52
|
-
_globals['_CREATESCRIPTJOBRESPONSEPBO']._serialized_end=771
|
|
53
|
-
_globals['_GETJOBREQUESTPBO']._serialized_start=773
|
|
54
|
-
_globals['_GETJOBREQUESTPBO']._serialized_end=851
|
|
55
|
-
_globals['_GETJOBRESPONSEPBO']._serialized_start=854
|
|
56
|
-
_globals['_GETJOBRESPONSEPBO']._serialized_end=1018
|
|
57
|
-
_globals['_SCRIPTSERVICE']._serialized_start=1087
|
|
58
|
-
_globals['_SCRIPTSERVICE']._serialized_end=1227
|
|
59
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
from sapiopycommons.ai.protoapi.plan.tool import entry_pb2 as _entry_pb2
|
|
2
|
-
from sapiopycommons.ai.protoapi.plan.item import item_container_pb2 as _item_container_pb2
|
|
3
|
-
from sapiopycommons.ai.protoapi.plan import step_pb2 as _step_pb2
|
|
4
|
-
from sapiopycommons.ai.protoapi.session import sapio_conn_info_pb2 as _sapio_conn_info_pb2
|
|
5
|
-
from google.protobuf.internal import containers as _containers
|
|
6
|
-
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import message as _message
|
|
9
|
-
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
10
|
-
from sapiopycommons.ai.protoapi.plan.tool.entry_pb2 import StepInputBatchPbo as StepInputBatchPbo
|
|
11
|
-
from sapiopycommons.ai.protoapi.plan.tool.entry_pb2 import StepOutputBatchPbo as StepOutputBatchPbo
|
|
12
|
-
from sapiopycommons.ai.protoapi.plan.step_pb2 import StepIoInfoPbo as StepIoInfoPbo
|
|
13
|
-
from sapiopycommons.ai.protoapi.plan.step_pb2 import StepIoDetailsPbo as StepIoDetailsPbo
|
|
14
|
-
from sapiopycommons.ai.protoapi.plan.step_pb2 import StepInputDetailsPbo as StepInputDetailsPbo
|
|
15
|
-
from sapiopycommons.ai.protoapi.plan.step_pb2 import StepOutputDetailsPbo as StepOutputDetailsPbo
|
|
16
|
-
from sapiopycommons.ai.protoapi.session.sapio_conn_info_pb2 import SapioConnectionInfoPbo as SapioConnectionInfoPbo
|
|
17
|
-
from sapiopycommons.ai.protoapi.session.sapio_conn_info_pb2 import SapioUserSecretTypePbo as SapioUserSecretTypePbo
|
|
18
|
-
|
|
19
|
-
DESCRIPTOR: _descriptor.FileDescriptor
|
|
20
|
-
SESSION_TOKEN: _sapio_conn_info_pb2.SapioUserSecretTypePbo
|
|
21
|
-
PASSWORD: _sapio_conn_info_pb2.SapioUserSecretTypePbo
|
|
22
|
-
|
|
23
|
-
class JobStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
24
|
-
__slots__ = ()
|
|
25
|
-
PENDING: _ClassVar[JobStatus]
|
|
26
|
-
RUNNING: _ClassVar[JobStatus]
|
|
27
|
-
COMPLETED: _ClassVar[JobStatus]
|
|
28
|
-
FAILED: _ClassVar[JobStatus]
|
|
29
|
-
PENDING: JobStatus
|
|
30
|
-
RUNNING: JobStatus
|
|
31
|
-
COMPLETED: JobStatus
|
|
32
|
-
FAILED: JobStatus
|
|
33
|
-
|
|
34
|
-
class ScriptFileContentsPbo(_message.Message):
|
|
35
|
-
__slots__ = ("file_name", "file_contents")
|
|
36
|
-
FILE_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
-
FILE_CONTENTS_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
-
file_name: str
|
|
39
|
-
file_contents: bytes
|
|
40
|
-
def __init__(self, file_name: _Optional[str] = ..., file_contents: _Optional[bytes] = ...) -> None: ...
|
|
41
|
-
|
|
42
|
-
class CreateScriptJobRequestPbo(_message.Message):
|
|
43
|
-
__slots__ = ("sapio_user", "script_language", "plan_instance_id", "step_instance_id", "invocation_id", "input_configs", "output_configs", "script", "timeout", "max_memory_mb", "working_directory", "input_files", "download_file_names", "input")
|
|
44
|
-
SAPIO_USER_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
-
SCRIPT_LANGUAGE_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
-
PLAN_INSTANCE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
-
STEP_INSTANCE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
-
INVOCATION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
-
INPUT_CONFIGS_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
-
OUTPUT_CONFIGS_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
-
SCRIPT_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
-
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
-
MAX_MEMORY_MB_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
-
WORKING_DIRECTORY_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
-
INPUT_FILES_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
-
DOWNLOAD_FILE_NAMES_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
-
INPUT_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
-
sapio_user: _sapio_conn_info_pb2.SapioConnectionInfoPbo
|
|
59
|
-
script_language: str
|
|
60
|
-
plan_instance_id: int
|
|
61
|
-
step_instance_id: int
|
|
62
|
-
invocation_id: int
|
|
63
|
-
input_configs: _containers.RepeatedCompositeFieldContainer[_step_pb2.StepIoInfoPbo]
|
|
64
|
-
output_configs: _containers.RepeatedCompositeFieldContainer[_step_pb2.StepIoInfoPbo]
|
|
65
|
-
script: str
|
|
66
|
-
timeout: int
|
|
67
|
-
max_memory_mb: int
|
|
68
|
-
working_directory: str
|
|
69
|
-
input_files: _containers.RepeatedCompositeFieldContainer[ScriptFileContentsPbo]
|
|
70
|
-
download_file_names: _containers.RepeatedScalarFieldContainer[str]
|
|
71
|
-
input: _containers.RepeatedCompositeFieldContainer[_entry_pb2.StepInputBatchPbo]
|
|
72
|
-
def __init__(self, sapio_user: _Optional[_Union[_sapio_conn_info_pb2.SapioConnectionInfoPbo, _Mapping]] = ..., script_language: _Optional[str] = ..., plan_instance_id: _Optional[int] = ..., step_instance_id: _Optional[int] = ..., invocation_id: _Optional[int] = ..., input_configs: _Optional[_Iterable[_Union[_step_pb2.StepIoInfoPbo, _Mapping]]] = ..., output_configs: _Optional[_Iterable[_Union[_step_pb2.StepIoInfoPbo, _Mapping]]] = ..., script: _Optional[str] = ..., timeout: _Optional[int] = ..., max_memory_mb: _Optional[int] = ..., working_directory: _Optional[str] = ..., input_files: _Optional[_Iterable[_Union[ScriptFileContentsPbo, _Mapping]]] = ..., download_file_names: _Optional[_Iterable[str]] = ..., input: _Optional[_Iterable[_Union[_entry_pb2.StepInputBatchPbo, _Mapping]]] = ...) -> None: ...
|
|
73
|
-
|
|
74
|
-
class CreateScriptJobResponsePbo(_message.Message):
|
|
75
|
-
__slots__ = ("job_id",)
|
|
76
|
-
JOB_ID_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
-
job_id: str
|
|
78
|
-
def __init__(self, job_id: _Optional[str] = ...) -> None: ...
|
|
79
|
-
|
|
80
|
-
class GetJobRequestPbo(_message.Message):
|
|
81
|
-
__slots__ = ("job_id", "log_offset", "download_files")
|
|
82
|
-
JOB_ID_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
-
LOG_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
-
DOWNLOAD_FILES_FIELD_NUMBER: _ClassVar[int]
|
|
85
|
-
job_id: str
|
|
86
|
-
log_offset: int
|
|
87
|
-
download_files: bool
|
|
88
|
-
def __init__(self, job_id: _Optional[str] = ..., log_offset: _Optional[int] = ..., download_files: bool = ...) -> None: ...
|
|
89
|
-
|
|
90
|
-
class GetJobResponsePbo(_message.Message):
|
|
91
|
-
__slots__ = ("status", "log", "exception", "output_files", "output")
|
|
92
|
-
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
-
LOG_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
-
EXCEPTION_FIELD_NUMBER: _ClassVar[int]
|
|
95
|
-
OUTPUT_FILES_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
-
OUTPUT_FIELD_NUMBER: _ClassVar[int]
|
|
97
|
-
status: JobStatus
|
|
98
|
-
log: str
|
|
99
|
-
exception: str
|
|
100
|
-
output_files: _containers.RepeatedCompositeFieldContainer[ScriptFileContentsPbo]
|
|
101
|
-
output: _containers.RepeatedCompositeFieldContainer[_entry_pb2.StepOutputBatchPbo]
|
|
102
|
-
def __init__(self, status: _Optional[_Union[JobStatus, str]] = ..., log: _Optional[str] = ..., exception: _Optional[str] = ..., output_files: _Optional[_Iterable[_Union[ScriptFileContentsPbo, _Mapping]]] = ..., output: _Optional[_Iterable[_Union[_entry_pb2.StepOutputBatchPbo, _Mapping]]] = ...) -> None: ...
|