tracdap-runtime 0.8.0b4__py3-none-any.whl → 0.8.0rc1__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/_impl/grpc/codec.py +1 -1
- tracdap/rt/_impl/grpc/tracdap/metadata/object_pb2.py +2 -2
- tracdap/rt/_impl/grpc/tracdap/metadata/object_pb2.pyi +3 -3
- tracdap/rt/_impl/grpc/tracdap/metadata/{stoarge_pb2.py → storage_pb2.py} +3 -3
- tracdap/rt/_version.py +1 -1
- tracdap/rt/api/__init__.py +1 -23
- tracdap/rt/api/constants.py +57 -0
- tracdap/rt/api/static_api.py +54 -2
- tracdap/rt/config/__init__.py +6 -6
- tracdap/rt/metadata/__init__.py +28 -28
- tracdap/rt/metadata/data.py +2 -2
- tracdap/rt/metadata/file.py +2 -0
- tracdap/rt/metadata/object.py +1 -1
- {tracdap_runtime-0.8.0b4.dist-info → tracdap_runtime-0.8.0rc1.dist-info}/METADATA +4 -3
- {tracdap_runtime-0.8.0b4.dist-info → tracdap_runtime-0.8.0rc1.dist-info}/RECORD +20 -20
- {tracdap_runtime-0.8.0b4.dist-info → tracdap_runtime-0.8.0rc1.dist-info}/WHEEL +1 -1
- tracdap/rt/api/file_types.py +0 -29
- /tracdap/rt/_impl/grpc/tracdap/metadata/{stoarge_pb2.pyi → storage_pb2.pyi} +0 -0
- /tracdap/rt/metadata/{stoarge.py → storage.py} +0 -0
- {tracdap_runtime-0.8.0b4.dist-info → tracdap_runtime-0.8.0rc1.dist-info}/LICENSE +0 -0
- {tracdap_runtime-0.8.0b4.dist-info → tracdap_runtime-0.8.0rc1.dist-info}/top_level.txt +0 -0
tracdap/rt/_impl/grpc/codec.py
CHANGED
@@ -24,7 +24,7 @@ import tracdap.rt._impl.grpc.tracdap.metadata.object_id_pb2 as object_id_pb2
|
|
24
24
|
import tracdap.rt._impl.grpc.tracdap.metadata.object_pb2 as object_pb2
|
25
25
|
from tracdap.rt._impl.grpc.tracdap.metadata import model_pb2
|
26
26
|
import tracdap.rt._impl.grpc.tracdap.metadata.data_pb2 as data_pb2
|
27
|
-
import tracdap.rt._impl.grpc.tracdap.metadata.
|
27
|
+
import tracdap.rt._impl.grpc.tracdap.metadata.storage_pb2 as storage_pb2
|
28
28
|
|
29
29
|
from google.protobuf import message as _message
|
30
30
|
|
@@ -20,10 +20,10 @@ from tracdap.rt._impl.grpc.tracdap.metadata import flow_pb2 as tracdap_dot_rt_do
|
|
20
20
|
from tracdap.rt._impl.grpc.tracdap.metadata import job_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_job__pb2
|
21
21
|
from tracdap.rt._impl.grpc.tracdap.metadata import file_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_file__pb2
|
22
22
|
from tracdap.rt._impl.grpc.tracdap.metadata import custom_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_custom__pb2
|
23
|
-
from tracdap.rt._impl.grpc.tracdap.metadata import
|
23
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import storage_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_storage__pb2
|
24
24
|
|
25
25
|
|
26
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3tracdap/rt/_impl/grpc/tracdap/metadata/object.proto\x12\x10tracdap.metadata\x1a\x36tracdap/rt/_impl/grpc/tracdap/metadata/object_id.proto\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/type.proto\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/data.proto\x1a\x32tracdap/rt/_impl/grpc/tracdap/metadata/model.proto\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/flow.proto\x1a\x30tracdap/rt/_impl/grpc/tracdap/metadata/job.proto\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/file.proto\x1a\x33tracdap/rt/_impl/grpc/tracdap/metadata/custom.proto\x1a\x34tracdap/rt/_impl/grpc/tracdap/metadata/
|
26
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3tracdap/rt/_impl/grpc/tracdap/metadata/object.proto\x12\x10tracdap.metadata\x1a\x36tracdap/rt/_impl/grpc/tracdap/metadata/object_id.proto\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/type.proto\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/data.proto\x1a\x32tracdap/rt/_impl/grpc/tracdap/metadata/model.proto\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/flow.proto\x1a\x30tracdap/rt/_impl/grpc/tracdap/metadata/job.proto\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/file.proto\x1a\x33tracdap/rt/_impl/grpc/tracdap/metadata/custom.proto\x1a\x34tracdap/rt/_impl/grpc/tracdap/metadata/storage.proto\"\xbd\x05\n\x10ObjectDefinition\x12\x30\n\nobjectType\x18\x01 \x01(\x0e\x32\x1c.tracdap.metadata.ObjectType\x12\x30\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .tracdap.metadata.DataDefinitionH\x00\x12\x32\n\x05model\x18\x03 \x01(\x0b\x32!.tracdap.metadata.ModelDefinitionH\x00\x12\x30\n\x04\x66low\x18\x04 \x01(\x0b\x32 .tracdap.metadata.FlowDefinitionH\x00\x12.\n\x03job\x18\x05 \x01(\x0b\x32\x1f.tracdap.metadata.JobDefinitionH\x00\x12\x30\n\x04\x66ile\x18\x06 \x01(\x0b\x32 .tracdap.metadata.FileDefinitionH\x00\x12\x34\n\x06\x63ustom\x18\x07 \x01(\x0b\x32\".tracdap.metadata.CustomDefinitionH\x00\x12\x36\n\x07storage\x18\x08 \x01(\x0b\x32#.tracdap.metadata.StorageDefinitionH\x00\x12\x34\n\x06schema\x18\t \x01(\x0b\x32\".tracdap.metadata.SchemaDefinitionH\x00\x12\x34\n\x06result\x18\n \x01(\x0b\x32\".tracdap.metadata.ResultDefinitionH\x00\x12H\n\x0bobjectProps\x18\x64 \x03(\x0b\x32\x33.tracdap.metadata.ObjectDefinition.ObjectPropsEntry\x1aK\n\x10ObjectPropsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.tracdap.metadata.Value:\x02\x38\x01\x42\x0c\n\ndefinitionB2\n\x1aorg.finos.tracdap.metadataB\x12ObjectProtoWrapperP\x01\x62\x06proto3')
|
27
27
|
|
28
28
|
_globals = globals()
|
29
29
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -6,7 +6,7 @@ from tracdap.rt._impl.grpc.tracdap.metadata import flow_pb2 as _flow_pb2
|
|
6
6
|
from tracdap.rt._impl.grpc.tracdap.metadata import job_pb2 as _job_pb2
|
7
7
|
from tracdap.rt._impl.grpc.tracdap.metadata import file_pb2 as _file_pb2
|
8
8
|
from tracdap.rt._impl.grpc.tracdap.metadata import custom_pb2 as _custom_pb2
|
9
|
-
from tracdap.rt._impl.grpc.tracdap.metadata import
|
9
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import storage_pb2 as _storage_pb2
|
10
10
|
from google.protobuf.internal import containers as _containers
|
11
11
|
from google.protobuf import descriptor as _descriptor
|
12
12
|
from google.protobuf import message as _message
|
@@ -41,8 +41,8 @@ class ObjectDefinition(_message.Message):
|
|
41
41
|
job: _job_pb2.JobDefinition
|
42
42
|
file: _file_pb2.FileDefinition
|
43
43
|
custom: _custom_pb2.CustomDefinition
|
44
|
-
storage:
|
44
|
+
storage: _storage_pb2.StorageDefinition
|
45
45
|
schema: _data_pb2.SchemaDefinition
|
46
46
|
result: _job_pb2.ResultDefinition
|
47
47
|
objectProps: _containers.MessageMap[str, _type_pb2.Value]
|
48
|
-
def __init__(self, objectType: _Optional[_Union[_object_id_pb2.ObjectType, str]] = ..., data: _Optional[_Union[_data_pb2.DataDefinition, _Mapping]] = ..., model: _Optional[_Union[_model_pb2.ModelDefinition, _Mapping]] = ..., flow: _Optional[_Union[_flow_pb2.FlowDefinition, _Mapping]] = ..., job: _Optional[_Union[_job_pb2.JobDefinition, _Mapping]] = ..., file: _Optional[_Union[_file_pb2.FileDefinition, _Mapping]] = ..., custom: _Optional[_Union[_custom_pb2.CustomDefinition, _Mapping]] = ..., storage: _Optional[_Union[
|
48
|
+
def __init__(self, objectType: _Optional[_Union[_object_id_pb2.ObjectType, str]] = ..., data: _Optional[_Union[_data_pb2.DataDefinition, _Mapping]] = ..., model: _Optional[_Union[_model_pb2.ModelDefinition, _Mapping]] = ..., flow: _Optional[_Union[_flow_pb2.FlowDefinition, _Mapping]] = ..., job: _Optional[_Union[_job_pb2.JobDefinition, _Mapping]] = ..., file: _Optional[_Union[_file_pb2.FileDefinition, _Mapping]] = ..., custom: _Optional[_Union[_custom_pb2.CustomDefinition, _Mapping]] = ..., storage: _Optional[_Union[_storage_pb2.StorageDefinition, _Mapping]] = ..., schema: _Optional[_Union[_data_pb2.SchemaDefinition, _Mapping]] = ..., result: _Optional[_Union[_job_pb2.ResultDefinition, _Mapping]] = ..., objectProps: _Optional[_Mapping[str, _type_pb2.Value]] = ...) -> None: ...
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
# source: tracdap/rt/_impl/grpc/tracdap/metadata/
|
3
|
+
# source: tracdap/rt/_impl/grpc/tracdap/metadata/storage.proto
|
4
4
|
# Protobuf Python Version: 4.25.3
|
5
5
|
"""Generated protocol buffer code."""
|
6
6
|
from google.protobuf import descriptor as _descriptor
|
@@ -15,11 +15,11 @@ _sym_db = _symbol_database.Default()
|
|
15
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
16
|
|
17
17
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4tracdap/rt/_impl/grpc/tracdap/metadata/
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4tracdap/rt/_impl/grpc/tracdap/metadata/storage.proto\x12\x10tracdap.metadata\x1a\x31tracdap/rt/_impl/grpc/tracdap/metadata/type.proto\"\xd2\x02\n\x0bStorageCopy\x12\x12\n\nstorageKey\x18\x01 \x01(\t\x12\x13\n\x0bstoragePath\x18\x02 \x01(\t\x12\x15\n\rstorageFormat\x18\x03 \x01(\t\x12\x30\n\ncopyStatus\x18\x04 \x01(\x0e\x32\x1c.tracdap.metadata.CopyStatus\x12\x36\n\rcopyTimestamp\x18\x05 \x01(\x0b\x32\x1f.tracdap.metadata.DatetimeValue\x12I\n\x0estorageOptions\x18\x06 \x03(\x0b\x32\x31.tracdap.metadata.StorageCopy.StorageOptionsEntry\x1aN\n\x13StorageOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.tracdap.metadata.Value:\x02\x38\x01\"\xdc\x01\n\x12StorageIncarnation\x12-\n\x06\x63opies\x18\x01 \x03(\x0b\x32\x1d.tracdap.metadata.StorageCopy\x12\x18\n\x10incarnationIndex\x18\x02 \x01(\x05\x12=\n\x14incarnationTimestamp\x18\x03 \x01(\x0b\x32\x1f.tracdap.metadata.DatetimeValue\x12>\n\x11incarnationStatus\x18\x04 \x01(\x0e\x32#.tracdap.metadata.IncarnationStatus\"I\n\x0bStorageItem\x12:\n\x0cincarnations\x18\x01 \x03(\x0b\x32$.tracdap.metadata.StorageIncarnation\"\xe1\x02\n\x11StorageDefinition\x12\x45\n\tdataItems\x18\x01 \x03(\x0b\x32\x32.tracdap.metadata.StorageDefinition.DataItemsEntry\x12O\n\x0estorageOptions\x18\x03 \x03(\x0b\x32\x37.tracdap.metadata.StorageDefinition.StorageOptionsEntry\x1aO\n\x0e\x44\x61taItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.tracdap.metadata.StorageItem:\x02\x38\x01\x1aN\n\x13StorageOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.tracdap.metadata.Value:\x02\x38\x01J\x04\x08\x02\x10\x03R\rstorageFormat*L\n\nCopyStatus\x12\x17\n\x13\x43OPY_STATUS_NOT_SET\x10\x00\x12\x12\n\x0e\x43OPY_AVAILABLE\x10\x01\x12\x11\n\rCOPY_EXPUNGED\x10\x02*h\n\x11IncarnationStatus\x12\x1e\n\x1aINCARNATION_STATUS_NOT_SET\x10\x00\x12\x19\n\x15INCARNATION_AVAILABLE\x10\x01\x12\x18\n\x14INCARNATION_EXPUNGED\x10\x02\x42\x1e\n\x1aorg.finos.tracdap.metadataP\x01\x62\x06proto3')
|
19
19
|
|
20
20
|
_globals = globals()
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
22
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tracdap.rt._impl.grpc.tracdap.metadata.
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tracdap.rt._impl.grpc.tracdap.metadata.storage_pb2', _globals)
|
23
23
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
24
24
|
_globals['DESCRIPTOR']._options = None
|
25
25
|
_globals['DESCRIPTOR']._serialized_options = b'\n\032org.finos.tracdap.metadataP\001'
|
tracdap/rt/_version.py
CHANGED
tracdap/rt/api/__init__.py
CHANGED
@@ -23,29 +23,7 @@ from tracdap.rt.metadata import * # noqa DOCGEN_REMOVE
|
|
23
23
|
|
24
24
|
# static_api overrides some metadata types for backwards compatibility with pre-0.8 versions
|
25
25
|
# Make sure it is last in the list
|
26
|
-
from .
|
26
|
+
from .constants import *
|
27
27
|
from .model_api import *
|
28
28
|
from .static_api import *
|
29
29
|
|
30
|
-
# Map basic types into the root of the API package
|
31
|
-
|
32
|
-
BOOLEAN = BasicType.BOOLEAN
|
33
|
-
"""Synonym for :py:attr:`BasicType.BOOLEAN <tracdap.rt.metadata.BasicType.BOOLEAN>`"""
|
34
|
-
|
35
|
-
INTEGER = BasicType.INTEGER
|
36
|
-
"""Synonym for :py:attr:`BasicType.INTEGER <tracdap.rt.metadata.BasicType.INTEGER>`"""
|
37
|
-
|
38
|
-
FLOAT = BasicType.FLOAT
|
39
|
-
"""Synonym for :py:attr:`BasicType.FLOAT <tracdap.rt.metadata.BasicType.FLOAT>`"""
|
40
|
-
|
41
|
-
DECIMAL = BasicType.DECIMAL
|
42
|
-
"""Synonym for :py:attr:`BasicType.DECIMAL <tracdap.rt.metadata.BasicType.DECIMAL>`"""
|
43
|
-
|
44
|
-
STRING = BasicType.STRING
|
45
|
-
"""Synonym for :py:attr:`BasicType.STRING <tracdap.rt.metadata.BasicType.STRING>`"""
|
46
|
-
|
47
|
-
DATE = BasicType.DATE
|
48
|
-
"""Synonym for :py:attr:`BasicType.DATE <tracdap.rt.metadata.BasicType.DATE>`"""
|
49
|
-
|
50
|
-
DATETIME = BasicType.DATETIME
|
51
|
-
"""Synonym for :py:attr:`BasicType.DATETIME <tracdap.rt.metadata.BasicType.DATETIME>`"""
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Licensed to the Fintech Open Source Foundation (FINOS) under one or
|
2
|
+
# more contributor license agreements. See the NOTICE file distributed
|
3
|
+
# with this work for additional information regarding copyright ownership.
|
4
|
+
# FINOS licenses this file to you under the Apache License, Version 2.0
|
5
|
+
# (the "License"); you may not use this file except in compliance with the
|
6
|
+
# License. You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
import tracdap.rt.metadata
|
17
|
+
|
18
|
+
|
19
|
+
class CommonFileTypes:
|
20
|
+
|
21
|
+
"""
|
22
|
+
A collection of common :py:class:`FileTypes <tracdap.rt.metadata.FileType>` to use as model inputs and outputs
|
23
|
+
"""
|
24
|
+
|
25
|
+
TXT = tracdap.rt.metadata.FileType("txt", "text/plain")
|
26
|
+
|
27
|
+
JPG = tracdap.rt.metadata.FileType("jpg", "image/jpeg")
|
28
|
+
PNG = tracdap.rt.metadata.FileType("png", "image/png")
|
29
|
+
SVG = tracdap.rt.metadata.FileType("svg", "image/svg+xml")
|
30
|
+
|
31
|
+
WORD = tracdap.rt.metadata.FileType("docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document")
|
32
|
+
EXCEL = tracdap.rt.metadata.FileType("xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
|
33
|
+
POWERPOINT = tracdap.rt.metadata.FileType("pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation")
|
34
|
+
|
35
|
+
|
36
|
+
# Map basic types into the root of the API package
|
37
|
+
|
38
|
+
BOOLEAN = tracdap.rt.metadata.BasicType.BOOLEAN
|
39
|
+
"""Synonym for :py:attr:`BasicType.BOOLEAN <tracdap.rt.metadata.BasicType.BOOLEAN>`"""
|
40
|
+
|
41
|
+
INTEGER = tracdap.rt.metadata.BasicType.INTEGER
|
42
|
+
"""Synonym for :py:attr:`BasicType.INTEGER <tracdap.rt.metadata.BasicType.INTEGER>`"""
|
43
|
+
|
44
|
+
FLOAT = tracdap.rt.metadata.BasicType.FLOAT
|
45
|
+
"""Synonym for :py:attr:`BasicType.FLOAT <tracdap.rt.metadata.BasicType.FLOAT>`"""
|
46
|
+
|
47
|
+
DECIMAL = tracdap.rt.metadata.BasicType.DECIMAL
|
48
|
+
"""Synonym for :py:attr:`BasicType.DECIMAL <tracdap.rt.metadata.BasicType.DECIMAL>`"""
|
49
|
+
|
50
|
+
STRING = tracdap.rt.metadata.BasicType.STRING
|
51
|
+
"""Synonym for :py:attr:`BasicType.STRING <tracdap.rt.metadata.BasicType.STRING>`"""
|
52
|
+
|
53
|
+
DATE = tracdap.rt.metadata.BasicType.DATE
|
54
|
+
"""Synonym for :py:attr:`BasicType.DATE <tracdap.rt.metadata.BasicType.DATE>`"""
|
55
|
+
|
56
|
+
DATETIME = tracdap.rt.metadata.BasicType.DATETIME
|
57
|
+
"""Synonym for :py:attr:`BasicType.DATETIME <tracdap.rt.metadata.BasicType.DATETIME>`"""
|
tracdap/rt/api/static_api.py
CHANGED
@@ -384,6 +384,14 @@ def load_schema(
|
|
384
384
|
|
385
385
|
def define_file_type(extension: str, mime_type: str) -> FileType:
|
386
386
|
|
387
|
+
"""
|
388
|
+
Define a :py:class:`FileType <tracdap.rt.metadata.FileType>` for use as a model input or output
|
389
|
+
|
390
|
+
:type extension: str
|
391
|
+
:type mime_type: str
|
392
|
+
:rtype: :py:class:`FileType <tracdap.rt.metadata.FileType>`
|
393
|
+
"""
|
394
|
+
|
387
395
|
sa = _StaticApiHook.get_instance()
|
388
396
|
return sa.define_file_type(extension, mime_type)
|
389
397
|
|
@@ -394,6 +402,17 @@ def define_input(
|
|
394
402
|
optional: bool = False, dynamic: bool = False,
|
395
403
|
input_props: _tp.Optional[_tp.Dict[str, _tp.Any]] = None):
|
396
404
|
|
405
|
+
"""
|
406
|
+
Define a model input, which can be any type of dataset or file
|
407
|
+
|
408
|
+
:type requirement: :py:class:`SchemaDefinition <tracdap.rt.metadata.SchemaDefinition>` | :py:class:`FileType <tracdap.rt.metadata.FileType>`
|
409
|
+
:type label: str | None
|
410
|
+
:type optional: bool
|
411
|
+
:type dynamic: bool
|
412
|
+
:type input_props: dict[str, :py:class:`Value <tracdap.rt.metadata.Value>`
|
413
|
+
:rtype: :py:class:`ModelInputSchema <tracdap.rt.metadata.ModelInputSchema>`
|
414
|
+
"""
|
415
|
+
|
397
416
|
sa = _StaticApiHook.get_instance()
|
398
417
|
return sa.define_input(requirement, label=label, optional=optional, dynamic=dynamic, input_props=input_props)
|
399
418
|
|
@@ -404,6 +423,17 @@ def define_output(
|
|
404
423
|
optional: bool = False, dynamic: bool = False,
|
405
424
|
output_props: _tp.Optional[_tp.Dict[str, _tp.Any]] = None):
|
406
425
|
|
426
|
+
"""
|
427
|
+
Define a model output, which can be any type of dataset or file
|
428
|
+
|
429
|
+
:type requirement: :py:class:`SchemaDefinition <tracdap.rt.metadata.SchemaDefinition>` | :py:class:`FileType <tracdap.rt.metadata.FileType>`
|
430
|
+
:type label: str | None
|
431
|
+
:type optional: bool
|
432
|
+
:type dynamic: bool
|
433
|
+
:type output_props: dict[str, :py:class:`Value <tracdap.rt.metadata.Value>`
|
434
|
+
:rtype: :py:class:`ModelOutputSchema <tracdap.rt.metadata.ModelOutputSchema>`
|
435
|
+
"""
|
436
|
+
|
407
437
|
sa = _StaticApiHook.get_instance()
|
408
438
|
return sa.define_output(requirement, label=label, optional=optional, dynamic=dynamic, output_props=output_props)
|
409
439
|
|
@@ -415,7 +445,7 @@ def define_input_table(
|
|
415
445
|
-> ModelInputSchema:
|
416
446
|
|
417
447
|
"""
|
418
|
-
Define a model input
|
448
|
+
Define a model input for a :py:class:`TableSchema <tracdap.rt.metadata.TableSchema>`
|
419
449
|
|
420
450
|
Individual fields can be defined using :py:func:`define_field` or the shorthand alias :py:func:`F`.
|
421
451
|
This function takes a number of fields, either as individual arguments or as a list, and uses them
|
@@ -460,7 +490,7 @@ def define_output_table(
|
|
460
490
|
-> ModelOutputSchema:
|
461
491
|
|
462
492
|
"""
|
463
|
-
Define a model output
|
493
|
+
Define a model output for a :py:class:`TableSchema <tracdap.rt.metadata.TableSchema>`
|
464
494
|
|
465
495
|
Individual fields can be defined using :py:func:`define_field` or the shorthand alias :py:func:`F`.
|
466
496
|
This function takes a number of fields, either as individual arguments or as a list, and uses them
|
@@ -502,6 +532,17 @@ def define_input_file(
|
|
502
532
|
input_props: _tp.Optional[_tp.Dict[str, _tp.Any]] = None) \
|
503
533
|
-> ModelInputSchema:
|
504
534
|
|
535
|
+
"""
|
536
|
+
Define a model input for a :py:class:`FileType <tracdap.rt.metadata.FileType>`
|
537
|
+
|
538
|
+
:type extension str
|
539
|
+
:type mime_type: sr
|
540
|
+
:type label: str | None
|
541
|
+
:type optional: bool
|
542
|
+
:type input_props: dict[str, Any] | None
|
543
|
+
:rtype: :py:class:`ModelInputSchema <tracdap.rt.metadata.ModelInputSchema>`
|
544
|
+
"""
|
545
|
+
|
505
546
|
file_type = define_file_type(extension, mime_type)
|
506
547
|
return define_input(file_type, label=label, optional=optional, input_props=input_props)
|
507
548
|
|
@@ -512,6 +553,17 @@ def define_output_file(
|
|
512
553
|
output_props: _tp.Optional[_tp.Dict[str, _tp.Any]] = None) \
|
513
554
|
-> ModelOutputSchema:
|
514
555
|
|
556
|
+
"""
|
557
|
+
Define a model output for a :py:class:`FileType <tracdap.rt.metadata.FileType>`
|
558
|
+
|
559
|
+
:type extension str
|
560
|
+
:type mime_type: sr
|
561
|
+
:type label: str | None
|
562
|
+
:type optional: bool
|
563
|
+
:type output_props: dict[str, Any] | None
|
564
|
+
:rtype: :py:class:`ModelOutputSchema <tracdap.rt.metadata.ModelOutputSchema>`
|
565
|
+
"""
|
566
|
+
|
515
567
|
file_type = define_file_type(extension, mime_type)
|
516
568
|
return define_output(file_type, label=label, optional=optional, output_props=output_props)
|
517
569
|
|
tracdap/rt/config/__init__.py
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Code generated by TRAC
|
2
2
|
|
3
|
+
from .job import JobConfig
|
4
|
+
|
3
5
|
from .common import _ConfigFile
|
4
6
|
from .common import PluginConfig
|
5
7
|
from .common import PlatformInfo
|
6
8
|
from .common import StorageConfig
|
7
9
|
from .common import ServiceConfig
|
8
10
|
|
9
|
-
from .
|
10
|
-
from .
|
11
|
-
|
12
|
-
from .job import JobConfig
|
11
|
+
from .result import TagUpdateList
|
12
|
+
from .result import JobResult
|
13
13
|
|
14
14
|
from .platform import RoutingProtocol
|
15
15
|
from .platform import DeploymentLayout
|
@@ -24,5 +24,5 @@ from .platform import RoutingTarget
|
|
24
24
|
from .platform import DeploymentConfig
|
25
25
|
from .platform import ClientConfig
|
26
26
|
|
27
|
-
from .
|
28
|
-
from .
|
27
|
+
from .runtime import RuntimeConfig
|
28
|
+
from .runtime import SparkSettings
|
tracdap/rt/metadata/__init__.py
CHANGED
@@ -9,12 +9,33 @@ from .type import Value
|
|
9
9
|
from .type import ArrayValue
|
10
10
|
from .type import MapValue
|
11
11
|
|
12
|
-
from .
|
12
|
+
from .tag_update import TagOperation
|
13
|
+
from .tag_update import TagUpdate
|
13
14
|
|
14
15
|
from .object_id import ObjectType
|
15
16
|
from .object_id import TagHeader
|
16
17
|
from .object_id import TagSelector
|
17
18
|
|
19
|
+
from .job import JobType
|
20
|
+
from .job import JobStatusCode
|
21
|
+
from .job import JobGroupType
|
22
|
+
from .job import JobDefinition
|
23
|
+
from .job import ResultDefinition
|
24
|
+
from .job import RunModelJob
|
25
|
+
from .job import RunFlowJob
|
26
|
+
from .job import ImportModelJob
|
27
|
+
from .job import ImportDataJob
|
28
|
+
from .job import ExportDataJob
|
29
|
+
from .job import JobGroup
|
30
|
+
from .job import SequentialJobGroup
|
31
|
+
from .job import ParallelJobGroup
|
32
|
+
|
33
|
+
from .common import MetadataFormat
|
34
|
+
from .common import MetadataVersion
|
35
|
+
from .common import TenantInfo
|
36
|
+
|
37
|
+
from .custom import CustomDefinition
|
38
|
+
|
18
39
|
from .data import SchemaType
|
19
40
|
from .data import PartType
|
20
41
|
from .data import FieldSchema
|
@@ -25,13 +46,6 @@ from .data import SchemaDefinition
|
|
25
46
|
from .data import PartKey
|
26
47
|
from .data import DataDefinition
|
27
48
|
|
28
|
-
from .stoarge import CopyStatus
|
29
|
-
from .stoarge import IncarnationStatus
|
30
|
-
from .stoarge import StorageCopy
|
31
|
-
from .stoarge import StorageIncarnation
|
32
|
-
from .stoarge import StorageItem
|
33
|
-
from .stoarge import StorageDefinition
|
34
|
-
|
35
49
|
from .file import FileDefinition
|
36
50
|
from .file import FileType
|
37
51
|
|
@@ -48,32 +62,18 @@ from .search import LogicalExpression
|
|
48
62
|
from .search import SearchExpression
|
49
63
|
from .search import SearchParameters
|
50
64
|
|
51
|
-
from .tag_update import TagOperation
|
52
|
-
from .tag_update import TagUpdate
|
53
|
-
|
54
65
|
from .flow import FlowNodeType
|
55
66
|
from .flow import FlowNode
|
56
67
|
from .flow import FlowSocket
|
57
68
|
from .flow import FlowEdge
|
58
69
|
from .flow import FlowDefinition
|
59
70
|
|
60
|
-
from .
|
61
|
-
from .
|
62
|
-
from .
|
63
|
-
from .
|
64
|
-
from .
|
65
|
-
from .
|
66
|
-
from .job import RunFlowJob
|
67
|
-
from .job import ImportModelJob
|
68
|
-
from .job import ImportDataJob
|
69
|
-
from .job import ExportDataJob
|
70
|
-
from .job import JobGroup
|
71
|
-
from .job import SequentialJobGroup
|
72
|
-
from .job import ParallelJobGroup
|
73
|
-
|
74
|
-
from .common import MetadataFormat
|
75
|
-
from .common import MetadataVersion
|
76
|
-
from .common import TenantInfo
|
71
|
+
from .storage import CopyStatus
|
72
|
+
from .storage import IncarnationStatus
|
73
|
+
from .storage import StorageCopy
|
74
|
+
from .storage import StorageIncarnation
|
75
|
+
from .storage import StorageItem
|
76
|
+
from .storage import StorageDefinition
|
77
77
|
|
78
78
|
from .object import ObjectDefinition
|
79
79
|
|
tracdap/rt/metadata/data.py
CHANGED
@@ -87,7 +87,7 @@ class TableSchema:
|
|
87
87
|
@_dc.dataclass
|
88
88
|
class StructField:
|
89
89
|
|
90
|
-
"""
|
90
|
+
"""Schema for an individual field in a structured object dataset"""
|
91
91
|
|
92
92
|
fieldType: "TypeDescriptor" = _dc.field(default_factory=lambda: TypeDescriptor())
|
93
93
|
|
@@ -111,7 +111,7 @@ class StructField:
|
|
111
111
|
@_dc.dataclass
|
112
112
|
class StructSchema:
|
113
113
|
|
114
|
-
"""
|
114
|
+
"""Schema for a structured object dataset"""
|
115
115
|
|
116
116
|
fields: "_tp.Dict[str, StructField]" = _dc.field(default_factory=dict)
|
117
117
|
|
tracdap/rt/metadata/file.py
CHANGED
tracdap/rt/metadata/object.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: tracdap-runtime
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.0rc1
|
4
4
|
Summary: Runtime package for building models on the TRAC Data & Analytics Platform
|
5
5
|
Home-page: https://tracdap.finos.org/
|
6
6
|
Author: Martin Traverse
|
@@ -66,8 +66,9 @@ Documentation for the TRAC platform is available on our website at
|
|
66
66
|
The TRAC runtime for Python has these requirements:
|
67
67
|
|
68
68
|
* Python: 3.9 up to 3.13
|
69
|
-
* Pandas: 1.2 up to 2.2
|
70
|
-
*
|
69
|
+
* Pandas: 1.2 up to 2.2 (optional)
|
70
|
+
* NumPy: 1.2 up to 2.2 (optional, required by Pandas)
|
71
|
+
* Polars: 1.X (optional)
|
71
72
|
|
72
73
|
3rd party libraries may impose additional constraints on supported versions of key libraries.
|
73
74
|
For example, Pandas 1.5 is not available for Python 3.12 or 3.13, while NumPy 2.0 is only
|
@@ -1,5 +1,5 @@
|
|
1
1
|
tracdap/rt/__init__.py,sha256=4aCSENdKNrf9nC1lUULwmHpI1D3K74_4CJzpG_OjA4Q,830
|
2
|
-
tracdap/rt/_version.py,sha256=
|
2
|
+
tracdap/rt/_version.py,sha256=iO6X9nC8D-FNaoh_9Y-PB3-uaglFFXYGj3fKhGVPSVk,821
|
3
3
|
tracdap/rt/exceptions.py,sha256=PsB4fExDI-bliqJZD-ESrr9MeLPDW7R5VN_JcWg7TqU,8175
|
4
4
|
tracdap/rt/_impl/__init__.py,sha256=nFn00zysNlcEFHQJWs4l6vLm9RS5zsJ_IF9-eRwEXlo,796
|
5
5
|
tracdap/rt/_impl/runtime.py,sha256=FX5dqV-KfyvLfQvksv0RTle8N6kd_6-oaIJqSu32S6w,16955
|
@@ -30,7 +30,7 @@ tracdap/rt/_impl/ext/__init__.py,sha256=7VEb_giQUbvBBO8OSTjTtgFgu7WSA43qslcZvhwe
|
|
30
30
|
tracdap/rt/_impl/ext/sql.py,sha256=wDlSixuDWErDlDSXo55Ti5gpHXJ5oe75Lsb4ttlrUL0,2938
|
31
31
|
tracdap/rt/_impl/ext/storage.py,sha256=HvMHAT5pE6XhUaUfyeZ7ej8JNz2jYsu0UQAEh0Iqnsw,1763
|
32
32
|
tracdap/rt/_impl/grpc/__init__.py,sha256=7VEb_giQUbvBBO8OSTjTtgFgu7WSA43qslcZvhweO10,795
|
33
|
-
tracdap/rt/_impl/grpc/codec.py,sha256=
|
33
|
+
tracdap/rt/_impl/grpc/codec.py,sha256=wIOck8a82yy6k8RF6OkwY-rsWe08Hf-6KzuwZPABHhw,3970
|
34
34
|
tracdap/rt/_impl/grpc/server.py,sha256=Q18O5yRAT-Jqr9wDXuUraOYhpEH-rfnFk9tvvb-o3Os,12635
|
35
35
|
tracdap/rt/_impl/grpc/tracdap/api/internal/runtime_pb2.py,sha256=5KCfcaSZ9ydp26z78-iuM2jCmFRmqgDqMuxAg7Xgcx0,5174
|
36
36
|
tracdap/rt/_impl/grpc/tracdap/api/internal/runtime_pb2.pyi,sha256=78VhnLgm_m6HSgQT0bg7j86O9g8GNMADkm3SotQ39lg,3227
|
@@ -51,14 +51,14 @@ tracdap/rt/_impl/grpc/tracdap/metadata/model_pb2.py,sha256=q1VdvKCEslwCxqK6cEb4A
|
|
51
51
|
tracdap/rt/_impl/grpc/tracdap/metadata/model_pb2.pyi,sha256=rBgvG_L521BbuzMpns3lKr5hOZmVwoHGW1bP2_EI4G0,7826
|
52
52
|
tracdap/rt/_impl/grpc/tracdap/metadata/object_id_pb2.py,sha256=4tRcud1WhYkYhEYGg0qZF7ED3QRDwP8Vg8kAh6FYZuw,2961
|
53
53
|
tracdap/rt/_impl/grpc/tracdap/metadata/object_id_pb2.pyi,sha256=8vSR8UbjxPpvtvLLshLGBnpaU1BKUw7D1i6ZilnpZCk,3291
|
54
|
-
tracdap/rt/_impl/grpc/tracdap/metadata/object_pb2.py,sha256=
|
55
|
-
tracdap/rt/_impl/grpc/tracdap/metadata/object_pb2.pyi,sha256=
|
54
|
+
tracdap/rt/_impl/grpc/tracdap/metadata/object_pb2.py,sha256=jogndNtuZCY30YRy0h_hQgNzy3Cz2qZGtlMq2dvFimU,4459
|
55
|
+
tracdap/rt/_impl/grpc/tracdap/metadata/object_pb2.pyi,sha256=xeT7A3pM-b6qRupmEYbaOqdy5Yn4ucRSfD5mqfdDEiE,3168
|
56
56
|
tracdap/rt/_impl/grpc/tracdap/metadata/resource_pb2.py,sha256=cXIkqZRCHG2teGgvExqztCl5xtvitz4JO7PWT8IleFE,1843
|
57
57
|
tracdap/rt/_impl/grpc/tracdap/metadata/resource_pb2.pyi,sha256=JAlgacWw94Yq3nnrrSEvtBfWw4kXlctZrj_V8TU4Tck,704
|
58
58
|
tracdap/rt/_impl/grpc/tracdap/metadata/search_pb2.py,sha256=YsUl-xK3jOQ6mOMCPe8G3-BWOFFz-MpUOXDWMV90DrQ,3654
|
59
59
|
tracdap/rt/_impl/grpc/tracdap/metadata/search_pb2.pyi,sha256=PU-OYKRufI3v5Zx8RI4RvEZq3KPh91AOb8sDNwxyySY,3762
|
60
|
-
tracdap/rt/_impl/grpc/tracdap/metadata/
|
61
|
-
tracdap/rt/_impl/grpc/tracdap/metadata/
|
60
|
+
tracdap/rt/_impl/grpc/tracdap/metadata/storage_pb2.py,sha256=09l_I0KjEL3vtytvVSIK0-XKrLDIvPmb3zzNgekTyL8,4652
|
61
|
+
tracdap/rt/_impl/grpc/tracdap/metadata/storage_pb2.pyi,sha256=ImU8YT62pfiAMDYwTtX5E6nyI_n1PuhUWabFJlRFvnE,4746
|
62
62
|
tracdap/rt/_impl/grpc/tracdap/metadata/tag_pb2.py,sha256=bQ6gA21bizykXQZPzC8AhaN5IgUYddzVEp7KSzz6KNM,2441
|
63
63
|
tracdap/rt/_impl/grpc/tracdap/metadata/tag_pb2.pyi,sha256=6gP3-Rdiq84ng5d6DtVNEWZj5syt1xyD33jRWg3YcgU,1454
|
64
64
|
tracdap/rt/_impl/grpc/tracdap/metadata/tag_update_pb2.py,sha256=HwJtcqjYwbYZw5LpZIaMux1qusVfEitl0wX-J8NMprI,2090
|
@@ -80,13 +80,13 @@ tracdap/rt/_plugins/storage_gcp.py,sha256=D0ReW2ZZ6IDqRdF-lowL43ceaupmf4tJGo7jvW
|
|
80
80
|
tracdap/rt/_plugins/storage_local.py,sha256=KY1CsT0GzjYWo5YYetTnQDWu18RhVrmEGBrEUSQHPKU,15742
|
81
81
|
tracdap/rt/_plugins/storage_sql.py,sha256=QoSDLpxzeAQP-jb3IW9E6cLVXGq9wnVEPAk0JY6Jz1w,16080
|
82
82
|
tracdap/rt/_plugins/storage_sql_dialects.py,sha256=4HWx5Gm50TRf5BTmc3hMREJIFsFgqo4g7wkVEVZzPz0,3550
|
83
|
-
tracdap/rt/api/__init__.py,sha256=
|
83
|
+
tracdap/rt/api/__init__.py,sha256=hwKCBx_PEI5QgCpFO_0MhoaoPb_i35ds0n7fb60EY_8,1261
|
84
|
+
tracdap/rt/api/constants.py,sha256=BSf9Fj9-hASaE9zfSmWmHmL0u-d1SgNetYJfdI0CueA,2583
|
84
85
|
tracdap/rt/api/experimental.py,sha256=ycD7xpMyXBI6W2UCirCbYtQ0rVVCNByAsA0p3euXmo8,9100
|
85
|
-
tracdap/rt/api/file_types.py,sha256=9d8zBI74ALADYKHevGkSnqJlng2Zd4Y7dto4iregnnE,1349
|
86
86
|
tracdap/rt/api/hook.py,sha256=0TA_pu-22IoVNacf38dq3Aaz4sHoau1IdhabfxgKtOE,5243
|
87
87
|
tracdap/rt/api/model_api.py,sha256=ONDU0ocNnejGi2r9nCKTlblqw847Yz4vtGo4M8inc9Q,22435
|
88
|
-
tracdap/rt/api/static_api.py,sha256=
|
89
|
-
tracdap/rt/config/__init__.py,sha256=
|
88
|
+
tracdap/rt/api/static_api.py,sha256=vSt6JUhxuOKQ5wI3CdmHgf8BskHffjry1lId2buDEeA,31852
|
89
|
+
tracdap/rt/config/__init__.py,sha256=ecwOIj18iFmBO71lkgci1tpD1D1o0XQDNKHpwblLo3U,796
|
90
90
|
tracdap/rt/config/common.py,sha256=uKdwvfAKUzi8Wag4NpIYIZyL3D-Ed-KN1sqYuOpOROw,1187
|
91
91
|
tracdap/rt/config/job.py,sha256=B-aVIq0vJUY41-vPuIOLIq4A2hdfL9EJN0X9--nGfcI,656
|
92
92
|
tracdap/rt/config/platform.py,sha256=aU7sVInAcf7NxPk6KufaHqDbM_NZRQ9qOb3w4rDT4qI,3005
|
@@ -102,24 +102,24 @@ tracdap/rt/launch/__init__.py,sha256=SPIwj5Bwa-IlhrfY1OJspYnL_mPLvz4F9XTAYKeu6IE
|
|
102
102
|
tracdap/rt/launch/__main__.py,sha256=tfr5wL1gHm0oj4tcX6pv6bl-3Z1K7VMpmmNMQzfMFzU,841
|
103
103
|
tracdap/rt/launch/cli.py,sha256=jGySYBawTDFJrhHgwYnplXb9VPcgfrBVB2UURqx5s-s,2638
|
104
104
|
tracdap/rt/launch/launch.py,sha256=BogIdacUhIvr_Ay-LU2eik8Y1DvGr-GrOiOi40XqZ1A,7806
|
105
|
-
tracdap/rt/metadata/__init__.py,sha256=
|
105
|
+
tracdap/rt/metadata/__init__.py,sha256=qlU7pQPu-AEjPEAiXRNqTApWo8aqa8rvIH4J9nDvLbA,2154
|
106
106
|
tracdap/rt/metadata/common.py,sha256=J24poYPHSJfORPqqhyJGTAmepdhVaT0V0RblWiW9jCI,1404
|
107
107
|
tracdap/rt/metadata/custom.py,sha256=GhCO8xjjsjZzlfSefqmCFX80rXJnxDCDq_STWi0ZL_0,352
|
108
|
-
tracdap/rt/metadata/data.py,sha256=
|
109
|
-
tracdap/rt/metadata/file.py,sha256=
|
108
|
+
tracdap/rt/metadata/data.py,sha256=uYUyV7VmtGZ4s8hv4JMN6sXix2USu6TmOqq0POlEX7U,4424
|
109
|
+
tracdap/rt/metadata/file.py,sha256=d4VLinEXiXZamLtPbZSqZQamQbxR8dsU1m680vDaxoY,628
|
110
110
|
tracdap/rt/metadata/flow.py,sha256=IgZTh62xndAAFG1Y44JORrVKOV7Bd4dEqtWjf1CGeHU,3491
|
111
111
|
tracdap/rt/metadata/job.py,sha256=r8IBe-IumI_An1jrg-h8mM2bZPEew8evpXp5GkfEfNo,6390
|
112
112
|
tracdap/rt/metadata/model.py,sha256=bLeAhFtKa9zOAjf5hd1PnJoEZdHqyl0Drskn464dmqA,3761
|
113
|
-
tracdap/rt/metadata/object.py,sha256=
|
113
|
+
tracdap/rt/metadata/object.py,sha256=gt5lnPC3nba3UjejzZD7g6wv7oi39b8WTdxhn4nixcs,2849
|
114
114
|
tracdap/rt/metadata/object_id.py,sha256=iZ3Xx5z6nwIagg8Mziuo5ea6Tz1UWk9U5ZTqCgIaYq0,4399
|
115
115
|
tracdap/rt/metadata/resource.py,sha256=V6xMOadgzemGvxH7yyhBigRCpg24ZxQPV3WNBvwRcGI,526
|
116
116
|
tracdap/rt/metadata/search.py,sha256=BaH0mL80QEQ6iDmef1bIqEBIlm70orkc18DQv3pya6Y,9931
|
117
|
-
tracdap/rt/metadata/
|
117
|
+
tracdap/rt/metadata/storage.py,sha256=-WYc3aJskSCF_ETFQDavG3fTck__WPGMOfzWEBv55p4,3153
|
118
118
|
tracdap/rt/metadata/tag.py,sha256=cjKF5gdNECHDtA9sc09Dc2Q4WNZQA_7iJsUEHSKFXiQ,5097
|
119
119
|
tracdap/rt/metadata/tag_update.py,sha256=I7iDJiHEcSQ2vhOlhIc0fzeOoqTg6N1LJZU1R6tG_8g,3779
|
120
120
|
tracdap/rt/metadata/type.py,sha256=7XOGlLVvxd6DEmKRBYTANBsu9lmxDOsMKE0aNvzsB3M,9568
|
121
|
-
tracdap_runtime-0.8.
|
122
|
-
tracdap_runtime-0.8.
|
123
|
-
tracdap_runtime-0.8.
|
124
|
-
tracdap_runtime-0.8.
|
125
|
-
tracdap_runtime-0.8.
|
121
|
+
tracdap_runtime-0.8.0rc1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
122
|
+
tracdap_runtime-0.8.0rc1.dist-info/METADATA,sha256=Kd9XieTlLPNbKknfiLj3EKwg-kPyLkDD2DKjEcwJo-g,5182
|
123
|
+
tracdap_runtime-0.8.0rc1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
124
|
+
tracdap_runtime-0.8.0rc1.dist-info/top_level.txt,sha256=Uv0JfaE1Lp4JnCzqW8lqXNJAEcsAFpAUGOghJolVNdM,8
|
125
|
+
tracdap_runtime-0.8.0rc1.dist-info/RECORD,,
|
tracdap/rt/api/file_types.py
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# Licensed to the Fintech Open Source Foundation (FINOS) under one or
|
2
|
-
# more contributor license agreements. See the NOTICE file distributed
|
3
|
-
# with this work for additional information regarding copyright ownership.
|
4
|
-
# FINOS licenses this file to you under the Apache License, Version 2.0
|
5
|
-
# (the "License"); you may not use this file except in compliance with the
|
6
|
-
# License. You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from tracdap.rt.metadata import * # DOCGEN_REMOVE
|
17
|
-
|
18
|
-
|
19
|
-
class CommonFileTypes:
|
20
|
-
|
21
|
-
TXT = FileType("txt", "text/plain")
|
22
|
-
|
23
|
-
JPG = FileType("jpg", "image/jpeg")
|
24
|
-
PNG = FileType("png", "image/png")
|
25
|
-
SVG = FileType("svg", "image/svg+xml")
|
26
|
-
|
27
|
-
WORD = FileType("docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document")
|
28
|
-
EXCEL = FileType("xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
|
29
|
-
POWERPOINT = FileType("pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|