sapiopycommons 2025.7.1a576__py3-none-any.whl → 2025.7.2a579__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.

Files changed (60) hide show
  1. sapiopycommons/callbacks/callback_util.py +665 -332
  2. sapiopycommons/callbacks/field_builder.py +2 -0
  3. sapiopycommons/chem/IndigoMolecules.py +31 -1
  4. sapiopycommons/chem/Molecules.py +3 -3
  5. sapiopycommons/chem/ps_commons.py +381 -0
  6. sapiopycommons/customreport/auto_pagers.py +26 -1
  7. sapiopycommons/customreport/term_builder.py +1 -1
  8. sapiopycommons/datatype/pseudo_data_types.py +349 -326
  9. sapiopycommons/eln/experiment_cache.py +188 -0
  10. sapiopycommons/eln/experiment_handler.py +408 -767
  11. sapiopycommons/eln/experiment_report_util.py +11 -6
  12. sapiopycommons/eln/experiment_step_factory.py +476 -0
  13. sapiopycommons/eln/plate_designer.py +7 -2
  14. sapiopycommons/eln/step_creation.py +236 -0
  15. sapiopycommons/files/file_util.py +7 -5
  16. sapiopycommons/general/accession_service.py +2 -2
  17. sapiopycommons/general/aliases.py +3 -1
  18. sapiopycommons/general/audit_log.py +7 -0
  19. sapiopycommons/general/custom_report_util.py +12 -0
  20. sapiopycommons/general/data_structure_util.py +115 -0
  21. sapiopycommons/processtracking/custom_workflow_handler.py +11 -1
  22. sapiopycommons/processtracking/endpoints.py +27 -0
  23. sapiopycommons/recordmodel/record_handler.py +657 -317
  24. sapiopycommons/rules/eln_rule_handler.py +8 -1
  25. sapiopycommons/rules/on_save_rule_handler.py +8 -1
  26. sapiopycommons/webhook/webhook_handlers.py +3 -0
  27. sapiopycommons/webhook/webservice_handlers.py +2 -2
  28. {sapiopycommons-2025.7.1a576.dist-info → sapiopycommons-2025.7.2a579.dist-info}/METADATA +2 -2
  29. sapiopycommons-2025.7.2a579.dist-info/RECORD +69 -0
  30. sapiopycommons/ai/__init__.py +0 -0
  31. sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2.py +0 -43
  32. sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2.pyi +0 -31
  33. sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2_grpc.py +0 -24
  34. sapiopycommons/ai/api/fielddefinitions/proto/velox_field_def_pb2.py +0 -123
  35. sapiopycommons/ai/api/fielddefinitions/proto/velox_field_def_pb2.pyi +0 -598
  36. sapiopycommons/ai/api/fielddefinitions/proto/velox_field_def_pb2_grpc.py +0 -24
  37. sapiopycommons/ai/api/plan/proto/step_output_pb2.py +0 -45
  38. sapiopycommons/ai/api/plan/proto/step_output_pb2.pyi +0 -42
  39. sapiopycommons/ai/api/plan/proto/step_output_pb2_grpc.py +0 -24
  40. sapiopycommons/ai/api/plan/proto/step_pb2.py +0 -43
  41. sapiopycommons/ai/api/plan/proto/step_pb2.pyi +0 -43
  42. sapiopycommons/ai/api/plan/proto/step_pb2_grpc.py +0 -24
  43. sapiopycommons/ai/api/plan/script/proto/script_pb2.py +0 -53
  44. sapiopycommons/ai/api/plan/script/proto/script_pb2.pyi +0 -99
  45. sapiopycommons/ai/api/plan/script/proto/script_pb2_grpc.py +0 -153
  46. sapiopycommons/ai/api/plan/tool/proto/entry_pb2.py +0 -57
  47. sapiopycommons/ai/api/plan/tool/proto/entry_pb2.pyi +0 -96
  48. sapiopycommons/ai/api/plan/tool/proto/entry_pb2_grpc.py +0 -24
  49. sapiopycommons/ai/api/plan/tool/proto/tool_pb2.py +0 -67
  50. sapiopycommons/ai/api/plan/tool/proto/tool_pb2.pyi +0 -220
  51. sapiopycommons/ai/api/plan/tool/proto/tool_pb2_grpc.py +0 -154
  52. sapiopycommons/ai/api/session/proto/sapio_conn_info_pb2.py +0 -39
  53. sapiopycommons/ai/api/session/proto/sapio_conn_info_pb2.pyi +0 -32
  54. sapiopycommons/ai/api/session/proto/sapio_conn_info_pb2_grpc.py +0 -24
  55. sapiopycommons/ai/protobuf_utils.py +0 -508
  56. sapiopycommons/ai/test_client.py +0 -216
  57. sapiopycommons/ai/tool_service_base.py +0 -798
  58. sapiopycommons-2025.7.1a576.dist-info/RECORD +0 -92
  59. {sapiopycommons-2025.7.1a576.dist-info → sapiopycommons-2025.7.2a579.dist-info}/WHEEL +0 -0
  60. {sapiopycommons-2025.7.1a576.dist-info → sapiopycommons-2025.7.2a579.dist-info}/licenses/LICENSE +0 -0
