cosmotech-acceleration-library 1.0.1__py3-none-any.whl → 2.0.0__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.
- cosmotech/coal/__init__.py +1 -1
- cosmotech/coal/aws/__init__.py +1 -9
- cosmotech/coal/aws/s3.py +181 -214
- cosmotech/coal/azure/adx/auth.py +2 -2
- cosmotech/coal/azure/adx/runner.py +13 -14
- cosmotech/coal/azure/adx/store.py +5 -86
- cosmotech/coal/azure/adx/tables.py +2 -2
- cosmotech/coal/azure/blob.py +6 -6
- cosmotech/coal/azure/storage.py +3 -3
- cosmotech/coal/cosmotech_api/__init__.py +0 -24
- cosmotech/coal/cosmotech_api/apis/__init__.py +14 -0
- cosmotech/coal/cosmotech_api/apis/dataset.py +103 -0
- cosmotech/coal/cosmotech_api/apis/meta.py +25 -0
- cosmotech/coal/cosmotech_api/apis/organization.py +24 -0
- cosmotech/coal/cosmotech_api/apis/run.py +38 -0
- cosmotech/coal/cosmotech_api/apis/runner.py +71 -0
- cosmotech/coal/cosmotech_api/apis/solution.py +23 -0
- cosmotech/coal/cosmotech_api/apis/workspace.py +108 -0
- cosmotech/coal/cosmotech_api/objects/__init__.py +9 -0
- cosmotech/coal/cosmotech_api/objects/connection.py +125 -0
- cosmotech/coal/cosmotech_api/objects/parameters.py +127 -0
- cosmotech/coal/postgresql/runner.py +56 -36
- cosmotech/coal/postgresql/store.py +60 -14
- cosmotech/coal/postgresql/utils.py +254 -0
- cosmotech/coal/store/output/__init__.py +0 -0
- cosmotech/coal/store/output/aws_channel.py +73 -0
- cosmotech/coal/store/output/az_storage_channel.py +42 -0
- cosmotech/coal/store/output/channel_interface.py +23 -0
- cosmotech/coal/store/output/channel_spliter.py +55 -0
- cosmotech/coal/store/output/postgres_channel.py +40 -0
- cosmotech/coal/utils/configuration.py +169 -0
- cosmotech/coal/utils/decorator.py +22 -0
- cosmotech/csm_data/commands/api/api.py +6 -19
- cosmotech/csm_data/commands/api/postgres_send_runner_metadata.py +20 -16
- cosmotech/csm_data/commands/api/run_load_data.py +7 -46
- cosmotech/csm_data/commands/api/wsf_load_file.py +14 -15
- cosmotech/csm_data/commands/api/wsf_send_file.py +12 -13
- cosmotech/csm_data/commands/s3_bucket_delete.py +16 -15
- cosmotech/csm_data/commands/s3_bucket_download.py +16 -16
- cosmotech/csm_data/commands/s3_bucket_upload.py +16 -14
- cosmotech/csm_data/commands/store/dump_to_s3.py +18 -16
- cosmotech/csm_data/commands/store/output.py +35 -0
- cosmotech/csm_data/commands/store/store.py +3 -4
- cosmotech/translation/coal/en-US/coal/cosmotech_api/initialization.yml +8 -0
- cosmotech/translation/coal/en-US/coal/services/dataset.yml +4 -14
- cosmotech/translation/coal/en-US/coal/store/output/data_interface.yml +1 -0
- cosmotech/translation/coal/en-US/coal/store/output/split.yml +6 -0
- cosmotech/translation/coal/en-US/coal/utils/configuration.yml +2 -0
- cosmotech/translation/csm_data/en-US/csm_data/commands/store/output.yml +7 -0
- {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/METADATA +8 -9
- {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/RECORD +55 -71
- cosmotech/coal/azure/functions.py +0 -72
- cosmotech/coal/cosmotech_api/connection.py +0 -96
- cosmotech/coal/cosmotech_api/dataset/__init__.py +0 -26
- cosmotech/coal/cosmotech_api/dataset/converters.py +0 -164
- cosmotech/coal/cosmotech_api/dataset/download/__init__.py +0 -19
- cosmotech/coal/cosmotech_api/dataset/download/adt.py +0 -119
- cosmotech/coal/cosmotech_api/dataset/download/common.py +0 -140
- cosmotech/coal/cosmotech_api/dataset/download/file.py +0 -216
- cosmotech/coal/cosmotech_api/dataset/download/twingraph.py +0 -188
- cosmotech/coal/cosmotech_api/dataset/utils.py +0 -132
- cosmotech/coal/cosmotech_api/parameters.py +0 -48
- cosmotech/coal/cosmotech_api/run.py +0 -25
- cosmotech/coal/cosmotech_api/run_data.py +0 -173
- cosmotech/coal/cosmotech_api/run_template.py +0 -108
- cosmotech/coal/cosmotech_api/runner/__init__.py +0 -28
- cosmotech/coal/cosmotech_api/runner/data.py +0 -38
- cosmotech/coal/cosmotech_api/runner/datasets.py +0 -364
- cosmotech/coal/cosmotech_api/runner/download.py +0 -146
- cosmotech/coal/cosmotech_api/runner/metadata.py +0 -42
- cosmotech/coal/cosmotech_api/runner/parameters.py +0 -157
- cosmotech/coal/cosmotech_api/twin_data_layer.py +0 -512
- cosmotech/coal/cosmotech_api/workspace.py +0 -127
- cosmotech/coal/utils/api.py +0 -68
- cosmotech/coal/utils/postgresql.py +0 -236
- cosmotech/csm_data/commands/api/rds_load_csv.py +0 -90
- cosmotech/csm_data/commands/api/rds_send_csv.py +0 -74
- cosmotech/csm_data/commands/api/rds_send_store.py +0 -74
- cosmotech/csm_data/commands/api/runtemplate_load_handler.py +0 -66
- cosmotech/csm_data/commands/api/tdl_load_files.py +0 -76
- cosmotech/csm_data/commands/api/tdl_send_files.py +0 -82
- cosmotech/orchestrator_plugins/csm-data/templates/api/rds_load_csv.json +0 -27
- cosmotech/orchestrator_plugins/csm-data/templates/api/rds_send_csv.json +0 -27
- cosmotech/orchestrator_plugins/csm-data/templates/api/rds_send_store.json +0 -27
- cosmotech/orchestrator_plugins/csm-data/templates/api/runtemplate_load_handler.json +0 -27
- cosmotech/orchestrator_plugins/csm-data/templates/api/tdl_load_files.json +0 -32
- cosmotech/orchestrator_plugins/csm-data/templates/api/tdl_send_files.json +0 -27
- cosmotech/translation/coal/en-US/coal/cosmotech_api/run_data.yml +0 -2
- cosmotech/translation/csm_data/en-US/csm_data/commands/api/rds_load_csv.yml +0 -13
- cosmotech/translation/csm_data/en-US/csm_data/commands/api/rds_send_csv.yml +0 -12
- cosmotech/translation/csm_data/en-US/csm_data/commands/api/rds_send_store.yml +0 -12
- cosmotech/translation/csm_data/en-US/csm_data/commands/api/tdl_load_files.yml +0 -14
- cosmotech/translation/csm_data/en-US/csm_data/commands/api/tdl_send_files.yml +0 -18
- {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/WHEEL +0 -0
- {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/entry_points.txt +0 -0
- {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/licenses/LICENSE +0 -0
- {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/top_level.txt +0 -0
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
# etc., to any person is prohibited unless it has been previously and
|
|
6
6
|
# specifically authorized by written means by Cosmo Tech.
|
|
7
7
|
|
|
8
|
-
from cosmotech.csm_data.utils.click import click
|
|
9
|
-
from cosmotech.csm_data.utils.decorators import web_help, translate_help
|
|
10
|
-
from cosmotech.coal.cosmotech_api.connection import get_api_client
|
|
11
|
-
from cosmotech.coal.cosmotech_api.workspace import upload_workspace_file
|
|
12
8
|
from cosmotech.orchestrator.utils.translate import T
|
|
13
9
|
|
|
10
|
+
from cosmotech.csm_data.utils.click import click
|
|
11
|
+
from cosmotech.csm_data.utils.decorators import translate_help, web_help
|
|
12
|
+
|
|
14
13
|
|
|
15
14
|
@click.command()
|
|
16
15
|
@click.option(
|
|
@@ -57,12 +56,12 @@ from cosmotech.orchestrator.utils.translate import T
|
|
|
57
56
|
@web_help("csm-data/api/wsf-send-file")
|
|
58
57
|
@translate_help("csm_data.commands.api.wsf_send_file.description")
|
|
59
58
|
def wsf_send_file(organization_id, workspace_id, file_path, workspace_path: str, overwrite: bool):
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
from cosmotech.coal.cosmotech_api.apis.workspace import WorkspaceApi
|
|
60
|
+
|
|
61
|
+
WorkspaceApi().upload_workspace_file(
|
|
62
|
+
organization_id,
|
|
63
|
+
workspace_id,
|
|
64
|
+
file_path,
|
|
65
|
+
workspace_path,
|
|
66
|
+
overwrite,
|
|
67
|
+
)
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
from typing import Optional
|
|
9
9
|
|
|
10
|
-
from cosmotech.csm_data.utils.click import click
|
|
11
|
-
from cosmotech.csm_data.utils.decorators import web_help, translate_help
|
|
12
10
|
from cosmotech.orchestrator.utils.translate import T
|
|
13
11
|
|
|
12
|
+
from cosmotech.csm_data.utils.click import click
|
|
13
|
+
from cosmotech.csm_data.utils.decorators import translate_help, web_help
|
|
14
|
+
|
|
14
15
|
|
|
15
16
|
@click.command()
|
|
16
17
|
@click.option(
|
|
@@ -88,20 +89,20 @@ def s3_bucket_delete(
|
|
|
88
89
|
ssl_cert_bundle: Optional[str] = None,
|
|
89
90
|
):
|
|
90
91
|
# Import the functions at the start of the command
|
|
91
|
-
from cosmotech.coal.aws
|
|
92
|
+
from cosmotech.coal.aws import S3
|
|
93
|
+
from cosmotech.coal.utils.configuration import Configuration
|
|
92
94
|
|
|
93
95
|
# Create S3 resource
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
_c = Configuration()
|
|
97
|
+
_c.s3.bucket_name = bucket_name
|
|
98
|
+
_c.s3.endpoint_url = endpoint_url
|
|
99
|
+
_c.s3.access_key_id = access_id
|
|
100
|
+
_c.s3.secret_access_key = secret_key
|
|
101
|
+
_c.s3.bucket_prefix = file_prefix
|
|
102
|
+
_c.s3.use_ssl = use_ssl
|
|
103
|
+
_c.s3.ssl_cert_bundle = ssl_cert_bundle
|
|
104
|
+
|
|
105
|
+
_s3 = S3(_c)
|
|
101
106
|
|
|
102
107
|
# Delete objects
|
|
103
|
-
delete_objects(
|
|
104
|
-
bucket_name=bucket_name,
|
|
105
|
-
s3_resource=s3_resource,
|
|
106
|
-
file_prefix=file_prefix,
|
|
107
|
-
)
|
|
108
|
+
_s3.delete_objects()
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
from typing import Optional
|
|
9
9
|
|
|
10
|
-
from cosmotech.csm_data.utils.click import click
|
|
11
|
-
from cosmotech.csm_data.utils.decorators import web_help, translate_help
|
|
12
10
|
from cosmotech.orchestrator.utils.translate import T
|
|
13
11
|
|
|
12
|
+
from cosmotech.csm_data.utils.click import click
|
|
13
|
+
from cosmotech.csm_data.utils.decorators import translate_help, web_help
|
|
14
|
+
|
|
14
15
|
|
|
15
16
|
@click.command()
|
|
16
17
|
@click.option(
|
|
@@ -98,21 +99,20 @@ def s3_bucket_download(
|
|
|
98
99
|
ssl_cert_bundle: Optional[str] = None,
|
|
99
100
|
):
|
|
100
101
|
# Import the functions at the start of the command
|
|
101
|
-
from cosmotech.coal.aws
|
|
102
|
+
from cosmotech.coal.aws import S3
|
|
103
|
+
from cosmotech.coal.utils.configuration import Configuration
|
|
102
104
|
|
|
103
105
|
# Create S3 resource
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
_c = Configuration()
|
|
107
|
+
_c.s3.bucket_name = bucket_name
|
|
108
|
+
_c.s3.endpoint_url = endpoint_url
|
|
109
|
+
_c.s3.access_key_id = access_id
|
|
110
|
+
_c.s3.secret_access_key = secret_key
|
|
111
|
+
_c.s3.bucket_prefix = file_prefix
|
|
112
|
+
_c.s3.use_ssl = use_ssl
|
|
113
|
+
_c.s3.ssl_cert_bundle = ssl_cert_bundle
|
|
114
|
+
|
|
115
|
+
_s3 = S3(_c)
|
|
111
116
|
|
|
112
117
|
# Download files
|
|
113
|
-
download_files(
|
|
114
|
-
target_folder=target_folder,
|
|
115
|
-
bucket_name=bucket_name,
|
|
116
|
-
s3_resource=s3_resource,
|
|
117
|
-
file_prefix=file_prefix,
|
|
118
|
-
)
|
|
118
|
+
_s3.download_files(target_folder=target_folder)
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
from typing import Optional
|
|
9
9
|
|
|
10
|
-
from cosmotech.csm_data.utils.click import click
|
|
11
|
-
from cosmotech.csm_data.utils.decorators import web_help, translate_help
|
|
12
10
|
from cosmotech.orchestrator.utils.translate import T
|
|
13
11
|
|
|
12
|
+
from cosmotech.csm_data.utils.click import click
|
|
13
|
+
from cosmotech.csm_data.utils.decorators import translate_help, web_help
|
|
14
|
+
|
|
14
15
|
|
|
15
16
|
@click.command()
|
|
16
17
|
@click.option(
|
|
@@ -107,22 +108,23 @@ def s3_bucket_upload(
|
|
|
107
108
|
recursive: bool = False,
|
|
108
109
|
):
|
|
109
110
|
# Import the functions at the start of the command
|
|
110
|
-
from cosmotech.coal.aws
|
|
111
|
+
from cosmotech.coal.aws import S3
|
|
112
|
+
from cosmotech.coal.utils.configuration import Configuration
|
|
111
113
|
|
|
112
114
|
# Create S3 resource
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
_c = Configuration()
|
|
116
|
+
_c.s3.bucket_name = bucket_name
|
|
117
|
+
_c.s3.endpoint_url = endpoint_url
|
|
118
|
+
_c.s3.access_key_id = access_id
|
|
119
|
+
_c.s3.secret_access_key = secret_key
|
|
120
|
+
_c.s3.bucket_prefix = file_prefix
|
|
121
|
+
_c.s3.use_ssl = use_ssl
|
|
122
|
+
_c.s3.ssl_cert_bundle = ssl_cert_bundle
|
|
123
|
+
|
|
124
|
+
_s3 = S3(_c)
|
|
120
125
|
|
|
121
126
|
# Upload files
|
|
122
|
-
upload_folder(
|
|
127
|
+
_s3.upload_folder(
|
|
123
128
|
source_folder=source_folder,
|
|
124
|
-
bucket_name=bucket_name,
|
|
125
|
-
s3_resource=s3_resource,
|
|
126
|
-
file_prefix=file_prefix,
|
|
127
129
|
recursive=recursive,
|
|
128
130
|
)
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
from typing import Optional
|
|
9
9
|
|
|
10
|
-
from cosmotech.csm_data.utils.click import click
|
|
11
|
-
from cosmotech.csm_data.utils.decorators import web_help, translate_help
|
|
12
10
|
from cosmotech.orchestrator.utils.translate import T
|
|
13
11
|
|
|
12
|
+
from cosmotech.csm_data.utils.click import click
|
|
13
|
+
from cosmotech.csm_data.utils.decorators import translate_help, web_help
|
|
14
|
+
|
|
14
15
|
VALID_TYPES = (
|
|
15
16
|
"sqlite",
|
|
16
17
|
"csv",
|
|
@@ -113,10 +114,13 @@ def dump_to_s3(
|
|
|
113
114
|
):
|
|
114
115
|
# Import the modules and functions at the start of the command
|
|
115
116
|
from io import BytesIO
|
|
117
|
+
|
|
116
118
|
import pyarrow.csv as pc
|
|
117
119
|
import pyarrow.parquet as pq
|
|
118
|
-
|
|
120
|
+
|
|
121
|
+
from cosmotech.coal.aws import S3
|
|
119
122
|
from cosmotech.coal.store.store import Store
|
|
123
|
+
from cosmotech.coal.utils.configuration import Configuration
|
|
120
124
|
from cosmotech.coal.utils.logger import LOGGER
|
|
121
125
|
|
|
122
126
|
_s = Store(store_location=store_folder)
|
|
@@ -125,14 +129,15 @@ def dump_to_s3(
|
|
|
125
129
|
LOGGER.error(T("coal.common.errors.data_invalid_output_type").format(output_type=output_type))
|
|
126
130
|
raise ValueError(T("coal.common.errors.data_invalid_output_type").format(output_type=output_type))
|
|
127
131
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
_configuration = Configuration()
|
|
133
|
+
_configuration.s3.bucket_name = bucket_name
|
|
134
|
+
_configuration.s3.endpoint_url = endpoint_url
|
|
135
|
+
_configuration.s3.access_key_id = access_id
|
|
136
|
+
_configuration.s3.secret_access_key = secret_key
|
|
137
|
+
_configuration.s3.bucket_prefix_prefix = file_prefix
|
|
138
|
+
_configuration.s3.use_ssl = use_ssl
|
|
139
|
+
_configuration.s3.ssl_cert_bundle = ssl_cert_bundle
|
|
140
|
+
_s3 = S3(_configuration)
|
|
136
141
|
|
|
137
142
|
if output_type == "sqlite":
|
|
138
143
|
_file_path = _s._database_path
|
|
@@ -141,7 +146,7 @@ def dump_to_s3(
|
|
|
141
146
|
LOGGER.info(
|
|
142
147
|
T("coal.common.data_transfer.file_sent").format(file_path=_file_path, uploaded_name=_uploaded_file_name)
|
|
143
148
|
)
|
|
144
|
-
|
|
149
|
+
_s3.upload_file(_file_path, _uploaded_file_name)
|
|
145
150
|
else:
|
|
146
151
|
tables = list(_s.list_tables())
|
|
147
152
|
for table_name in tables:
|
|
@@ -160,10 +165,7 @@ def dump_to_s3(
|
|
|
160
165
|
LOGGER.info(
|
|
161
166
|
T("coal.common.data_transfer.sending_table").format(table_name=table_name, output_type=output_type)
|
|
162
167
|
)
|
|
163
|
-
upload_data_stream(
|
|
168
|
+
_s3.upload_data_stream(
|
|
164
169
|
data_stream=_data_stream,
|
|
165
|
-
bucket_name=bucket_name,
|
|
166
|
-
s3_client=s3_client,
|
|
167
170
|
file_name=_file_name,
|
|
168
|
-
file_prefix=file_prefix,
|
|
169
171
|
)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Copyright (C) - 2023 - 2025 - Cosmo Tech
|
|
2
|
+
# This document and all information contained herein is the exclusive property -
|
|
3
|
+
# including all intellectual property rights pertaining thereto - of Cosmo Tech.
|
|
4
|
+
# Any use, reproduction, translation, broadcasting, transmission, distribution,
|
|
5
|
+
# etc., to any person is prohibited unless it has been previously and
|
|
6
|
+
# specifically authorized by written means by Cosmo Tech.
|
|
7
|
+
|
|
8
|
+
from cosmotech.orchestrator.utils.translate import T
|
|
9
|
+
|
|
10
|
+
from cosmotech.csm_data.utils.click import click
|
|
11
|
+
from cosmotech.csm_data.utils.decorators import translate_help, web_help
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@click.command()
|
|
15
|
+
@click.option(
|
|
16
|
+
"--filter",
|
|
17
|
+
"-f",
|
|
18
|
+
multiple=True,
|
|
19
|
+
help=T("csm_data.commands.store.output.parameters.filter"),
|
|
20
|
+
type=str,
|
|
21
|
+
)
|
|
22
|
+
@web_help("csm-data/store/output")
|
|
23
|
+
@translate_help("csm_data.commands.store.output.description")
|
|
24
|
+
def output(
|
|
25
|
+
filter,
|
|
26
|
+
):
|
|
27
|
+
# Import the function at the start of the command
|
|
28
|
+
from cosmotech.coal.store.output import channel_spliter
|
|
29
|
+
from cosmotech.coal.utils.configuration import Configuration
|
|
30
|
+
|
|
31
|
+
try:
|
|
32
|
+
_cs = channel_spliter.ChannelSpliter(Configuration())
|
|
33
|
+
_cs.send(list(filter))
|
|
34
|
+
except ValueError as e:
|
|
35
|
+
raise click.Abort() from e
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
# etc., to any person is prohibited unless it has been previously and
|
|
6
6
|
# specifically authorized by written means by Cosmo Tech.
|
|
7
7
|
|
|
8
|
-
from cosmotech.csm_data.commands.api.rds_send_store import rds_send_store
|
|
9
8
|
from cosmotech.csm_data.commands.store.dump_to_azure import dump_to_azure
|
|
10
9
|
from cosmotech.csm_data.commands.store.dump_to_postgresql import dump_to_postgresql
|
|
11
10
|
from cosmotech.csm_data.commands.store.dump_to_s3 import dump_to_s3
|
|
@@ -14,10 +13,10 @@ from cosmotech.csm_data.commands.store.load_csv_folder import load_csv_folder
|
|
|
14
13
|
from cosmotech.csm_data.commands.store.load_from_singlestore import (
|
|
15
14
|
load_from_singlestore_command,
|
|
16
15
|
)
|
|
16
|
+
from cosmotech.csm_data.commands.store.output import output
|
|
17
17
|
from cosmotech.csm_data.commands.store.reset import reset
|
|
18
18
|
from cosmotech.csm_data.utils.click import click
|
|
19
|
-
from cosmotech.csm_data.utils.decorators import
|
|
20
|
-
from cosmotech.orchestrator.utils.translate import T
|
|
19
|
+
from cosmotech.csm_data.utils.decorators import translate_help, web_help
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
@click.group()
|
|
@@ -27,7 +26,6 @@ def store():
|
|
|
27
26
|
pass
|
|
28
27
|
|
|
29
28
|
|
|
30
|
-
store.add_command(rds_send_store, "rds-send-store")
|
|
31
29
|
store.add_command(reset, "reset")
|
|
32
30
|
store.add_command(list_tables, "list-tables")
|
|
33
31
|
store.add_command(load_csv_folder, "load-csv-folder")
|
|
@@ -35,3 +33,4 @@ store.add_command(load_from_singlestore_command, "load-from-singlestore")
|
|
|
35
33
|
store.add_command(dump_to_postgresql, "dump-to-postgresql")
|
|
36
34
|
store.add_command(dump_to_s3, "dump-to-s3")
|
|
37
35
|
store.add_command(dump_to_azure, "dump-to-azure")
|
|
36
|
+
store.add_command(output, "output")
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# API initialization messages
|
|
2
|
+
dataset_api_initialized: "Initialized DatasetApi"
|
|
3
|
+
organization_api_initialized: "Initialized OrganizationApi"
|
|
4
|
+
run_api_initialized: "Initialized RunApi"
|
|
5
|
+
runner_api_initialized: "Initialized RunnerApi"
|
|
6
|
+
solution_api_initialized: "Initialized SolutionApi"
|
|
7
|
+
meta_api_initialized: "Initialized MetaApi"
|
|
8
|
+
workspace_api_initialized: "Initialized WorkspaceApi"
|
|
@@ -35,20 +35,6 @@ adt_twins_found: "Found {count} digital twins"
|
|
|
35
35
|
adt_querying_relations: "Querying relationships"
|
|
36
36
|
adt_relations_found: "Found {count} relationships"
|
|
37
37
|
|
|
38
|
-
# TwinGraph specific
|
|
39
|
-
twingraph_downloading: "Downloading TwinGraph dataset (organization: {organization_id}, dataset: {dataset_id})"
|
|
40
|
-
twingraph_querying_nodes: "Querying TwinGraph nodes for dataset {dataset_id}"
|
|
41
|
-
twingraph_nodes_found: "Found {count} nodes in TwinGraph"
|
|
42
|
-
twingraph_querying_edges: "Querying TwinGraph edges for dataset {dataset_id}"
|
|
43
|
-
twingraph_edges_found: "Found {count} edges in TwinGraph"
|
|
44
|
-
|
|
45
|
-
# Legacy TwinGraph specific
|
|
46
|
-
legacy_twingraph_downloading: "Downloading legacy TwinGraph dataset (organization: {organization_id}, cache: {cache_name})"
|
|
47
|
-
legacy_twingraph_querying_nodes: "Querying legacy TwinGraph nodes for cache {cache_name}"
|
|
48
|
-
legacy_twingraph_nodes_found: "Found {count} nodes in legacy TwinGraph"
|
|
49
|
-
legacy_twingraph_querying_relations: "Querying legacy TwinGraph relationships for cache {cache_name}"
|
|
50
|
-
legacy_twingraph_relations_found: "Found {count} relationships in legacy TwinGraph"
|
|
51
|
-
|
|
52
38
|
# File specific
|
|
53
39
|
file_downloading: "Downloading file dataset (organization: {organization_id}, workspace: {workspace_id}, file: {file_name})"
|
|
54
40
|
listing_workspace_files: "Listing workspace files"
|
|
@@ -66,3 +52,7 @@ processing_json: "Processing JSON file: {file_name}"
|
|
|
66
52
|
json_processed: "Processed JSON file {file_name} with {items} items"
|
|
67
53
|
processing_text: "Processing text file: {file_name}"
|
|
68
54
|
text_processed: "Processed text file {file_name} with {lines} lines"
|
|
55
|
+
|
|
56
|
+
# Dataset API operations
|
|
57
|
+
part_downloaded: "Downloaded part {part_name} to {file_path}"
|
|
58
|
+
dataset_created: "Created dataset {dataset_id}"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
requirements: "Not a valid interface, need to be implemented for a specific service"
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
send:
|
|
2
|
+
error: "Class {interface_name} was not able to send data"
|
|
3
|
+
delete:
|
|
4
|
+
error: "Class {interface_name} was not able to delete data"
|
|
5
|
+
requirements: "Class {interface_name} has to following requirements : {requirements}"
|
|
6
|
+
no_targets: "No valid interface was found"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cosmotech_acceleration_library
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: Acceleration libraries for CosmoTech cloud based solution development
|
|
5
5
|
Author-email: Cosmo Tech <platform@cosmotech.com>
|
|
6
6
|
Project-URL: Homepage, https://www.cosmotech.com
|
|
@@ -15,21 +15,21 @@ Requires-Dist: azure-kusto-data~=4.4.1
|
|
|
15
15
|
Requires-Dist: azure-kusto-ingest~=4.4.1
|
|
16
16
|
Requires-Dist: tenacity~=8.3.0
|
|
17
17
|
Requires-Dist: python-keycloak~=4.7.3
|
|
18
|
-
Requires-Dist: cosmotech-api~=
|
|
18
|
+
Requires-Dist: cosmotech-api~=5.0.0rc1
|
|
19
19
|
Requires-Dist: boto3~=1.35.19
|
|
20
20
|
Requires-Dist: requests~=2.32.3
|
|
21
21
|
Requires-Dist: singlestoredb~=1.10.0
|
|
22
22
|
Requires-Dist: cosmotech-run-orchestrator~=2.0.0
|
|
23
23
|
Requires-Dist: pyarrow~=20.0.0
|
|
24
|
-
Requires-Dist: adbc-driver-manager~=1.
|
|
25
|
-
Requires-Dist: adbc-driver-sqlite~=1.
|
|
26
|
-
Requires-Dist: adbc-driver-postgresql~=1.
|
|
24
|
+
Requires-Dist: adbc-driver-manager~=1.7.0
|
|
25
|
+
Requires-Dist: adbc-driver-sqlite~=1.7.0
|
|
26
|
+
Requires-Dist: adbc-driver-postgresql~=1.7.0
|
|
27
27
|
Requires-Dist: click~=8.1.7
|
|
28
28
|
Requires-Dist: rich-click~=1.7.3
|
|
29
29
|
Requires-Dist: click-log~=0.4.0
|
|
30
30
|
Requires-Dist: tqdm~=4.67.1
|
|
31
31
|
Requires-Dist: openpyxl~=3.1
|
|
32
|
-
Requires-Dist: pandas~=2.
|
|
32
|
+
Requires-Dist: pandas~=2.3
|
|
33
33
|
Requires-Dist: python-dateutil~=2.8
|
|
34
34
|
Requires-Dist: rich~=13.7
|
|
35
35
|
Requires-Dist: setuptools
|
|
@@ -51,13 +51,12 @@ Provides-Extra: test
|
|
|
51
51
|
Requires-Dist: pytest; extra == "test"
|
|
52
52
|
Requires-Dist: pytest-docker; extra == "test"
|
|
53
53
|
Requires-Dist: pytest-cov; extra == "test"
|
|
54
|
-
Provides-Extra: extra
|
|
55
|
-
Requires-Dist: pandas~=2.2.2; extra == "extra"
|
|
56
54
|
Provides-Extra: dev
|
|
57
55
|
Requires-Dist: black~=24.3.0; extra == "dev"
|
|
58
56
|
Requires-Dist: pre-commit~=3.3.2; extra == "dev"
|
|
57
|
+
Requires-Dist: isort~=7.0.0; extra == "dev"
|
|
59
58
|
Provides-Extra: all
|
|
60
|
-
Requires-Dist: CosmoTech_Acceleration_Library[dev,doc,
|
|
59
|
+
Requires-Dist: CosmoTech_Acceleration_Library[dev,doc,test]; extra == "all"
|
|
61
60
|
Dynamic: license-file
|
|
62
61
|
|
|
63
62
|
# CosmoTech-Acceleration-Library (CoAL)
|