tracdap-runtime 0.6.1.dev3__py3-none-any.whl → 0.6.3__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.
- tracdap/rt/_exec/actors.py +87 -10
- tracdap/rt/_exec/context.py +25 -1
- tracdap/rt/_exec/dev_mode.py +277 -221
- tracdap/rt/_exec/engine.py +79 -14
- tracdap/rt/_exec/functions.py +37 -8
- tracdap/rt/_exec/graph.py +2 -0
- tracdap/rt/_exec/graph_builder.py +118 -56
- tracdap/rt/_exec/runtime.py +108 -37
- tracdap/rt/_exec/server.py +345 -0
- tracdap/rt/_impl/config_parser.py +219 -49
- tracdap/rt/_impl/data.py +14 -0
- tracdap/rt/_impl/grpc/__init__.py +13 -0
- tracdap/rt/_impl/grpc/codec.py +99 -0
- tracdap/rt/_impl/grpc/tracdap/api/internal/runtime_pb2.py +51 -0
- tracdap/rt/_impl/grpc/tracdap/api/internal/runtime_pb2.pyi +61 -0
- tracdap/rt/_impl/grpc/tracdap/api/internal/runtime_pb2_grpc.py +183 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/common_pb2.py +33 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/common_pb2.pyi +34 -0
- tracdap/rt/{metadata → _impl/grpc/tracdap/metadata}/custom_pb2.py +5 -5
- tracdap/rt/_impl/grpc/tracdap/metadata/custom_pb2.pyi +15 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/data_pb2.py +51 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/data_pb2.pyi +115 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/file_pb2.py +28 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/file_pb2.pyi +22 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/flow_pb2.py +59 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/flow_pb2.pyi +109 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/job_pb2.py +76 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/job_pb2.pyi +177 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/model_pb2.py +63 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/model_pb2.pyi +119 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/object_id_pb2.py +32 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/object_id_pb2.pyi +68 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/object_pb2.py +40 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/object_pb2.pyi +46 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/search_pb2.py +39 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/search_pb2.pyi +83 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/stoarge_pb2.py +50 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/stoarge_pb2.pyi +89 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/tag_pb2.py +34 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/tag_pb2.pyi +26 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/tag_update_pb2.py +30 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/tag_update_pb2.pyi +34 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/type_pb2.py +47 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/type_pb2.pyi +101 -0
- tracdap/rt/_impl/guard_rails.py +26 -6
- tracdap/rt/_impl/models.py +25 -0
- tracdap/rt/_impl/static_api.py +27 -9
- tracdap/rt/_impl/type_system.py +17 -0
- tracdap/rt/_impl/validation.py +10 -0
- tracdap/rt/_plugins/config_local.py +49 -0
- tracdap/rt/_version.py +1 -1
- tracdap/rt/api/hook.py +10 -3
- tracdap/rt/api/model_api.py +22 -0
- tracdap/rt/api/static_api.py +79 -19
- tracdap/rt/config/__init__.py +3 -3
- tracdap/rt/config/common.py +10 -0
- tracdap/rt/config/platform.py +9 -19
- tracdap/rt/config/runtime.py +2 -0
- tracdap/rt/ext/config.py +34 -0
- tracdap/rt/ext/embed.py +1 -3
- tracdap/rt/ext/plugins.py +47 -6
- tracdap/rt/launch/cli.py +7 -5
- tracdap/rt/launch/launch.py +49 -12
- tracdap/rt/metadata/__init__.py +24 -24
- tracdap/rt/metadata/common.py +7 -7
- tracdap/rt/metadata/custom.py +2 -0
- tracdap/rt/metadata/data.py +28 -5
- tracdap/rt/metadata/file.py +2 -0
- tracdap/rt/metadata/flow.py +66 -4
- tracdap/rt/metadata/job.py +56 -16
- tracdap/rt/metadata/model.py +10 -0
- tracdap/rt/metadata/object.py +3 -0
- tracdap/rt/metadata/object_id.py +9 -9
- tracdap/rt/metadata/search.py +35 -13
- tracdap/rt/metadata/stoarge.py +64 -6
- tracdap/rt/metadata/tag_update.py +21 -7
- tracdap/rt/metadata/type.py +28 -13
- {tracdap_runtime-0.6.1.dev3.dist-info → tracdap_runtime-0.6.3.dist-info}/METADATA +22 -19
- tracdap_runtime-0.6.3.dist-info/RECORD +112 -0
- {tracdap_runtime-0.6.1.dev3.dist-info → tracdap_runtime-0.6.3.dist-info}/WHEEL +1 -1
- tracdap/rt/config/common_pb2.py +0 -55
- tracdap/rt/config/job_pb2.py +0 -42
- tracdap/rt/config/platform_pb2.py +0 -71
- tracdap/rt/config/result_pb2.py +0 -37
- tracdap/rt/config/runtime_pb2.py +0 -42
- tracdap/rt/ext/_guard.py +0 -37
- tracdap/rt/metadata/common_pb2.py +0 -33
- tracdap/rt/metadata/data_pb2.py +0 -51
- tracdap/rt/metadata/file_pb2.py +0 -28
- tracdap/rt/metadata/flow_pb2.py +0 -55
- tracdap/rt/metadata/job_pb2.py +0 -76
- tracdap/rt/metadata/model_pb2.py +0 -51
- tracdap/rt/metadata/object_id_pb2.py +0 -32
- tracdap/rt/metadata/object_pb2.py +0 -35
- tracdap/rt/metadata/search_pb2.py +0 -39
- tracdap/rt/metadata/stoarge_pb2.py +0 -50
- tracdap/rt/metadata/tag_pb2.py +0 -34
- tracdap/rt/metadata/tag_update_pb2.py +0 -30
- tracdap/rt/metadata/type_pb2.py +0 -48
- tracdap_runtime-0.6.1.dev3.dist-info/RECORD +0 -96
- {tracdap_runtime-0.6.1.dev3.dist-info → tracdap_runtime-0.6.3.dist-info}/LICENSE +0 -0
- {tracdap_runtime-0.6.1.dev3.dist-info → tracdap_runtime-0.6.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,109 @@
|
|
1
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import type_pb2 as _type_pb2
|
2
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import model_pb2 as _model_pb2
|
3
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import search_pb2 as _search_pb2
|
4
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import tag_update_pb2 as _tag_update_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
|
+
|
11
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
12
|
+
|
13
|
+
class FlowNodeType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
14
|
+
__slots__ = ()
|
15
|
+
NODE_TYPE_NOT_SET: _ClassVar[FlowNodeType]
|
16
|
+
INPUT_NODE: _ClassVar[FlowNodeType]
|
17
|
+
OUTPUT_NODE: _ClassVar[FlowNodeType]
|
18
|
+
MODEL_NODE: _ClassVar[FlowNodeType]
|
19
|
+
PARAMETER_NODE: _ClassVar[FlowNodeType]
|
20
|
+
NODE_TYPE_NOT_SET: FlowNodeType
|
21
|
+
INPUT_NODE: FlowNodeType
|
22
|
+
OUTPUT_NODE: FlowNodeType
|
23
|
+
MODEL_NODE: FlowNodeType
|
24
|
+
PARAMETER_NODE: FlowNodeType
|
25
|
+
|
26
|
+
class FlowNode(_message.Message):
|
27
|
+
__slots__ = ("nodeType", "parameters", "inputs", "outputs", "nodeSearch", "nodeAttrs", "nodeProps", "label")
|
28
|
+
class NodePropsEntry(_message.Message):
|
29
|
+
__slots__ = ("key", "value")
|
30
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
31
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
32
|
+
key: str
|
33
|
+
value: _type_pb2.Value
|
34
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_type_pb2.Value, _Mapping]] = ...) -> None: ...
|
35
|
+
NODETYPE_FIELD_NUMBER: _ClassVar[int]
|
36
|
+
PARAMETERS_FIELD_NUMBER: _ClassVar[int]
|
37
|
+
INPUTS_FIELD_NUMBER: _ClassVar[int]
|
38
|
+
OUTPUTS_FIELD_NUMBER: _ClassVar[int]
|
39
|
+
NODESEARCH_FIELD_NUMBER: _ClassVar[int]
|
40
|
+
NODEATTRS_FIELD_NUMBER: _ClassVar[int]
|
41
|
+
NODEPROPS_FIELD_NUMBER: _ClassVar[int]
|
42
|
+
LABEL_FIELD_NUMBER: _ClassVar[int]
|
43
|
+
nodeType: FlowNodeType
|
44
|
+
parameters: _containers.RepeatedScalarFieldContainer[str]
|
45
|
+
inputs: _containers.RepeatedScalarFieldContainer[str]
|
46
|
+
outputs: _containers.RepeatedScalarFieldContainer[str]
|
47
|
+
nodeSearch: _search_pb2.SearchExpression
|
48
|
+
nodeAttrs: _containers.RepeatedCompositeFieldContainer[_tag_update_pb2.TagUpdate]
|
49
|
+
nodeProps: _containers.MessageMap[str, _type_pb2.Value]
|
50
|
+
label: str
|
51
|
+
def __init__(self, nodeType: _Optional[_Union[FlowNodeType, str]] = ..., parameters: _Optional[_Iterable[str]] = ..., inputs: _Optional[_Iterable[str]] = ..., outputs: _Optional[_Iterable[str]] = ..., nodeSearch: _Optional[_Union[_search_pb2.SearchExpression, _Mapping]] = ..., nodeAttrs: _Optional[_Iterable[_Union[_tag_update_pb2.TagUpdate, _Mapping]]] = ..., nodeProps: _Optional[_Mapping[str, _type_pb2.Value]] = ..., label: _Optional[str] = ...) -> None: ...
|
52
|
+
|
53
|
+
class FlowSocket(_message.Message):
|
54
|
+
__slots__ = ("node", "socket")
|
55
|
+
NODE_FIELD_NUMBER: _ClassVar[int]
|
56
|
+
SOCKET_FIELD_NUMBER: _ClassVar[int]
|
57
|
+
node: str
|
58
|
+
socket: str
|
59
|
+
def __init__(self, node: _Optional[str] = ..., socket: _Optional[str] = ...) -> None: ...
|
60
|
+
|
61
|
+
class FlowEdge(_message.Message):
|
62
|
+
__slots__ = ("source", "target")
|
63
|
+
SOURCE_FIELD_NUMBER: _ClassVar[int]
|
64
|
+
TARGET_FIELD_NUMBER: _ClassVar[int]
|
65
|
+
source: FlowSocket
|
66
|
+
target: FlowSocket
|
67
|
+
def __init__(self, source: _Optional[_Union[FlowSocket, _Mapping]] = ..., target: _Optional[_Union[FlowSocket, _Mapping]] = ...) -> None: ...
|
68
|
+
|
69
|
+
class FlowDefinition(_message.Message):
|
70
|
+
__slots__ = ("nodes", "edges", "parameters", "inputs", "outputs")
|
71
|
+
class NodesEntry(_message.Message):
|
72
|
+
__slots__ = ("key", "value")
|
73
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
74
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
75
|
+
key: str
|
76
|
+
value: FlowNode
|
77
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[FlowNode, _Mapping]] = ...) -> None: ...
|
78
|
+
class ParametersEntry(_message.Message):
|
79
|
+
__slots__ = ("key", "value")
|
80
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
81
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
82
|
+
key: str
|
83
|
+
value: _model_pb2.ModelParameter
|
84
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_model_pb2.ModelParameter, _Mapping]] = ...) -> None: ...
|
85
|
+
class InputsEntry(_message.Message):
|
86
|
+
__slots__ = ("key", "value")
|
87
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
88
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
89
|
+
key: str
|
90
|
+
value: _model_pb2.ModelInputSchema
|
91
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_model_pb2.ModelInputSchema, _Mapping]] = ...) -> None: ...
|
92
|
+
class OutputsEntry(_message.Message):
|
93
|
+
__slots__ = ("key", "value")
|
94
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
95
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
96
|
+
key: str
|
97
|
+
value: _model_pb2.ModelOutputSchema
|
98
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_model_pb2.ModelOutputSchema, _Mapping]] = ...) -> None: ...
|
99
|
+
NODES_FIELD_NUMBER: _ClassVar[int]
|
100
|
+
EDGES_FIELD_NUMBER: _ClassVar[int]
|
101
|
+
PARAMETERS_FIELD_NUMBER: _ClassVar[int]
|
102
|
+
INPUTS_FIELD_NUMBER: _ClassVar[int]
|
103
|
+
OUTPUTS_FIELD_NUMBER: _ClassVar[int]
|
104
|
+
nodes: _containers.MessageMap[str, FlowNode]
|
105
|
+
edges: _containers.RepeatedCompositeFieldContainer[FlowEdge]
|
106
|
+
parameters: _containers.MessageMap[str, _model_pb2.ModelParameter]
|
107
|
+
inputs: _containers.MessageMap[str, _model_pb2.ModelInputSchema]
|
108
|
+
outputs: _containers.MessageMap[str, _model_pb2.ModelOutputSchema]
|
109
|
+
def __init__(self, nodes: _Optional[_Mapping[str, FlowNode]] = ..., edges: _Optional[_Iterable[_Union[FlowEdge, _Mapping]]] = ..., parameters: _Optional[_Mapping[str, _model_pb2.ModelParameter]] = ..., inputs: _Optional[_Mapping[str, _model_pb2.ModelInputSchema]] = ..., outputs: _Optional[_Mapping[str, _model_pb2.ModelOutputSchema]] = ...) -> None: ...
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: tracdap/rt/_impl/grpc/tracdap/metadata/job.proto
|
4
|
+
# Protobuf Python Version: 4.25.3
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import type_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_type__pb2
|
16
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import object_id_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_object__id__pb2
|
17
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import tag_update_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_tag__update__pb2
|
18
|
+
|
19
|
+
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0tracdap/rt/_impl/grpc/tracdap/metadata/job.proto\x12\x10tracdap.metadata\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/type.proto\x1a\x36tracdap/rt/_impl/grpc/tracdap/metadata/object_id.proto\x1a\x37tracdap/rt/_impl/grpc/tracdap/metadata/tag_update.proto\"\xe6\x01\n\rJobDefinition\x12*\n\x07jobType\x18\x01 \x01(\x0e\x32\x19.tracdap.metadata.JobType\x12\x31\n\x08runModel\x18\x02 \x01(\x0b\x32\x1d.tracdap.metadata.RunModelJobH\x00\x12/\n\x07runFlow\x18\x03 \x01(\x0b\x32\x1c.tracdap.metadata.RunFlowJobH\x00\x12\x37\n\x0bimportModel\x18\x04 \x01(\x0b\x32 .tracdap.metadata.ImportModelJobH\x00\x42\x0c\n\njobDetails\"\xac\x05\n\x0bRunModelJob\x12,\n\x05model\x18\x01 \x01(\x0b\x32\x1d.tracdap.metadata.TagSelector\x12\x41\n\nparameters\x18\x02 \x03(\x0b\x32-.tracdap.metadata.RunModelJob.ParametersEntry\x12\x39\n\x06inputs\x18\x03 \x03(\x0b\x32).tracdap.metadata.RunModelJob.InputsEntry\x12;\n\x07outputs\x18\x04 \x03(\x0b\x32*.tracdap.metadata.RunModelJob.OutputsEntry\x12\x45\n\x0cpriorOutputs\x18\x05 \x03(\x0b\x32/.tracdap.metadata.RunModelJob.PriorOutputsEntry\x12\x30\n\x0boutputAttrs\x18\x06 \x03(\x0b\x32\x1b.tracdap.metadata.TagUpdate\x1aJ\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.tracdap.metadata.Value:\x02\x38\x01\x1aL\n\x0bInputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.tracdap.metadata.TagSelector:\x02\x38\x01\x1aM\n\x0cOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.tracdap.metadata.TagSelector:\x02\x38\x01\x1aR\n\x11PriorOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.tracdap.metadata.TagSelector:\x02\x38\x01\"\xae\x06\n\nRunFlowJob\x12+\n\x04\x66low\x18\x01 \x01(\x0b\x32\x1d.tracdap.metadata.TagSelector\x12@\n\nparameters\x18\x02 \x03(\x0b\x32,.tracdap.metadata.RunFlowJob.ParametersEntry\x12\x38\n\x06inputs\x18\x03 \x03(\x0b\x32(.tracdap.metadata.RunFlowJob.InputsEntry\x12:\n\x07outputs\x18\x04 \x03(\x0b\x32).tracdap.metadata.RunFlowJob.OutputsEntry\x12\x44\n\x0cpriorOutputs\x18\x05 \x03(\x0b\x32..tracdap.metadata.RunFlowJob.PriorOutputsEntry\x12\x38\n\x06models\x18\x06 \x03(\x0b\x32(.tracdap.metadata.RunFlowJob.ModelsEntry\x12\x30\n\x0boutputAttrs\x18\x07 \x03(\x0b\x32\x1b.tracdap.metadata.TagUpdate\x1aJ\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.tracdap.metadata.Value:\x02\x38\x01\x1aL\n\x0bInputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.tracdap.metadata.TagSelector:\x02\x38\x01\x1aM\n\x0cOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.tracdap.metadata.TagSelector:\x02\x38\x01\x1aR\n\x11PriorOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.tracdap.metadata.TagSelector:\x02\x38\x01\x1aL\n\x0bModelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.tracdap.metadata.TagSelector:\x02\x38\x01\"\xd7\x01\n\x0eImportModelJob\x12\x10\n\x08language\x18\x01 \x01(\t\x12\x12\n\nrepository\x18\x02 \x01(\t\x12\x19\n\x0cpackageGroup\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07package\x18\x08 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\x12\x12\n\nentryPoint\x18\x04 \x01(\t\x12\x0c\n\x04path\x18\x03 \x01(\t\x12/\n\nmodelAttrs\x18\x06 \x03(\x0b\x32\x1b.tracdap.metadata.TagUpdateB\x0f\n\r_packageGroup*_\n\x07JobType\x12\x14\n\x10JOB_TYPE_NOT_SET\x10\x00\x12\r\n\tRUN_MODEL\x10\x01\x12\x0c\n\x08RUN_FLOW\x10\x02\x12\x10\n\x0cIMPORT_MODEL\x10\x03\x12\x0f\n\x0bIMPORT_DATA\x10\x04*\xb8\x01\n\rJobStatusCode\x12\x1b\n\x17JOB_STATUS_CODE_NOT_SET\x10\x00\x12\r\n\tPREPARING\x10\x01\x12\r\n\tVALIDATED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x12\n\n\x06QUEUED\x10\x04\x12\r\n\tSUBMITTED\x10\x05\x12\x0b\n\x07RUNNING\x10\x06\x12\r\n\tFINISHING\x10\x07\x12\r\n\tSUCCEEDED\x10\x08\x12\n\n\x06\x46\x41ILED\x10\t\x12\r\n\tCANCELLED\x10\nB\x1e\n\x1aorg.finos.tracdap.metadataP\x01\x62\x06proto3')
|
21
|
+
|
22
|
+
_globals = globals()
|
23
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
24
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tracdap.rt._impl.grpc.tracdap.metadata.job_pb2', _globals)
|
25
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
26
|
+
_globals['DESCRIPTOR']._options = None
|
27
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\032org.finos.tracdap.metadataP\001'
|
28
|
+
_globals['_RUNMODELJOB_PARAMETERSENTRY']._options = None
|
29
|
+
_globals['_RUNMODELJOB_PARAMETERSENTRY']._serialized_options = b'8\001'
|
30
|
+
_globals['_RUNMODELJOB_INPUTSENTRY']._options = None
|
31
|
+
_globals['_RUNMODELJOB_INPUTSENTRY']._serialized_options = b'8\001'
|
32
|
+
_globals['_RUNMODELJOB_OUTPUTSENTRY']._options = None
|
33
|
+
_globals['_RUNMODELJOB_OUTPUTSENTRY']._serialized_options = b'8\001'
|
34
|
+
_globals['_RUNMODELJOB_PRIOROUTPUTSENTRY']._options = None
|
35
|
+
_globals['_RUNMODELJOB_PRIOROUTPUTSENTRY']._serialized_options = b'8\001'
|
36
|
+
_globals['_RUNFLOWJOB_PARAMETERSENTRY']._options = None
|
37
|
+
_globals['_RUNFLOWJOB_PARAMETERSENTRY']._serialized_options = b'8\001'
|
38
|
+
_globals['_RUNFLOWJOB_INPUTSENTRY']._options = None
|
39
|
+
_globals['_RUNFLOWJOB_INPUTSENTRY']._serialized_options = b'8\001'
|
40
|
+
_globals['_RUNFLOWJOB_OUTPUTSENTRY']._options = None
|
41
|
+
_globals['_RUNFLOWJOB_OUTPUTSENTRY']._serialized_options = b'8\001'
|
42
|
+
_globals['_RUNFLOWJOB_PRIOROUTPUTSENTRY']._options = None
|
43
|
+
_globals['_RUNFLOWJOB_PRIOROUTPUTSENTRY']._serialized_options = b'8\001'
|
44
|
+
_globals['_RUNFLOWJOB_MODELSENTRY']._options = None
|
45
|
+
_globals['_RUNFLOWJOB_MODELSENTRY']._serialized_options = b'8\001'
|
46
|
+
_globals['_JOBTYPE']._serialized_start=2189
|
47
|
+
_globals['_JOBTYPE']._serialized_end=2284
|
48
|
+
_globals['_JOBSTATUSCODE']._serialized_start=2287
|
49
|
+
_globals['_JOBSTATUSCODE']._serialized_end=2471
|
50
|
+
_globals['_JOBDEFINITION']._serialized_start=235
|
51
|
+
_globals['_JOBDEFINITION']._serialized_end=465
|
52
|
+
_globals['_RUNMODELJOB']._serialized_start=468
|
53
|
+
_globals['_RUNMODELJOB']._serialized_end=1152
|
54
|
+
_globals['_RUNMODELJOB_PARAMETERSENTRY']._serialized_start=837
|
55
|
+
_globals['_RUNMODELJOB_PARAMETERSENTRY']._serialized_end=911
|
56
|
+
_globals['_RUNMODELJOB_INPUTSENTRY']._serialized_start=913
|
57
|
+
_globals['_RUNMODELJOB_INPUTSENTRY']._serialized_end=989
|
58
|
+
_globals['_RUNMODELJOB_OUTPUTSENTRY']._serialized_start=991
|
59
|
+
_globals['_RUNMODELJOB_OUTPUTSENTRY']._serialized_end=1068
|
60
|
+
_globals['_RUNMODELJOB_PRIOROUTPUTSENTRY']._serialized_start=1070
|
61
|
+
_globals['_RUNMODELJOB_PRIOROUTPUTSENTRY']._serialized_end=1152
|
62
|
+
_globals['_RUNFLOWJOB']._serialized_start=1155
|
63
|
+
_globals['_RUNFLOWJOB']._serialized_end=1969
|
64
|
+
_globals['_RUNFLOWJOB_PARAMETERSENTRY']._serialized_start=837
|
65
|
+
_globals['_RUNFLOWJOB_PARAMETERSENTRY']._serialized_end=911
|
66
|
+
_globals['_RUNFLOWJOB_INPUTSENTRY']._serialized_start=913
|
67
|
+
_globals['_RUNFLOWJOB_INPUTSENTRY']._serialized_end=989
|
68
|
+
_globals['_RUNFLOWJOB_OUTPUTSENTRY']._serialized_start=991
|
69
|
+
_globals['_RUNFLOWJOB_OUTPUTSENTRY']._serialized_end=1068
|
70
|
+
_globals['_RUNFLOWJOB_PRIOROUTPUTSENTRY']._serialized_start=1070
|
71
|
+
_globals['_RUNFLOWJOB_PRIOROUTPUTSENTRY']._serialized_end=1152
|
72
|
+
_globals['_RUNFLOWJOB_MODELSENTRY']._serialized_start=1893
|
73
|
+
_globals['_RUNFLOWJOB_MODELSENTRY']._serialized_end=1969
|
74
|
+
_globals['_IMPORTMODELJOB']._serialized_start=1972
|
75
|
+
_globals['_IMPORTMODELJOB']._serialized_end=2187
|
76
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,177 @@
|
|
1
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import type_pb2 as _type_pb2
|
2
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import object_id_pb2 as _object_id_pb2
|
3
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import tag_update_pb2 as _tag_update_pb2
|
4
|
+
from google.protobuf.internal import containers as _containers
|
5
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import message as _message
|
8
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
9
|
+
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
11
|
+
|
12
|
+
class JobType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
13
|
+
__slots__ = ()
|
14
|
+
JOB_TYPE_NOT_SET: _ClassVar[JobType]
|
15
|
+
RUN_MODEL: _ClassVar[JobType]
|
16
|
+
RUN_FLOW: _ClassVar[JobType]
|
17
|
+
IMPORT_MODEL: _ClassVar[JobType]
|
18
|
+
IMPORT_DATA: _ClassVar[JobType]
|
19
|
+
|
20
|
+
class JobStatusCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
21
|
+
__slots__ = ()
|
22
|
+
JOB_STATUS_CODE_NOT_SET: _ClassVar[JobStatusCode]
|
23
|
+
PREPARING: _ClassVar[JobStatusCode]
|
24
|
+
VALIDATED: _ClassVar[JobStatusCode]
|
25
|
+
PENDING: _ClassVar[JobStatusCode]
|
26
|
+
QUEUED: _ClassVar[JobStatusCode]
|
27
|
+
SUBMITTED: _ClassVar[JobStatusCode]
|
28
|
+
RUNNING: _ClassVar[JobStatusCode]
|
29
|
+
FINISHING: _ClassVar[JobStatusCode]
|
30
|
+
SUCCEEDED: _ClassVar[JobStatusCode]
|
31
|
+
FAILED: _ClassVar[JobStatusCode]
|
32
|
+
CANCELLED: _ClassVar[JobStatusCode]
|
33
|
+
JOB_TYPE_NOT_SET: JobType
|
34
|
+
RUN_MODEL: JobType
|
35
|
+
RUN_FLOW: JobType
|
36
|
+
IMPORT_MODEL: JobType
|
37
|
+
IMPORT_DATA: JobType
|
38
|
+
JOB_STATUS_CODE_NOT_SET: JobStatusCode
|
39
|
+
PREPARING: JobStatusCode
|
40
|
+
VALIDATED: JobStatusCode
|
41
|
+
PENDING: JobStatusCode
|
42
|
+
QUEUED: JobStatusCode
|
43
|
+
SUBMITTED: JobStatusCode
|
44
|
+
RUNNING: JobStatusCode
|
45
|
+
FINISHING: JobStatusCode
|
46
|
+
SUCCEEDED: JobStatusCode
|
47
|
+
FAILED: JobStatusCode
|
48
|
+
CANCELLED: JobStatusCode
|
49
|
+
|
50
|
+
class JobDefinition(_message.Message):
|
51
|
+
__slots__ = ("jobType", "runModel", "runFlow", "importModel")
|
52
|
+
JOBTYPE_FIELD_NUMBER: _ClassVar[int]
|
53
|
+
RUNMODEL_FIELD_NUMBER: _ClassVar[int]
|
54
|
+
RUNFLOW_FIELD_NUMBER: _ClassVar[int]
|
55
|
+
IMPORTMODEL_FIELD_NUMBER: _ClassVar[int]
|
56
|
+
jobType: JobType
|
57
|
+
runModel: RunModelJob
|
58
|
+
runFlow: RunFlowJob
|
59
|
+
importModel: ImportModelJob
|
60
|
+
def __init__(self, jobType: _Optional[_Union[JobType, str]] = ..., runModel: _Optional[_Union[RunModelJob, _Mapping]] = ..., runFlow: _Optional[_Union[RunFlowJob, _Mapping]] = ..., importModel: _Optional[_Union[ImportModelJob, _Mapping]] = ...) -> None: ...
|
61
|
+
|
62
|
+
class RunModelJob(_message.Message):
|
63
|
+
__slots__ = ("model", "parameters", "inputs", "outputs", "priorOutputs", "outputAttrs")
|
64
|
+
class ParametersEntry(_message.Message):
|
65
|
+
__slots__ = ("key", "value")
|
66
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
67
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
68
|
+
key: str
|
69
|
+
value: _type_pb2.Value
|
70
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_type_pb2.Value, _Mapping]] = ...) -> None: ...
|
71
|
+
class InputsEntry(_message.Message):
|
72
|
+
__slots__ = ("key", "value")
|
73
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
74
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
75
|
+
key: str
|
76
|
+
value: _object_id_pb2.TagSelector
|
77
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_id_pb2.TagSelector, _Mapping]] = ...) -> None: ...
|
78
|
+
class OutputsEntry(_message.Message):
|
79
|
+
__slots__ = ("key", "value")
|
80
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
81
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
82
|
+
key: str
|
83
|
+
value: _object_id_pb2.TagSelector
|
84
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_id_pb2.TagSelector, _Mapping]] = ...) -> None: ...
|
85
|
+
class PriorOutputsEntry(_message.Message):
|
86
|
+
__slots__ = ("key", "value")
|
87
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
88
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
89
|
+
key: str
|
90
|
+
value: _object_id_pb2.TagSelector
|
91
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_id_pb2.TagSelector, _Mapping]] = ...) -> None: ...
|
92
|
+
MODEL_FIELD_NUMBER: _ClassVar[int]
|
93
|
+
PARAMETERS_FIELD_NUMBER: _ClassVar[int]
|
94
|
+
INPUTS_FIELD_NUMBER: _ClassVar[int]
|
95
|
+
OUTPUTS_FIELD_NUMBER: _ClassVar[int]
|
96
|
+
PRIOROUTPUTS_FIELD_NUMBER: _ClassVar[int]
|
97
|
+
OUTPUTATTRS_FIELD_NUMBER: _ClassVar[int]
|
98
|
+
model: _object_id_pb2.TagSelector
|
99
|
+
parameters: _containers.MessageMap[str, _type_pb2.Value]
|
100
|
+
inputs: _containers.MessageMap[str, _object_id_pb2.TagSelector]
|
101
|
+
outputs: _containers.MessageMap[str, _object_id_pb2.TagSelector]
|
102
|
+
priorOutputs: _containers.MessageMap[str, _object_id_pb2.TagSelector]
|
103
|
+
outputAttrs: _containers.RepeatedCompositeFieldContainer[_tag_update_pb2.TagUpdate]
|
104
|
+
def __init__(self, model: _Optional[_Union[_object_id_pb2.TagSelector, _Mapping]] = ..., parameters: _Optional[_Mapping[str, _type_pb2.Value]] = ..., inputs: _Optional[_Mapping[str, _object_id_pb2.TagSelector]] = ..., outputs: _Optional[_Mapping[str, _object_id_pb2.TagSelector]] = ..., priorOutputs: _Optional[_Mapping[str, _object_id_pb2.TagSelector]] = ..., outputAttrs: _Optional[_Iterable[_Union[_tag_update_pb2.TagUpdate, _Mapping]]] = ...) -> None: ...
|
105
|
+
|
106
|
+
class RunFlowJob(_message.Message):
|
107
|
+
__slots__ = ("flow", "parameters", "inputs", "outputs", "priorOutputs", "models", "outputAttrs")
|
108
|
+
class ParametersEntry(_message.Message):
|
109
|
+
__slots__ = ("key", "value")
|
110
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
111
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
112
|
+
key: str
|
113
|
+
value: _type_pb2.Value
|
114
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_type_pb2.Value, _Mapping]] = ...) -> None: ...
|
115
|
+
class InputsEntry(_message.Message):
|
116
|
+
__slots__ = ("key", "value")
|
117
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
118
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
119
|
+
key: str
|
120
|
+
value: _object_id_pb2.TagSelector
|
121
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_id_pb2.TagSelector, _Mapping]] = ...) -> None: ...
|
122
|
+
class OutputsEntry(_message.Message):
|
123
|
+
__slots__ = ("key", "value")
|
124
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
125
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
126
|
+
key: str
|
127
|
+
value: _object_id_pb2.TagSelector
|
128
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_id_pb2.TagSelector, _Mapping]] = ...) -> None: ...
|
129
|
+
class PriorOutputsEntry(_message.Message):
|
130
|
+
__slots__ = ("key", "value")
|
131
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
132
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
133
|
+
key: str
|
134
|
+
value: _object_id_pb2.TagSelector
|
135
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_id_pb2.TagSelector, _Mapping]] = ...) -> None: ...
|
136
|
+
class ModelsEntry(_message.Message):
|
137
|
+
__slots__ = ("key", "value")
|
138
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
139
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
140
|
+
key: str
|
141
|
+
value: _object_id_pb2.TagSelector
|
142
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_id_pb2.TagSelector, _Mapping]] = ...) -> None: ...
|
143
|
+
FLOW_FIELD_NUMBER: _ClassVar[int]
|
144
|
+
PARAMETERS_FIELD_NUMBER: _ClassVar[int]
|
145
|
+
INPUTS_FIELD_NUMBER: _ClassVar[int]
|
146
|
+
OUTPUTS_FIELD_NUMBER: _ClassVar[int]
|
147
|
+
PRIOROUTPUTS_FIELD_NUMBER: _ClassVar[int]
|
148
|
+
MODELS_FIELD_NUMBER: _ClassVar[int]
|
149
|
+
OUTPUTATTRS_FIELD_NUMBER: _ClassVar[int]
|
150
|
+
flow: _object_id_pb2.TagSelector
|
151
|
+
parameters: _containers.MessageMap[str, _type_pb2.Value]
|
152
|
+
inputs: _containers.MessageMap[str, _object_id_pb2.TagSelector]
|
153
|
+
outputs: _containers.MessageMap[str, _object_id_pb2.TagSelector]
|
154
|
+
priorOutputs: _containers.MessageMap[str, _object_id_pb2.TagSelector]
|
155
|
+
models: _containers.MessageMap[str, _object_id_pb2.TagSelector]
|
156
|
+
outputAttrs: _containers.RepeatedCompositeFieldContainer[_tag_update_pb2.TagUpdate]
|
157
|
+
def __init__(self, flow: _Optional[_Union[_object_id_pb2.TagSelector, _Mapping]] = ..., parameters: _Optional[_Mapping[str, _type_pb2.Value]] = ..., inputs: _Optional[_Mapping[str, _object_id_pb2.TagSelector]] = ..., outputs: _Optional[_Mapping[str, _object_id_pb2.TagSelector]] = ..., priorOutputs: _Optional[_Mapping[str, _object_id_pb2.TagSelector]] = ..., models: _Optional[_Mapping[str, _object_id_pb2.TagSelector]] = ..., outputAttrs: _Optional[_Iterable[_Union[_tag_update_pb2.TagUpdate, _Mapping]]] = ...) -> None: ...
|
158
|
+
|
159
|
+
class ImportModelJob(_message.Message):
|
160
|
+
__slots__ = ("language", "repository", "packageGroup", "package", "version", "entryPoint", "path", "modelAttrs")
|
161
|
+
LANGUAGE_FIELD_NUMBER: _ClassVar[int]
|
162
|
+
REPOSITORY_FIELD_NUMBER: _ClassVar[int]
|
163
|
+
PACKAGEGROUP_FIELD_NUMBER: _ClassVar[int]
|
164
|
+
PACKAGE_FIELD_NUMBER: _ClassVar[int]
|
165
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
166
|
+
ENTRYPOINT_FIELD_NUMBER: _ClassVar[int]
|
167
|
+
PATH_FIELD_NUMBER: _ClassVar[int]
|
168
|
+
MODELATTRS_FIELD_NUMBER: _ClassVar[int]
|
169
|
+
language: str
|
170
|
+
repository: str
|
171
|
+
packageGroup: str
|
172
|
+
package: str
|
173
|
+
version: str
|
174
|
+
entryPoint: str
|
175
|
+
path: str
|
176
|
+
modelAttrs: _containers.RepeatedCompositeFieldContainer[_tag_update_pb2.TagUpdate]
|
177
|
+
def __init__(self, language: _Optional[str] = ..., repository: _Optional[str] = ..., packageGroup: _Optional[str] = ..., package: _Optional[str] = ..., version: _Optional[str] = ..., entryPoint: _Optional[str] = ..., path: _Optional[str] = ..., modelAttrs: _Optional[_Iterable[_Union[_tag_update_pb2.TagUpdate, _Mapping]]] = ...) -> None: ...
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: tracdap/rt/_impl/grpc/tracdap/metadata/model.proto
|
4
|
+
# Protobuf Python Version: 4.25.3
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import type_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_type__pb2
|
16
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import data_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_data__pb2
|
17
|
+
|
18
|
+
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2tracdap/rt/_impl/grpc/tracdap/metadata/model.proto\x12\x10tracdap.metadata\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/type.proto\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/data.proto\"\xab\x02\n\x0eModelParameter\x12\x33\n\tparamType\x18\x01 \x01(\x0b\x32 .tracdap.metadata.TypeDescriptor\x12\r\n\x05label\x18\x02 \x01(\t\x12\x32\n\x0c\x64\x65\x66\x61ultValue\x18\x03 \x01(\x0b\x32\x17.tracdap.metadata.ValueH\x00\x88\x01\x01\x12\x44\n\nparamProps\x18\x04 \x03(\x0b\x32\x30.tracdap.metadata.ModelParameter.ParamPropsEntry\x1aJ\n\x0fParamPropsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.tracdap.metadata.Value:\x02\x38\x01\x42\x0f\n\r_defaultValue\"\x8a\x02\n\x10ModelInputSchema\x12\x32\n\x06schema\x18\x01 \x01(\x0b\x32\".tracdap.metadata.SchemaDefinition\x12\x12\n\x05label\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x08optional\x18\x03 \x01(\x08\x12\x46\n\ninputProps\x18\x04 \x03(\x0b\x32\x32.tracdap.metadata.ModelInputSchema.InputPropsEntry\x1aJ\n\x0fInputPropsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.tracdap.metadata.Value:\x02\x38\x01\x42\x08\n\x06_label\"\x8f\x02\n\x11ModelOutputSchema\x12\x32\n\x06schema\x18\x01 \x01(\x0b\x32\".tracdap.metadata.SchemaDefinition\x12\x12\n\x05label\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x08optional\x18\x03 \x01(\x08\x12I\n\x0boutputProps\x18\x04 \x03(\x0b\x32\x34.tracdap.metadata.ModelOutputSchema.OutputPropsEntry\x1aK\n\x10OutputPropsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.tracdap.metadata.Value:\x02\x38\x01\x42\x08\n\x06_label\"\x9e\x06\n\x0fModelDefinition\x12\x10\n\x08language\x18\x01 \x01(\t\x12\x12\n\nrepository\x18\x02 \x01(\t\x12\x19\n\x0cpackageGroup\x18\n \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07package\x18\x0b \x01(\t\x12\x0f\n\x07version\x18\x06 \x01(\t\x12\x12\n\nentryPoint\x18\x05 \x01(\t\x12\x11\n\x04path\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x45\n\nparameters\x18\x07 \x03(\x0b\x32\x31.tracdap.metadata.ModelDefinition.ParametersEntry\x12=\n\x06inputs\x18\x08 \x03(\x0b\x32-.tracdap.metadata.ModelDefinition.InputsEntry\x12?\n\x07outputs\x18\t \x03(\x0b\x32..tracdap.metadata.ModelDefinition.OutputsEntry\x12Q\n\x10staticAttributes\x18\x0c \x03(\x0b\x32\x37.tracdap.metadata.ModelDefinition.StaticAttributesEntry\x1aS\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .tracdap.metadata.ModelParameter:\x02\x38\x01\x1aQ\n\x0bInputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\".tracdap.metadata.ModelInputSchema:\x02\x38\x01\x1aS\n\x0cOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32#.tracdap.metadata.ModelOutputSchema:\x02\x38\x01\x1aP\n\x15StaticAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.tracdap.metadata.Value:\x02\x38\x01\x42\x0f\n\r_packageGroupB\x07\n\x05_pathB\x1e\n\x1aorg.finos.tracdap.metadataP\x01\x62\x06proto3')
|
20
|
+
|
21
|
+
_globals = globals()
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tracdap.rt._impl.grpc.tracdap.metadata.model_pb2', _globals)
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
25
|
+
_globals['DESCRIPTOR']._options = None
|
26
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\032org.finos.tracdap.metadataP\001'
|
27
|
+
_globals['_MODELPARAMETER_PARAMPROPSENTRY']._options = None
|
28
|
+
_globals['_MODELPARAMETER_PARAMPROPSENTRY']._serialized_options = b'8\001'
|
29
|
+
_globals['_MODELINPUTSCHEMA_INPUTPROPSENTRY']._options = None
|
30
|
+
_globals['_MODELINPUTSCHEMA_INPUTPROPSENTRY']._serialized_options = b'8\001'
|
31
|
+
_globals['_MODELOUTPUTSCHEMA_OUTPUTPROPSENTRY']._options = None
|
32
|
+
_globals['_MODELOUTPUTSCHEMA_OUTPUTPROPSENTRY']._serialized_options = b'8\001'
|
33
|
+
_globals['_MODELDEFINITION_PARAMETERSENTRY']._options = None
|
34
|
+
_globals['_MODELDEFINITION_PARAMETERSENTRY']._serialized_options = b'8\001'
|
35
|
+
_globals['_MODELDEFINITION_INPUTSENTRY']._options = None
|
36
|
+
_globals['_MODELDEFINITION_INPUTSENTRY']._serialized_options = b'8\001'
|
37
|
+
_globals['_MODELDEFINITION_OUTPUTSENTRY']._options = None
|
38
|
+
_globals['_MODELDEFINITION_OUTPUTSENTRY']._serialized_options = b'8\001'
|
39
|
+
_globals['_MODELDEFINITION_STATICATTRIBUTESENTRY']._options = None
|
40
|
+
_globals['_MODELDEFINITION_STATICATTRIBUTESENTRY']._serialized_options = b'8\001'
|
41
|
+
_globals['_MODELPARAMETER']._serialized_start=175
|
42
|
+
_globals['_MODELPARAMETER']._serialized_end=474
|
43
|
+
_globals['_MODELPARAMETER_PARAMPROPSENTRY']._serialized_start=383
|
44
|
+
_globals['_MODELPARAMETER_PARAMPROPSENTRY']._serialized_end=457
|
45
|
+
_globals['_MODELINPUTSCHEMA']._serialized_start=477
|
46
|
+
_globals['_MODELINPUTSCHEMA']._serialized_end=743
|
47
|
+
_globals['_MODELINPUTSCHEMA_INPUTPROPSENTRY']._serialized_start=659
|
48
|
+
_globals['_MODELINPUTSCHEMA_INPUTPROPSENTRY']._serialized_end=733
|
49
|
+
_globals['_MODELOUTPUTSCHEMA']._serialized_start=746
|
50
|
+
_globals['_MODELOUTPUTSCHEMA']._serialized_end=1017
|
51
|
+
_globals['_MODELOUTPUTSCHEMA_OUTPUTPROPSENTRY']._serialized_start=932
|
52
|
+
_globals['_MODELOUTPUTSCHEMA_OUTPUTPROPSENTRY']._serialized_end=1007
|
53
|
+
_globals['_MODELDEFINITION']._serialized_start=1020
|
54
|
+
_globals['_MODELDEFINITION']._serialized_end=1818
|
55
|
+
_globals['_MODELDEFINITION_PARAMETERSENTRY']._serialized_start=1459
|
56
|
+
_globals['_MODELDEFINITION_PARAMETERSENTRY']._serialized_end=1542
|
57
|
+
_globals['_MODELDEFINITION_INPUTSENTRY']._serialized_start=1544
|
58
|
+
_globals['_MODELDEFINITION_INPUTSENTRY']._serialized_end=1625
|
59
|
+
_globals['_MODELDEFINITION_OUTPUTSENTRY']._serialized_start=1627
|
60
|
+
_globals['_MODELDEFINITION_OUTPUTSENTRY']._serialized_end=1710
|
61
|
+
_globals['_MODELDEFINITION_STATICATTRIBUTESENTRY']._serialized_start=1712
|
62
|
+
_globals['_MODELDEFINITION_STATICATTRIBUTESENTRY']._serialized_end=1792
|
63
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,119 @@
|
|
1
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import type_pb2 as _type_pb2
|
2
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import data_pb2 as _data_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, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
7
|
+
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
9
|
+
|
10
|
+
class ModelParameter(_message.Message):
|
11
|
+
__slots__ = ("paramType", "label", "defaultValue", "paramProps")
|
12
|
+
class ParamPropsEntry(_message.Message):
|
13
|
+
__slots__ = ("key", "value")
|
14
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
15
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
16
|
+
key: str
|
17
|
+
value: _type_pb2.Value
|
18
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_type_pb2.Value, _Mapping]] = ...) -> None: ...
|
19
|
+
PARAMTYPE_FIELD_NUMBER: _ClassVar[int]
|
20
|
+
LABEL_FIELD_NUMBER: _ClassVar[int]
|
21
|
+
DEFAULTVALUE_FIELD_NUMBER: _ClassVar[int]
|
22
|
+
PARAMPROPS_FIELD_NUMBER: _ClassVar[int]
|
23
|
+
paramType: _type_pb2.TypeDescriptor
|
24
|
+
label: str
|
25
|
+
defaultValue: _type_pb2.Value
|
26
|
+
paramProps: _containers.MessageMap[str, _type_pb2.Value]
|
27
|
+
def __init__(self, paramType: _Optional[_Union[_type_pb2.TypeDescriptor, _Mapping]] = ..., label: _Optional[str] = ..., defaultValue: _Optional[_Union[_type_pb2.Value, _Mapping]] = ..., paramProps: _Optional[_Mapping[str, _type_pb2.Value]] = ...) -> None: ...
|
28
|
+
|
29
|
+
class ModelInputSchema(_message.Message):
|
30
|
+
__slots__ = ("schema", "label", "optional", "inputProps")
|
31
|
+
class InputPropsEntry(_message.Message):
|
32
|
+
__slots__ = ("key", "value")
|
33
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
34
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
35
|
+
key: str
|
36
|
+
value: _type_pb2.Value
|
37
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_type_pb2.Value, _Mapping]] = ...) -> None: ...
|
38
|
+
SCHEMA_FIELD_NUMBER: _ClassVar[int]
|
39
|
+
LABEL_FIELD_NUMBER: _ClassVar[int]
|
40
|
+
OPTIONAL_FIELD_NUMBER: _ClassVar[int]
|
41
|
+
INPUTPROPS_FIELD_NUMBER: _ClassVar[int]
|
42
|
+
schema: _data_pb2.SchemaDefinition
|
43
|
+
label: str
|
44
|
+
optional: bool
|
45
|
+
inputProps: _containers.MessageMap[str, _type_pb2.Value]
|
46
|
+
def __init__(self, schema: _Optional[_Union[_data_pb2.SchemaDefinition, _Mapping]] = ..., label: _Optional[str] = ..., optional: bool = ..., inputProps: _Optional[_Mapping[str, _type_pb2.Value]] = ...) -> None: ...
|
47
|
+
|
48
|
+
class ModelOutputSchema(_message.Message):
|
49
|
+
__slots__ = ("schema", "label", "optional", "outputProps")
|
50
|
+
class OutputPropsEntry(_message.Message):
|
51
|
+
__slots__ = ("key", "value")
|
52
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
53
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
54
|
+
key: str
|
55
|
+
value: _type_pb2.Value
|
56
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_type_pb2.Value, _Mapping]] = ...) -> None: ...
|
57
|
+
SCHEMA_FIELD_NUMBER: _ClassVar[int]
|
58
|
+
LABEL_FIELD_NUMBER: _ClassVar[int]
|
59
|
+
OPTIONAL_FIELD_NUMBER: _ClassVar[int]
|
60
|
+
OUTPUTPROPS_FIELD_NUMBER: _ClassVar[int]
|
61
|
+
schema: _data_pb2.SchemaDefinition
|
62
|
+
label: str
|
63
|
+
optional: bool
|
64
|
+
outputProps: _containers.MessageMap[str, _type_pb2.Value]
|
65
|
+
def __init__(self, schema: _Optional[_Union[_data_pb2.SchemaDefinition, _Mapping]] = ..., label: _Optional[str] = ..., optional: bool = ..., outputProps: _Optional[_Mapping[str, _type_pb2.Value]] = ...) -> None: ...
|
66
|
+
|
67
|
+
class ModelDefinition(_message.Message):
|
68
|
+
__slots__ = ("language", "repository", "packageGroup", "package", "version", "entryPoint", "path", "parameters", "inputs", "outputs", "staticAttributes")
|
69
|
+
class ParametersEntry(_message.Message):
|
70
|
+
__slots__ = ("key", "value")
|
71
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
72
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
73
|
+
key: str
|
74
|
+
value: ModelParameter
|
75
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ModelParameter, _Mapping]] = ...) -> None: ...
|
76
|
+
class InputsEntry(_message.Message):
|
77
|
+
__slots__ = ("key", "value")
|
78
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
79
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
80
|
+
key: str
|
81
|
+
value: ModelInputSchema
|
82
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ModelInputSchema, _Mapping]] = ...) -> None: ...
|
83
|
+
class OutputsEntry(_message.Message):
|
84
|
+
__slots__ = ("key", "value")
|
85
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
86
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
87
|
+
key: str
|
88
|
+
value: ModelOutputSchema
|
89
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ModelOutputSchema, _Mapping]] = ...) -> None: ...
|
90
|
+
class StaticAttributesEntry(_message.Message):
|
91
|
+
__slots__ = ("key", "value")
|
92
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
93
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
94
|
+
key: str
|
95
|
+
value: _type_pb2.Value
|
96
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_type_pb2.Value, _Mapping]] = ...) -> None: ...
|
97
|
+
LANGUAGE_FIELD_NUMBER: _ClassVar[int]
|
98
|
+
REPOSITORY_FIELD_NUMBER: _ClassVar[int]
|
99
|
+
PACKAGEGROUP_FIELD_NUMBER: _ClassVar[int]
|
100
|
+
PACKAGE_FIELD_NUMBER: _ClassVar[int]
|
101
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
102
|
+
ENTRYPOINT_FIELD_NUMBER: _ClassVar[int]
|
103
|
+
PATH_FIELD_NUMBER: _ClassVar[int]
|
104
|
+
PARAMETERS_FIELD_NUMBER: _ClassVar[int]
|
105
|
+
INPUTS_FIELD_NUMBER: _ClassVar[int]
|
106
|
+
OUTPUTS_FIELD_NUMBER: _ClassVar[int]
|
107
|
+
STATICATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
|
108
|
+
language: str
|
109
|
+
repository: str
|
110
|
+
packageGroup: str
|
111
|
+
package: str
|
112
|
+
version: str
|
113
|
+
entryPoint: str
|
114
|
+
path: str
|
115
|
+
parameters: _containers.MessageMap[str, ModelParameter]
|
116
|
+
inputs: _containers.MessageMap[str, ModelInputSchema]
|
117
|
+
outputs: _containers.MessageMap[str, ModelOutputSchema]
|
118
|
+
staticAttributes: _containers.MessageMap[str, _type_pb2.Value]
|
119
|
+
def __init__(self, language: _Optional[str] = ..., repository: _Optional[str] = ..., packageGroup: _Optional[str] = ..., package: _Optional[str] = ..., version: _Optional[str] = ..., entryPoint: _Optional[str] = ..., path: _Optional[str] = ..., parameters: _Optional[_Mapping[str, ModelParameter]] = ..., inputs: _Optional[_Mapping[str, ModelInputSchema]] = ..., outputs: _Optional[_Mapping[str, ModelOutputSchema]] = ..., staticAttributes: _Optional[_Mapping[str, _type_pb2.Value]] = ...) -> None: ...
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: tracdap/rt/_impl/grpc/tracdap/metadata/object_id.proto
|
4
|
+
# Protobuf Python Version: 4.25.3
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import type_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_type__pb2
|
16
|
+
|
17
|
+
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6tracdap/rt/_impl/grpc/tracdap/metadata/object_id.proto\x12\x10tracdap.metadata\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/type.proto\"\x98\x02\n\tTagHeader\x12\x30\n\nobjectType\x18\x01 \x01(\x0e\x32\x1c.tracdap.metadata.ObjectType\x12\x10\n\x08objectId\x18\x02 \x01(\t\x12\x15\n\robjectVersion\x18\x03 \x01(\x05\x12\x38\n\x0fobjectTimestamp\x18\x04 \x01(\x0b\x32\x1f.tracdap.metadata.DatetimeValue\x12\x12\n\ntagVersion\x18\x05 \x01(\x05\x12\x35\n\x0ctagTimestamp\x18\x06 \x01(\x0b\x32\x1f.tracdap.metadata.DatetimeValue\x12\x16\n\x0eisLatestObject\x18\x07 \x01(\x08\x12\x13\n\x0bisLatestTag\x18\x08 \x01(\x08\"\xb9\x02\n\x0bTagSelector\x12\x30\n\nobjectType\x18\x01 \x01(\x0e\x32\x1c.tracdap.metadata.ObjectType\x12\x10\n\x08objectId\x18\x02 \x01(\t\x12\x16\n\x0clatestObject\x18\x03 \x01(\x08H\x00\x12\x17\n\robjectVersion\x18\x04 \x01(\x05H\x00\x12\x35\n\nobjectAsOf\x18\x05 \x01(\x0b\x32\x1f.tracdap.metadata.DatetimeValueH\x00\x12\x13\n\tlatestTag\x18\x06 \x01(\x08H\x01\x12\x14\n\ntagVersion\x18\x07 \x01(\x05H\x01\x12\x32\n\x07tagAsOf\x18\x08 \x01(\x0b\x32\x1f.tracdap.metadata.DatetimeValueH\x01\x42\x10\n\x0eobjectCriteriaB\r\n\x0btagCriteria*|\n\nObjectType\x12\x17\n\x13OBJECT_TYPE_NOT_SET\x10\x00\x12\x08\n\x04\x44\x41TA\x10\x01\x12\t\n\x05MODEL\x10\x02\x12\x08\n\x04\x46LOW\x10\x03\x12\x07\n\x03JOB\x10\x04\x12\x08\n\x04\x46ILE\x10\x05\x12\n\n\x06\x43USTOM\x10\x06\x12\x0b\n\x07STORAGE\x10\x07\x12\n\n\x06SCHEMA\x10\x08\x42\x1e\n\x1aorg.finos.tracdap.metadataP\x01\x62\x06proto3')
|
19
|
+
|
20
|
+
_globals = globals()
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tracdap.rt._impl.grpc.tracdap.metadata.object_id_pb2', _globals)
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
24
|
+
_globals['DESCRIPTOR']._options = None
|
25
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\032org.finos.tracdap.metadataP\001'
|
26
|
+
_globals['_OBJECTTYPE']._serialized_start=726
|
27
|
+
_globals['_OBJECTTYPE']._serialized_end=850
|
28
|
+
_globals['_TAGHEADER']._serialized_start=128
|
29
|
+
_globals['_TAGHEADER']._serialized_end=408
|
30
|
+
_globals['_TAGSELECTOR']._serialized_start=411
|
31
|
+
_globals['_TAGSELECTOR']._serialized_end=724
|
32
|
+
# @@protoc_insertion_point(module_scope)
|