@@ -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/api/plan/tool/proto/entry_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,67 +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/api/plan/tool/proto/tool.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/api/plan/tool/proto/tool.proto'
19
- )
20
- # @@protoc_insertion_point(imports)
21
-
22
- _sym_db = _symbol_database.Default()
23
-
24
-
25
- from sapiopycommons.ai.api.fielddefinitions.proto import fields_pb2 as sapiopycommons_dot_ai_dot_api_dot_fielddefinitions_dot_proto_dot_fields__pb2
26
- from sapiopycommons.ai.api.fielddefinitions.proto import velox_field_def_pb2 as sapiopycommons_dot_ai_dot_api_dot_fielddefinitions_dot_proto_dot_velox__field__def__pb2
27
- from sapiopycommons.ai.api.plan.tool.proto import entry_pb2 as sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_entry__pb2
28
- from sapiopycommons.ai.api.plan.proto import step_pb2 as sapiopycommons_dot_ai_dot_api_dot_plan_dot_proto_dot_step__pb2
29
- from sapiopycommons.ai.api.session.proto import sapio_conn_info_pb2 as sapiopycommons_dot_ai_dot_api_dot_session_dot_proto_dot_sapio__conn__info__pb2
30
-
31
- from sapiopycommons.ai.api.fielddefinitions.proto.fields_pb2 import *
32
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import *
33
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import *
34
- from sapiopycommons.ai.api.plan.proto.step_pb2 import *
35
- from sapiopycommons.ai.api.session.proto.sapio_conn_info_pb2 import *
36
-
37
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0sapiopycommons/ai/api/plan/tool/proto/tool.proto\x1a\x39sapiopycommons/ai/api/fielddefinitions/proto/fields.proto\x1a\x42sapiopycommons/ai/api/fielddefinitions/proto/velox_field_def.proto\x1a\x31sapiopycommons/ai/api/plan/tool/proto/entry.proto\x1a+sapiopycommons/ai/api/plan/proto/step.proto\x1a\x39sapiopycommons/ai/api/session/proto/sapio_conn_info.proto\"z\n\x13ToolIoConfigBasePbo\x12\x14\n\x0c\x63ontent_type\x18\x01 \x01(\t\x12\x11\n\tio_number\x18\x02 \x01(\x05\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x0f\n\x07\x65xample\x18\x05 \x01(\t\"\xd9\x02\n\x13ToolInputDetailsPbo\x12)\n\x0b\x62\x61se_config\x18\x01 \x01(\x0b\x32\x14.ToolIoConfigBasePbo\x12\x12\n\nvalidation\x18\x02 \x01(\t\x12\x1c\n\x0fmin_input_count\x18\x03 \x01(\x05H\x00\x88\x01\x01\x12\x1c\n\x0fmax_input_count\x18\x04 \x01(\x05H\x01\x88\x01\x01\x12\r\n\x05paged\x18\x05 \x01(\x08\x12\x1a\n\rmin_page_size\x18\x06 \x01(\x05H\x02\x88\x01\x01\x12\x1a\n\rmax_page_size\x18\x07 \x01(\x05H\x03\x88\x01\x01\x12\x1e\n\x11max_request_bytes\x18\x08 \x01(\x05H\x04\x88\x01\x01\x42\x12\n\x10_min_input_countB\x12\n\x10_max_input_countB\x10\n\x0e_min_page_sizeB\x10\n\x0e_max_page_sizeB\x14\n\x12_max_request_bytes\"A\n\x14ToolOutputDetailsPbo\x12)\n\x0b\x62\x61se_config\x18\x01 \x01(\x0b\x32\x14.ToolIoConfigBasePbo\"\xab\x03\n\x15ProcessStepRequestPbo\x12+\n\nsapio_user\x18\x01 \x01(\x0b\x32\x17.SapioConnectionInfoPbo\x12\x11\n\ttool_name\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\x12J\n\x13\x63onfig_field_values\x18\x08 \x03(\x0b\x32-.ProcessStepRequestPbo.ConfigFieldValuesEntry\x12\"\n\x05input\x18\xff\x0f \x03(\x0b\x32\x12.StepInputBatchPbo\x1aH\n\x16\x43onfigFieldValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.FieldValuePbo:\x02\x38\x01\"u\n\x16ProcessStepResponsePbo\x12\'\n\x0bnew_records\x18\xfd\x0f \x03(\x0b\x32\x11.FieldValueMapPbo\x12\x0c\n\x03log\x18\xfe\x0f \x03(\t\x12$\n\x06output\x18\xff\x0f \x03(\x0b\x32\x13.StepOutputBatchPbo\"I\n\x15ToolDetailsRequestPbo\x12\x30\n\x0fsapio_conn_info\x18\x01 \x01(\x0b\x32\x17.SapioConnectionInfoPbo\"\xd8\x01\n\x0eToolDetailsPbo\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1d\n\x15output_data_type_name\x18\x04 \x01(\t\x12+\n\rinput_configs\x18\x05 \x03(\x0b\x32\x14.ToolInputDetailsPbo\x12-\n\x0eoutput_configs\x18\x06 \x03(\x0b\x32\x15.ToolOutputDetailsPbo\x12(\n\rconfig_fields\x18\x07 \x03(\x0b\x32\x11.VeloxFieldDefPbo\"_\n\x16ToolDetailsResponsePbo\x12\x1e\n\x16tool_framework_version\x18\x01 \x01(\x05\x12%\n\x0ctool_details\x18\x02 \x03(\x0b\x32\x0f.ToolDetailsPbo2\x90\x01\n\x0bToolService\x12\x41\n\x0eGetToolDetails\x12\x16.ToolDetailsRequestPbo\x1a\x17.ToolDetailsResponsePbo\x12>\n\x0bProcessData\x12\x16.ProcessStepRequestPbo\x1a\x17.ProcessStepResponsePboB!\n\x1d\x63om.velox.api.plan.tool.protoP\x01P\x00P\x01P\x02P\x03P\x04\x62\x06proto3')
38
-
39
- _globals = globals()
40
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
41
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sapiopycommons.ai.api.plan.tool.proto.tool_pb2', _globals)
42
- if not _descriptor._USE_C_DESCRIPTORS:
43
- _globals['DESCRIPTOR']._loaded_options = None
44
- _globals['DESCRIPTOR']._serialized_options = b'\n\035com.velox.api.plan.tool.protoP\001'
45
- _globals['_PROCESSSTEPREQUESTPBO_CONFIGFIELDVALUESENTRY']._loaded_options = None
46
- _globals['_PROCESSSTEPREQUESTPBO_CONFIGFIELDVALUESENTRY']._serialized_options = b'8\001'
47
- _globals['_TOOLIOCONFIGBASEPBO']._serialized_start=334
48
- _globals['_TOOLIOCONFIGBASEPBO']._serialized_end=456
49
- _globals['_TOOLINPUTDETAILSPBO']._serialized_start=459
50
- _globals['_TOOLINPUTDETAILSPBO']._serialized_end=804
51
- _globals['_TOOLOUTPUTDETAILSPBO']._serialized_start=806
52
- _globals['_TOOLOUTPUTDETAILSPBO']._serialized_end=871
53
- _globals['_PROCESSSTEPREQUESTPBO']._serialized_start=874
54
- _globals['_PROCESSSTEPREQUESTPBO']._serialized_end=1301
55
- _globals['_PROCESSSTEPREQUESTPBO_CONFIGFIELDVALUESENTRY']._serialized_start=1229
56
- _globals['_PROCESSSTEPREQUESTPBO_CONFIGFIELDVALUESENTRY']._serialized_end=1301
57
- _globals['_PROCESSSTEPRESPONSEPBO']._serialized_start=1303
58
- _globals['_PROCESSSTEPRESPONSEPBO']._serialized_end=1420
59
- _globals['_TOOLDETAILSREQUESTPBO']._serialized_start=1422
60
- _globals['_TOOLDETAILSREQUESTPBO']._serialized_end=1495
61
- _globals['_TOOLDETAILSPBO']._serialized_start=1498
62
- _globals['_TOOLDETAILSPBO']._serialized_end=1714
63
- _globals['_TOOLDETAILSRESPONSEPBO']._serialized_start=1716
64
- _globals['_TOOLDETAILSRESPONSEPBO']._serialized_end=1811
65
- _globals['_TOOLSERVICE']._serialized_start=1814
66
- _globals['_TOOLSERVICE']._serialized_end=1958
67
- # @@protoc_insertion_point(module_scope)
@@ -1,220 +0,0 @@
1
- from sapiopycommons.ai.api.fielddefinitions.proto import fields_pb2 as _fields_pb2
2
- from sapiopycommons.ai.api.fielddefinitions.proto import velox_field_def_pb2 as _velox_field_def_pb2
3
- from sapiopycommons.ai.api.plan.tool.proto import entry_pb2 as _entry_pb2
4
- from sapiopycommons.ai.api.plan.proto import step_pb2 as _step_pb2
5
- from sapiopycommons.ai.api.session.proto import sapio_conn_info_pb2 as _sapio_conn_info_pb2
6
- from google.protobuf.internal import containers as _containers
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.api.fielddefinitions.proto.fields_pb2 import FieldValuePbo as FieldValuePbo
11
- from sapiopycommons.ai.api.fielddefinitions.proto.fields_pb2 import FieldValueMapPbo as FieldValueMapPbo
12
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import FieldValidatorPbo as FieldValidatorPbo
13
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import ColorRangePbo as ColorRangePbo
14
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import BooleanDependentFieldEntryPbo as BooleanDependentFieldEntryPbo
15
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import SelectionDependentFieldEntryPbo as SelectionDependentFieldEntryPbo
16
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import EnumDependentFieldEntryPbo as EnumDependentFieldEntryPbo
17
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import ProcessDetailEntryPbo as ProcessDetailEntryPbo
18
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import BooleanPropertiesPbo as BooleanPropertiesPbo
19
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import DatePropertiesPbo as DatePropertiesPbo
20
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import DoublePropertiesPbo as DoublePropertiesPbo
21
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import IntegerPropertiesPbo as IntegerPropertiesPbo
22
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import LongPropertiesPbo as LongPropertiesPbo
23
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import ShortPropertiesPbo as ShortPropertiesPbo
24
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import SelectionPropertiesPbo as SelectionPropertiesPbo
25
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import StringPropertiesPbo as StringPropertiesPbo
26
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import SideLinkPropertiesPbo as SideLinkPropertiesPbo
27
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import PickListPropertiesPbo as PickListPropertiesPbo
28
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import ParentLinkPropertiesPbo as ParentLinkPropertiesPbo
29
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import MultiParentPropertiesPbo as MultiParentPropertiesPbo
30
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import IdentifierPropertiesPbo as IdentifierPropertiesPbo
31
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import FileBlobPropertiesPbo as FileBlobPropertiesPbo
32
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import EnumPropertiesPbo as EnumPropertiesPbo
33
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import DateRangePropertiesPbo as DateRangePropertiesPbo
34
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import ChildLinkPropertiesPbo as ChildLinkPropertiesPbo
35
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import ActionStringPropertiesPbo as ActionStringPropertiesPbo
36
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import ActionPropertiesPbo as ActionPropertiesPbo
37
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import AccessionPropertiesPbo as AccessionPropertiesPbo
38
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import VeloxFieldDefPbo as VeloxFieldDefPbo
39
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import VeloxFieldDefListPbo as VeloxFieldDefListPbo
40
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import FieldTypePbo as FieldTypePbo
41
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import SortDirectionPbo as SortDirectionPbo
42
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import FontSizePbo as FontSizePbo
43
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import TextDecorationPbo as TextDecorationPbo
44
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import StringFormatPbo as StringFormatPbo
45
- from sapiopycommons.ai.api.fielddefinitions.proto.velox_field_def_pb2 import DoubleFormatPbo as DoubleFormatPbo
46
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepCsvHeaderRowPbo as StepCsvHeaderRowPbo
47
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepCsvRowPbo as StepCsvRowPbo
48
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepCsvContainerPbo as StepCsvContainerPbo
49
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepJsonContainerPbo as StepJsonContainerPbo
50
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepTextContainerPbo as StepTextContainerPbo
51
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepBinaryContainerPbo as StepBinaryContainerPbo
52
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepImageContainerPbo as StepImageContainerPbo
53
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepItemContainerPbo as StepItemContainerPbo
54
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepInputBatchPbo as StepInputBatchPbo
55
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepOutputBatchPbo as StepOutputBatchPbo
56
- from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import DataTypePbo as DataTypePbo
57
- from sapiopycommons.ai.api.plan.proto.step_pb2 import StepIoInfoPbo as StepIoInfoPbo
58
- from sapiopycommons.ai.api.plan.proto.step_pb2 import StepIoDetailsPbo as StepIoDetailsPbo
59
- from sapiopycommons.ai.api.plan.proto.step_pb2 import StepInputDetailsPbo as StepInputDetailsPbo
60
- from sapiopycommons.ai.api.plan.proto.step_pb2 import StepOutputDetailsPbo as StepOutputDetailsPbo
61
- from sapiopycommons.ai.api.session.proto.sapio_conn_info_pb2 import SapioConnectionInfoPbo as SapioConnectionInfoPbo
62
- from sapiopycommons.ai.api.session.proto.sapio_conn_info_pb2 import SapioUserSecretTypePbo as SapioUserSecretTypePbo
63
-
64
- DESCRIPTOR: _descriptor.FileDescriptor
65
- FIELD_TYPE_UNSPECIFIED: _velox_field_def_pb2.FieldTypePbo
66
- BOOLEAN: _velox_field_def_pb2.FieldTypePbo
67
- DOUBLE: _velox_field_def_pb2.FieldTypePbo
68
- ENUM: _velox_field_def_pb2.FieldTypePbo
69
- LONG: _velox_field_def_pb2.FieldTypePbo
70
- INTEGER: _velox_field_def_pb2.FieldTypePbo
71
- SHORT: _velox_field_def_pb2.FieldTypePbo
72
- STRING: _velox_field_def_pb2.FieldTypePbo
73
- DATE: _velox_field_def_pb2.FieldTypePbo
74
- ACTION: _velox_field_def_pb2.FieldTypePbo
75
- SELECTION: _velox_field_def_pb2.FieldTypePbo
76
- PARENTLINK: _velox_field_def_pb2.FieldTypePbo
77
- IDENTIFIER: _velox_field_def_pb2.FieldTypePbo
78
- PICKLIST: _velox_field_def_pb2.FieldTypePbo
79
- LINK: _velox_field_def_pb2.FieldTypePbo
80
- MULTIPARENTLINK: _velox_field_def_pb2.FieldTypePbo
81
- CHILDLINK: _velox_field_def_pb2.FieldTypePbo
82
- AUTO_ACCESSION: _velox_field_def_pb2.FieldTypePbo
83
- DATE_RANGE: _velox_field_def_pb2.FieldTypePbo
84
- SIDE_LINK: _velox_field_def_pb2.FieldTypePbo
85
- ACTION_STRING: _velox_field_def_pb2.FieldTypePbo
86
- FILE_BLOB: _velox_field_def_pb2.FieldTypePbo
87
- SORT_DIRECTION_UNSPECIFIED: _velox_field_def_pb2.SortDirectionPbo
88
- SORT_DIRECTION_ASCENDING: _velox_field_def_pb2.SortDirectionPbo
89
- SORT_DIRECTION_DESCENDING: _velox_field_def_pb2.SortDirectionPbo
90
- SORT_DIRECTION_NONE: _velox_field_def_pb2.SortDirectionPbo
91
- FONT_SIZE_UNSPECIFIED: _velox_field_def_pb2.FontSizePbo
92
- FONT_SIZE_SMALL: _velox_field_def_pb2.FontSizePbo
93
- FONT_SIZE_MEDIUM: _velox_field_def_pb2.FontSizePbo
94
- FONT_SIZE_LARGE: _velox_field_def_pb2.FontSizePbo
95
- TEXT_DECORATION_UNSPECIFIED: _velox_field_def_pb2.TextDecorationPbo
96
- TEXT_DECORATION_NONE: _velox_field_def_pb2.TextDecorationPbo
97
- TEXT_DECORATION_UNDERLINE: _velox_field_def_pb2.TextDecorationPbo
98
- TEXT_DECORATION_STRIKETHROUGH: _velox_field_def_pb2.TextDecorationPbo
99
- STRING_FORMAT_UNSPECIFIED: _velox_field_def_pb2.StringFormatPbo
100
- STRING_FORMAT_PHONE: _velox_field_def_pb2.StringFormatPbo
101
- STRING_FORMAT_EMAIL: _velox_field_def_pb2.StringFormatPbo
102
- DOUBLE_FORMAT_UNSPECIFIED: _velox_field_def_pb2.DoubleFormatPbo
103
- DOUBLE_FORMAT_CURRENCY: _velox_field_def_pb2.DoubleFormatPbo
104
- DOUBLE_FORMAT_PERCENTAGE: _velox_field_def_pb2.DoubleFormatPbo
105
- BINARY: _entry_pb2.DataTypePbo
106
- JSON: _entry_pb2.DataTypePbo
107
- CSV: _entry_pb2.DataTypePbo
108
- TEXT: _entry_pb2.DataTypePbo
109
- IMAGE: _entry_pb2.DataTypePbo
110
- SESSION_TOKEN: _sapio_conn_info_pb2.SapioUserSecretTypePbo
111
- PASSWORD: _sapio_conn_info_pb2.SapioUserSecretTypePbo
112
-
113
- class ToolIoConfigBasePbo(_message.Message):
114
- __slots__ = ("content_type", "io_number", "display_name", "description", "example")
115
- CONTENT_TYPE_FIELD_NUMBER: _ClassVar[int]
116
- IO_NUMBER_FIELD_NUMBER: _ClassVar[int]
117
- DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
118
- DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
119
- EXAMPLE_FIELD_NUMBER: _ClassVar[int]
120
- content_type: str
121
- io_number: int
122
- display_name: str
123
- description: str
124
- example: str
125
- def __init__(self, content_type: _Optional[str] = ..., io_number: _Optional[int] = ..., display_name: _Optional[str] = ..., description: _Optional[str] = ..., example: _Optional[str] = ...) -> None: ...
126
-
127
- class ToolInputDetailsPbo(_message.Message):
128
- __slots__ = ("base_config", "validation", "min_input_count", "max_input_count", "paged", "min_page_size", "max_page_size", "max_request_bytes")
129
- BASE_CONFIG_FIELD_NUMBER: _ClassVar[int]
130
- VALIDATION_FIELD_NUMBER: _ClassVar[int]
131
- MIN_INPUT_COUNT_FIELD_NUMBER: _ClassVar[int]
132
- MAX_INPUT_COUNT_FIELD_NUMBER: _ClassVar[int]
133
- PAGED_FIELD_NUMBER: _ClassVar[int]
134
- MIN_PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
135
- MAX_PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
136
- MAX_REQUEST_BYTES_FIELD_NUMBER: _ClassVar[int]
137
- base_config: ToolIoConfigBasePbo
138
- validation: str
139
- min_input_count: int
140
- max_input_count: int
141
- paged: bool
142
- min_page_size: int
143
- max_page_size: int
144
- max_request_bytes: int
145
- def __init__(self, base_config: _Optional[_Union[ToolIoConfigBasePbo, _Mapping]] = ..., validation: _Optional[str] = ..., min_input_count: _Optional[int] = ..., max_input_count: _Optional[int] = ..., paged: bool = ..., min_page_size: _Optional[int] = ..., max_page_size: _Optional[int] = ..., max_request_bytes: _Optional[int] = ...) -> None: ...
146
-
147
- class ToolOutputDetailsPbo(_message.Message):
148
- __slots__ = ("base_config",)
149
- BASE_CONFIG_FIELD_NUMBER: _ClassVar[int]
150
- base_config: ToolIoConfigBasePbo
151
- def __init__(self, base_config: _Optional[_Union[ToolIoConfigBasePbo, _Mapping]] = ...) -> None: ...
152
-
153
- class ProcessStepRequestPbo(_message.Message):
154
- __slots__ = ("sapio_user", "tool_name", "plan_instance_id", "step_instance_id", "invocation_id", "input_configs", "output_configs", "config_field_values", "input")
155
- class ConfigFieldValuesEntry(_message.Message):
156
- __slots__ = ("key", "value")
157
- KEY_FIELD_NUMBER: _ClassVar[int]
158
- VALUE_FIELD_NUMBER: _ClassVar[int]
159
- key: str
160
- value: _fields_pb2.FieldValuePbo
161
- def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_fields_pb2.FieldValuePbo, _Mapping]] = ...) -> None: ...
162
- SAPIO_USER_FIELD_NUMBER: _ClassVar[int]
163
- TOOL_NAME_FIELD_NUMBER: _ClassVar[int]
164
- PLAN_INSTANCE_ID_FIELD_NUMBER: _ClassVar[int]
165
- STEP_INSTANCE_ID_FIELD_NUMBER: _ClassVar[int]
166
- INVOCATION_ID_FIELD_NUMBER: _ClassVar[int]
167
- INPUT_CONFIGS_FIELD_NUMBER: _ClassVar[int]
168
- OUTPUT_CONFIGS_FIELD_NUMBER: _ClassVar[int]
169
- CONFIG_FIELD_VALUES_FIELD_NUMBER: _ClassVar[int]
170
- INPUT_FIELD_NUMBER: _ClassVar[int]
171
- sapio_user: _sapio_conn_info_pb2.SapioConnectionInfoPbo
172
- tool_name: str
173
- plan_instance_id: int
174
- step_instance_id: int
175
- invocation_id: int
176
- input_configs: _containers.RepeatedCompositeFieldContainer[_step_pb2.StepIoInfoPbo]
177
- output_configs: _containers.RepeatedCompositeFieldContainer[_step_pb2.StepIoInfoPbo]
178
- config_field_values: _containers.MessageMap[str, _fields_pb2.FieldValuePbo]
179
- input: _containers.RepeatedCompositeFieldContainer[_entry_pb2.StepInputBatchPbo]
180
- def __init__(self, sapio_user: _Optional[_Union[_sapio_conn_info_pb2.SapioConnectionInfoPbo, _Mapping]] = ..., tool_name: _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]]] = ..., config_field_values: _Optional[_Mapping[str, _fields_pb2.FieldValuePbo]] = ..., input: _Optional[_Iterable[_Union[_entry_pb2.StepInputBatchPbo, _Mapping]]] = ...) -> None: ...
181
-
182
- class ProcessStepResponsePbo(_message.Message):
183
- __slots__ = ("new_records", "log", "output")
184
- NEW_RECORDS_FIELD_NUMBER: _ClassVar[int]
185
- LOG_FIELD_NUMBER: _ClassVar[int]
186
- OUTPUT_FIELD_NUMBER: _ClassVar[int]
187
- new_records: _containers.RepeatedCompositeFieldContainer[_fields_pb2.FieldValueMapPbo]
188
- log: _containers.RepeatedScalarFieldContainer[str]
189
- output: _containers.RepeatedCompositeFieldContainer[_entry_pb2.StepOutputBatchPbo]
190
- def __init__(self, new_records: _Optional[_Iterable[_Union[_fields_pb2.FieldValueMapPbo, _Mapping]]] = ..., log: _Optional[_Iterable[str]] = ..., output: _Optional[_Iterable[_Union[_entry_pb2.StepOutputBatchPbo, _Mapping]]] = ...) -> None: ...
191
-
192
- class ToolDetailsRequestPbo(_message.Message):
193
- __slots__ = ("sapio_conn_info",)
194
- SAPIO_CONN_INFO_FIELD_NUMBER: _ClassVar[int]
195
- sapio_conn_info: _sapio_conn_info_pb2.SapioConnectionInfoPbo
196
- def __init__(self, sapio_conn_info: _Optional[_Union[_sapio_conn_info_pb2.SapioConnectionInfoPbo, _Mapping]] = ...) -> None: ...
197
-
198
- class ToolDetailsPbo(_message.Message):
199
- __slots__ = ("name", "description", "output_data_type_name", "input_configs", "output_configs", "config_fields")
200
- NAME_FIELD_NUMBER: _ClassVar[int]
201
- DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
202
- OUTPUT_DATA_TYPE_NAME_FIELD_NUMBER: _ClassVar[int]
203
- INPUT_CONFIGS_FIELD_NUMBER: _ClassVar[int]
204
- OUTPUT_CONFIGS_FIELD_NUMBER: _ClassVar[int]
205
- CONFIG_FIELDS_FIELD_NUMBER: _ClassVar[int]
206
- name: str
207
- description: str
208
- output_data_type_name: str
209
- input_configs: _containers.RepeatedCompositeFieldContainer[ToolInputDetailsPbo]
210
- output_configs: _containers.RepeatedCompositeFieldContainer[ToolOutputDetailsPbo]
211
- config_fields: _containers.RepeatedCompositeFieldContainer[_velox_field_def_pb2.VeloxFieldDefPbo]
212
- def __init__(self, name: _Optional[str] = ..., description: _Optional[str] = ..., output_data_type_name: _Optional[str] = ..., input_configs: _Optional[_Iterable[_Union[ToolInputDetailsPbo, _Mapping]]] = ..., output_configs: _Optional[_Iterable[_Union[ToolOutputDetailsPbo, _Mapping]]] = ..., config_fields: _Optional[_Iterable[_Union[_velox_field_def_pb2.VeloxFieldDefPbo, _Mapping]]] = ...) -> None: ...
213
-
214
- class ToolDetailsResponsePbo(_message.Message):
215
- __slots__ = ("tool_framework_version", "tool_details")
216
- TOOL_FRAMEWORK_VERSION_FIELD_NUMBER: _ClassVar[int]
217
- TOOL_DETAILS_FIELD_NUMBER: _ClassVar[int]
218
- tool_framework_version: int
219
- tool_details: _containers.RepeatedCompositeFieldContainer[ToolDetailsPbo]
220
- def __init__(self, tool_framework_version: _Optional[int] = ..., tool_details: _Optional[_Iterable[_Union[ToolDetailsPbo, _Mapping]]] = ...) -> None: ...
@@ -1,154 +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.api.plan.tool.proto import tool_pb2 as sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__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/api/plan/tool/proto/tool_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 ToolServiceStub(object):
29
- """
30
- This is the generic service interface that all tools must implement. We will use hostname routing to route the request to the correct tool.
31
- The other option is for us to use gRPC metadata to route the request to the correct tool. We don't want to expose a bunch of ports and that's
32
- a pain to manage. So we will use hostname routing for now.
33
- """
34
-
35
- def __init__(self, channel):
36
- """Constructor.
37
-
38
- Args:
39
- channel: A grpc.Channel.
40
- """
41
- self.GetToolDetails = channel.unary_unary(
42
- '/ToolService/GetToolDetails',
43
- request_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ToolDetailsRequestPbo.SerializeToString,
44
- response_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ToolDetailsResponsePbo.FromString,
45
- _registered_method=True)
46
- self.ProcessData = channel.unary_unary(
47
- '/ToolService/ProcessData',
48
- request_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ProcessStepRequestPbo.SerializeToString,
49
- response_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ProcessStepResponsePbo.FromString,
50
- _registered_method=True)
51
-
52
-
53
- class ToolServiceServicer(object):
54
- """
55
- This is the generic service interface that all tools must implement. We will use hostname routing to route the request to the correct tool.
56
- The other option is for us to use gRPC metadata to route the request to the correct tool. We don't want to expose a bunch of ports and that's
57
- a pain to manage. So we will use hostname routing for now.
58
- """
59
-
60
- def GetToolDetails(self, request, context):
61
- """This allows for a tool to self-describe itself, which allows for the UI to be automatically populated with this information
62
- """
63
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
64
- context.set_details('Method not implemented!')
65
- raise NotImplementedError('Method not implemented!')
66
-
67
- def ProcessData(self, request, context):
68
- """This is the main entry point for a tool to be called
69
- """
70
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
71
- context.set_details('Method not implemented!')
72
- raise NotImplementedError('Method not implemented!')
73
-
74
-
75
- def add_ToolServiceServicer_to_server(servicer, server):
76
- rpc_method_handlers = {
77
- 'GetToolDetails': grpc.unary_unary_rpc_method_handler(
78
- servicer.GetToolDetails,
79
- request_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ToolDetailsRequestPbo.FromString,
80
- response_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ToolDetailsResponsePbo.SerializeToString,
81
- ),
82
- 'ProcessData': grpc.unary_unary_rpc_method_handler(
83
- servicer.ProcessData,
84
- request_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ProcessStepRequestPbo.FromString,
85
- response_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ProcessStepResponsePbo.SerializeToString,
86
- ),
87
- }
88
- generic_handler = grpc.method_handlers_generic_handler(
89
- 'ToolService', rpc_method_handlers)
90
- server.add_generic_rpc_handlers((generic_handler,))
91
- server.add_registered_method_handlers('ToolService', rpc_method_handlers)
92
-
93
-
94
- # This class is part of an EXPERIMENTAL API.
95
- class ToolService(object):
96
- """
97
- This is the generic service interface that all tools must implement. We will use hostname routing to route the request to the correct tool.
98
- The other option is for us to use gRPC metadata to route the request to the correct tool. We don't want to expose a bunch of ports and that's
99
- a pain to manage. So we will use hostname routing for now.
100
- """
101
-
102
- @staticmethod
103
- def GetToolDetails(request,
104
- target,
105
- options=(),
106
- channel_credentials=None,
107
- call_credentials=None,
108
- insecure=False,
109
- compression=None,
110
- wait_for_ready=None,
111
- timeout=None,
112
- metadata=None):
113
- return grpc.experimental.unary_unary(
114
- request,
115
- target,
116
- '/ToolService/GetToolDetails',
117
- sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ToolDetailsRequestPbo.SerializeToString,
118
- sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ToolDetailsResponsePbo.FromString,
119
- options,
120
- channel_credentials,
121
- insecure,
122
- call_credentials,
123
- compression,
124
- wait_for_ready,
125
- timeout,
126
- metadata,
127
- _registered_method=True)
128
-
129
- @staticmethod
130
- def ProcessData(request,
131
- target,
132
- options=(),
133
- channel_credentials=None,
134
- call_credentials=None,
135
- insecure=False,
136
- compression=None,
137
- wait_for_ready=None,
138
- timeout=None,
139
- metadata=None):
140
- return grpc.experimental.unary_unary(
141
- request,
142
- target,
143
- '/ToolService/ProcessData',
144
- sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ProcessStepRequestPbo.SerializeToString,
145
- sapiopycommons_dot_ai_dot_api_dot_plan_dot_tool_dot_proto_dot_tool__pb2.ProcessStepResponsePbo.FromString,
146
- options,
147
- channel_credentials,
148
- insecure,
149
- call_credentials,
150
- compression,
151
- wait_for_ready,
152
- timeout,
153
- metadata,
154
- _registered_method=True)
@@ -1,39 +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/api/session/proto/sapio_conn_info.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/api/session/proto/sapio_conn_info.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/api/session/proto/sapio_conn_info.proto\"\xb6\x01\n\x16SapioConnectionInfoPbo\x12\x16\n\x0ewebservice_url\x18\x01 \x01(\t\x12\x10\n\x08rmi_host\x18\x02 \x03(\t\x12\x10\n\x08rmi_port\x18\x03 \x01(\x05\x12\x10\n\x08\x61pp_guid\x18\x04 \x01(\t\x12\x10\n\x08username\x18\x05 \x01(\t\x12,\n\x0bsecret_type\x18\x06 \x01(\x0e\x32\x17.SapioUserSecretTypePbo\x12\x0e\n\x06secret\x18\x07 \x01(\t*9\n\x16SapioUserSecretTypePbo\x12\x11\n\rSESSION_TOKEN\x10\x00\x12\x0c\n\x08PASSWORD\x10\x01\x42\x1f\n\x1b\x63om.velox.api.session.protoP\x01\x62\x06proto3')
28
-
29
- _globals = globals()
30
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sapiopycommons.ai.api.session.proto.sapio_conn_info_pb2', _globals)
32
- if not _descriptor._USE_C_DESCRIPTORS:
33
- _globals['DESCRIPTOR']._loaded_options = None
34
- _globals['DESCRIPTOR']._serialized_options = b'\n\033com.velox.api.session.protoP\001'
35
- _globals['_SAPIOUSERSECRETTYPEPBO']._serialized_start=246
36
- _globals['_SAPIOUSERSECRETTYPEPBO']._serialized_end=303
37
- _globals['_SAPIOCONNECTIONINFOPBO']._serialized_start=62
38
- _globals['_SAPIOCONNECTIONINFOPBO']._serialized_end=244
39
- # @@protoc_insertion_point(module_scope)
@@ -1,32 +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, Optional as _Optional, Union as _Union
6
-
7
- DESCRIPTOR: _descriptor.FileDescriptor
8
-
9
- class SapioUserSecretTypePbo(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
10
- __slots__ = ()
11
- SESSION_TOKEN: _ClassVar[SapioUserSecretTypePbo]
12
- PASSWORD: _ClassVar[SapioUserSecretTypePbo]
13
- SESSION_TOKEN: SapioUserSecretTypePbo
14
- PASSWORD: SapioUserSecretTypePbo
15
-
16
- class SapioConnectionInfoPbo(_message.Message):
17
- __slots__ = ("webservice_url", "rmi_host", "rmi_port", "app_guid", "username", "secret_type", "secret")
18
- WEBSERVICE_URL_FIELD_NUMBER: _ClassVar[int]
19
- RMI_HOST_FIELD_NUMBER: _ClassVar[int]
20
- RMI_PORT_FIELD_NUMBER: _ClassVar[int]
21
- APP_GUID_FIELD_NUMBER: _ClassVar[int]
22
- USERNAME_FIELD_NUMBER: _ClassVar[int]
23
- SECRET_TYPE_FIELD_NUMBER: _ClassVar[int]
24
- SECRET_FIELD_NUMBER: _ClassVar[int]
25
- webservice_url: str
26
- rmi_host: _containers.RepeatedScalarFieldContainer[str]
27
- rmi_port: int
28
- app_guid: str
29
- username: str
30
- secret_type: SapioUserSecretTypePbo
31
- secret: str
32
- def __init__(self, webservice_url: _Optional[str] = ..., rmi_host: _Optional[_Iterable[str]] = ..., rmi_port: _Optional[int] = ..., app_guid: _Optional[str] = ..., username: _Optional[str] = ..., secret_type: _Optional[_Union[SapioUserSecretTypePbo, str]] = ..., secret: _Optional[str] = ...) -> 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/api/session/proto/sapio_conn_info_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
- )