cosmotech-acceleration-library 1.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 +8 -0
- cosmotech/coal/aws/__init__.py +23 -0
- cosmotech/coal/aws/s3.py +235 -0
- cosmotech/coal/azure/__init__.py +23 -0
- cosmotech/coal/azure/adx/__init__.py +26 -0
- cosmotech/coal/azure/adx/auth.py +125 -0
- cosmotech/coal/azure/adx/ingestion.py +329 -0
- cosmotech/coal/azure/adx/query.py +56 -0
- cosmotech/coal/azure/adx/runner.py +217 -0
- cosmotech/coal/azure/adx/store.py +255 -0
- cosmotech/coal/azure/adx/tables.py +118 -0
- cosmotech/coal/azure/adx/utils.py +71 -0
- cosmotech/coal/azure/blob.py +109 -0
- cosmotech/coal/azure/functions.py +72 -0
- cosmotech/coal/azure/storage.py +74 -0
- cosmotech/coal/cosmotech_api/__init__.py +36 -0
- cosmotech/coal/cosmotech_api/connection.py +96 -0
- cosmotech/coal/cosmotech_api/dataset/__init__.py +26 -0
- cosmotech/coal/cosmotech_api/dataset/converters.py +164 -0
- cosmotech/coal/cosmotech_api/dataset/download/__init__.py +19 -0
- cosmotech/coal/cosmotech_api/dataset/download/adt.py +119 -0
- cosmotech/coal/cosmotech_api/dataset/download/common.py +140 -0
- cosmotech/coal/cosmotech_api/dataset/download/file.py +216 -0
- cosmotech/coal/cosmotech_api/dataset/download/twingraph.py +188 -0
- cosmotech/coal/cosmotech_api/dataset/utils.py +132 -0
- cosmotech/coal/cosmotech_api/parameters.py +48 -0
- cosmotech/coal/cosmotech_api/run.py +25 -0
- cosmotech/coal/cosmotech_api/run_data.py +173 -0
- cosmotech/coal/cosmotech_api/run_template.py +108 -0
- cosmotech/coal/cosmotech_api/runner/__init__.py +28 -0
- cosmotech/coal/cosmotech_api/runner/data.py +38 -0
- cosmotech/coal/cosmotech_api/runner/datasets.py +364 -0
- cosmotech/coal/cosmotech_api/runner/download.py +146 -0
- cosmotech/coal/cosmotech_api/runner/metadata.py +42 -0
- cosmotech/coal/cosmotech_api/runner/parameters.py +157 -0
- cosmotech/coal/cosmotech_api/twin_data_layer.py +512 -0
- cosmotech/coal/cosmotech_api/workspace.py +127 -0
- cosmotech/coal/csm/__init__.py +6 -0
- cosmotech/coal/csm/engine/__init__.py +47 -0
- cosmotech/coal/postgresql/__init__.py +22 -0
- cosmotech/coal/postgresql/runner.py +93 -0
- cosmotech/coal/postgresql/store.py +98 -0
- cosmotech/coal/singlestore/__init__.py +17 -0
- cosmotech/coal/singlestore/store.py +100 -0
- cosmotech/coal/store/__init__.py +42 -0
- cosmotech/coal/store/csv.py +44 -0
- cosmotech/coal/store/native_python.py +25 -0
- cosmotech/coal/store/pandas.py +26 -0
- cosmotech/coal/store/pyarrow.py +23 -0
- cosmotech/coal/store/store.py +79 -0
- cosmotech/coal/utils/__init__.py +18 -0
- cosmotech/coal/utils/api.py +68 -0
- cosmotech/coal/utils/logger.py +10 -0
- cosmotech/coal/utils/postgresql.py +236 -0
- cosmotech/csm_data/__init__.py +6 -0
- cosmotech/csm_data/commands/__init__.py +6 -0
- cosmotech/csm_data/commands/adx_send_data.py +92 -0
- cosmotech/csm_data/commands/adx_send_runnerdata.py +119 -0
- cosmotech/csm_data/commands/api/__init__.py +6 -0
- cosmotech/csm_data/commands/api/api.py +50 -0
- cosmotech/csm_data/commands/api/postgres_send_runner_metadata.py +119 -0
- cosmotech/csm_data/commands/api/rds_load_csv.py +90 -0
- cosmotech/csm_data/commands/api/rds_send_csv.py +74 -0
- cosmotech/csm_data/commands/api/rds_send_store.py +74 -0
- cosmotech/csm_data/commands/api/run_load_data.py +120 -0
- cosmotech/csm_data/commands/api/runtemplate_load_handler.py +66 -0
- cosmotech/csm_data/commands/api/tdl_load_files.py +76 -0
- cosmotech/csm_data/commands/api/tdl_send_files.py +82 -0
- cosmotech/csm_data/commands/api/wsf_load_file.py +66 -0
- cosmotech/csm_data/commands/api/wsf_send_file.py +68 -0
- cosmotech/csm_data/commands/az_storage_upload.py +76 -0
- cosmotech/csm_data/commands/s3_bucket_delete.py +107 -0
- cosmotech/csm_data/commands/s3_bucket_download.py +118 -0
- cosmotech/csm_data/commands/s3_bucket_upload.py +128 -0
- cosmotech/csm_data/commands/store/__init__.py +6 -0
- cosmotech/csm_data/commands/store/dump_to_azure.py +120 -0
- cosmotech/csm_data/commands/store/dump_to_postgresql.py +107 -0
- cosmotech/csm_data/commands/store/dump_to_s3.py +169 -0
- cosmotech/csm_data/commands/store/list_tables.py +48 -0
- cosmotech/csm_data/commands/store/load_csv_folder.py +43 -0
- cosmotech/csm_data/commands/store/load_from_singlestore.py +96 -0
- cosmotech/csm_data/commands/store/reset.py +31 -0
- cosmotech/csm_data/commands/store/store.py +37 -0
- cosmotech/csm_data/main.py +57 -0
- cosmotech/csm_data/utils/__init__.py +6 -0
- cosmotech/csm_data/utils/click.py +18 -0
- cosmotech/csm_data/utils/decorators.py +75 -0
- cosmotech/orchestrator_plugins/csm-data/__init__.py +11 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/postgres_send_runner_metadata.json +40 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/rds_load_csv.json +27 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/rds_send_csv.json +27 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/rds_send_store.json +27 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/run_load_data.json +30 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/runtemplate_load_handler.json +27 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/tdl_load_files.json +32 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/tdl_send_files.json +27 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/try_api_connection.json +9 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/wsf_load_file.json +36 -0
- cosmotech/orchestrator_plugins/csm-data/templates/api/wsf_send_file.json +36 -0
- cosmotech/orchestrator_plugins/csm-data/templates/main/adx_send_runnerdata.json +29 -0
- cosmotech/orchestrator_plugins/csm-data/templates/main/az_storage_upload.json +25 -0
- cosmotech/orchestrator_plugins/csm-data/templates/main/s3_bucket_delete.json +31 -0
- cosmotech/orchestrator_plugins/csm-data/templates/main/s3_bucket_download.json +34 -0
- cosmotech/orchestrator_plugins/csm-data/templates/main/s3_bucket_upload.json +35 -0
- cosmotech/orchestrator_plugins/csm-data/templates/store/store_dump_to_azure.json +35 -0
- cosmotech/orchestrator_plugins/csm-data/templates/store/store_dump_to_postgresql.json +34 -0
- cosmotech/orchestrator_plugins/csm-data/templates/store/store_dump_to_s3.json +36 -0
- cosmotech/orchestrator_plugins/csm-data/templates/store/store_list_tables.json +15 -0
- cosmotech/orchestrator_plugins/csm-data/templates/store/store_load_csv_folder.json +18 -0
- cosmotech/orchestrator_plugins/csm-data/templates/store/store_load_from_singlestore.json +34 -0
- cosmotech/orchestrator_plugins/csm-data/templates/store/store_reset.json +15 -0
- cosmotech/translation/coal/__init__.py +6 -0
- cosmotech/translation/coal/en-US/coal/common/data_transfer.yml +6 -0
- cosmotech/translation/coal/en-US/coal/common/errors.yml +9 -0
- cosmotech/translation/coal/en-US/coal/common/file_operations.yml +6 -0
- cosmotech/translation/coal/en-US/coal/common/progress.yml +6 -0
- cosmotech/translation/coal/en-US/coal/common/timing.yml +5 -0
- cosmotech/translation/coal/en-US/coal/common/validation.yml +8 -0
- cosmotech/translation/coal/en-US/coal/cosmotech_api/connection.yml +10 -0
- cosmotech/translation/coal/en-US/coal/cosmotech_api/run_data.yml +2 -0
- cosmotech/translation/coal/en-US/coal/cosmotech_api/run_template.yml +8 -0
- cosmotech/translation/coal/en-US/coal/cosmotech_api/runner.yml +16 -0
- cosmotech/translation/coal/en-US/coal/cosmotech_api/solution.yml +5 -0
- cosmotech/translation/coal/en-US/coal/cosmotech_api/workspace.yml +7 -0
- cosmotech/translation/coal/en-US/coal/services/adx.yml +59 -0
- cosmotech/translation/coal/en-US/coal/services/api.yml +8 -0
- cosmotech/translation/coal/en-US/coal/services/azure_storage.yml +14 -0
- cosmotech/translation/coal/en-US/coal/services/database.yml +19 -0
- cosmotech/translation/coal/en-US/coal/services/dataset.yml +68 -0
- cosmotech/translation/coal/en-US/coal/services/postgresql.yml +28 -0
- cosmotech/translation/coal/en-US/coal/services/s3.yml +9 -0
- cosmotech/translation/coal/en-US/coal/solution.yml +3 -0
- cosmotech/translation/coal/en-US/coal/web.yml +2 -0
- cosmotech/translation/csm_data/__init__.py +6 -0
- cosmotech/translation/csm_data/en-US/csm-data.yml +434 -0
- cosmotech_acceleration_library-1.0.0.dist-info/METADATA +255 -0
- cosmotech_acceleration_library-1.0.0.dist-info/RECORD +141 -0
- cosmotech_acceleration_library-1.0.0.dist-info/WHEEL +5 -0
- cosmotech_acceleration_library-1.0.0.dist-info/entry_points.txt +2 -0
- cosmotech_acceleration_library-1.0.0.dist-info/licenses/LICENSE +17 -0
- cosmotech_acceleration_library-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import click_log
|
|
8
|
+
|
|
9
|
+
from cosmotech.coal import __version__
|
|
10
|
+
from cosmotech.csm_data.commands.adx_send_runnerdata import adx_send_runnerdata
|
|
11
|
+
from cosmotech.csm_data.commands.api.api import api
|
|
12
|
+
from cosmotech.csm_data.commands.az_storage_upload import az_storage_upload
|
|
13
|
+
from cosmotech.csm_data.commands.s3_bucket_download import s3_bucket_download
|
|
14
|
+
from cosmotech.csm_data.commands.s3_bucket_upload import s3_bucket_upload
|
|
15
|
+
from cosmotech.csm_data.commands.s3_bucket_delete import s3_bucket_delete
|
|
16
|
+
from cosmotech.csm_data.commands.adx_send_data import adx_send_data
|
|
17
|
+
from cosmotech.csm_data.commands.store.store import store
|
|
18
|
+
from cosmotech.csm_data.utils.click import click
|
|
19
|
+
from cosmotech.csm_data.utils.decorators import translate_help, web_help
|
|
20
|
+
from cosmotech.coal.utils.logger import LOGGER
|
|
21
|
+
from cosmotech.orchestrator.utils.translate import T
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def print_version(ctx, param, value):
|
|
25
|
+
if not value or ctx.resilient_parsing:
|
|
26
|
+
return
|
|
27
|
+
click.echo(f"Cosmo Tech Data Interface {__version__}")
|
|
28
|
+
ctx.exit()
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@click.group("csm-data")
|
|
32
|
+
@click_log.simple_verbosity_option(LOGGER, "--log-level", envvar="LOG_LEVEL", show_envvar=True)
|
|
33
|
+
@click.option(
|
|
34
|
+
"--version",
|
|
35
|
+
is_flag=True,
|
|
36
|
+
callback=print_version,
|
|
37
|
+
expose_value=False,
|
|
38
|
+
is_eager=True,
|
|
39
|
+
help="Print version number and return.",
|
|
40
|
+
)
|
|
41
|
+
@web_help("csm-data")
|
|
42
|
+
@translate_help("csm-data.commands.main.description")
|
|
43
|
+
def main():
|
|
44
|
+
pass
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
main.add_command(api, "api")
|
|
48
|
+
main.add_command(store, "store")
|
|
49
|
+
main.add_command(s3_bucket_download, "s3-bucket-download")
|
|
50
|
+
main.add_command(s3_bucket_upload, "s3-bucket-upload")
|
|
51
|
+
main.add_command(s3_bucket_delete, "s3-bucket-delete")
|
|
52
|
+
main.add_command(adx_send_runnerdata, "adx-send-runnerdata")
|
|
53
|
+
main.add_command(az_storage_upload, "az-storage-upload")
|
|
54
|
+
main.add_command(adx_send_data, "adx-send-data")
|
|
55
|
+
|
|
56
|
+
if __name__ == "__main__":
|
|
57
|
+
main()
|
|
@@ -0,0 +1,6 @@
|
|
|
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.
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import rich_click as click
|
|
9
|
+
|
|
10
|
+
click.rich_click.USE_MARKDOWN = True
|
|
11
|
+
click.rich_click.USE_RICH_MARKUP = True
|
|
12
|
+
click.rich_click.SHOW_ARGUMENTS = True
|
|
13
|
+
click.rich_click.GROUP_ARGUMENTS_OPTIONS = False
|
|
14
|
+
click.rich_click.STYLE_OPTION_ENVVAR = "yellow"
|
|
15
|
+
click.rich_click.ENVVAR_STRING = "ENV: {}"
|
|
16
|
+
click.rich_click.STYLE_OPTION_DEFAULT = "dim yellow"
|
|
17
|
+
click.rich_click.DEFAULT_STRING = "DEFAULT: {}"
|
|
18
|
+
click.rich_click.OPTIONS_PANEL_TITLE = "OPTIONS"
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import os
|
|
9
|
+
import webbrowser
|
|
10
|
+
from functools import wraps
|
|
11
|
+
|
|
12
|
+
from cosmotech.coal.utils import WEB_DOCUMENTATION_ROOT
|
|
13
|
+
from cosmotech.csm_data.utils.click import click
|
|
14
|
+
from cosmotech.coal.utils.logger import LOGGER
|
|
15
|
+
from cosmotech.orchestrator.utils.translate import T
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def translate_help(translation_key):
|
|
19
|
+
"""Decorator that sets the function's __doc__ to the translated help text."""
|
|
20
|
+
|
|
21
|
+
def wrap_function(func):
|
|
22
|
+
@wraps(func)
|
|
23
|
+
def wrapper(*args, **kwargs):
|
|
24
|
+
return func(*args, **kwargs)
|
|
25
|
+
|
|
26
|
+
wrapper.__doc__ = T(translation_key)
|
|
27
|
+
return wrapper
|
|
28
|
+
|
|
29
|
+
return wrap_function
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def require_env(envvar, envvar_desc):
|
|
33
|
+
def wrap_function(func):
|
|
34
|
+
@wraps(func)
|
|
35
|
+
def f(*args, **kwargs):
|
|
36
|
+
if envvar not in os.environ:
|
|
37
|
+
raise EnvironmentError(T("coal.errors.environment.missing_var").format(envvar=envvar))
|
|
38
|
+
return func(*args, **kwargs)
|
|
39
|
+
|
|
40
|
+
f.__doc__ = "\n".join([f.__doc__ or "", f"Requires env var `{envvar:<15}` *{envvar_desc}* "])
|
|
41
|
+
return f
|
|
42
|
+
|
|
43
|
+
return wrap_function
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def web_help(effective_target="", base_url=WEB_DOCUMENTATION_ROOT):
|
|
47
|
+
documentation_url = base_url + effective_target
|
|
48
|
+
|
|
49
|
+
def open_documentation(ctx: click.Context, param, value):
|
|
50
|
+
if value:
|
|
51
|
+
if not webbrowser.open(documentation_url):
|
|
52
|
+
LOGGER.warning(T("coal.web.failed_open").format(url=documentation_url))
|
|
53
|
+
else:
|
|
54
|
+
LOGGER.info(T("coal.web.opened").format(url=documentation_url))
|
|
55
|
+
ctx.exit(0)
|
|
56
|
+
|
|
57
|
+
def wrap_function(func):
|
|
58
|
+
@wraps(func)
|
|
59
|
+
@click.option(
|
|
60
|
+
"--web-help",
|
|
61
|
+
is_flag=True,
|
|
62
|
+
help="Open the web documentation",
|
|
63
|
+
is_eager=True,
|
|
64
|
+
callback=open_documentation,
|
|
65
|
+
)
|
|
66
|
+
def f(*args, **kwargs):
|
|
67
|
+
if kwargs.get("web_help"):
|
|
68
|
+
return
|
|
69
|
+
if "web_help" in kwargs:
|
|
70
|
+
del kwargs["web_help"]
|
|
71
|
+
return func(*args, **kwargs)
|
|
72
|
+
|
|
73
|
+
return f
|
|
74
|
+
|
|
75
|
+
return wrap_function
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
from cosmotech.orchestrator.templates.plugin import Plugin
|
|
8
|
+
|
|
9
|
+
plugin = Plugin(__file__)
|
|
10
|
+
|
|
11
|
+
__all__ = [plugin]
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data postgres-send-runner-metadata",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"api",
|
|
6
|
+
"postgres-send-runner-metadata"
|
|
7
|
+
],
|
|
8
|
+
"description": "Use csm-data to send runner metadata to a PostgreSQL database",
|
|
9
|
+
"useSystemEnvironment": true,
|
|
10
|
+
"environment": {
|
|
11
|
+
"CSM_ORGANIZATION_ID": {
|
|
12
|
+
"description": "An organization id for the Cosmo Tech API"
|
|
13
|
+
},
|
|
14
|
+
"CSM_WORKSPACE_ID": {
|
|
15
|
+
"description": "A workspace id for the Cosmo Tech API"
|
|
16
|
+
},
|
|
17
|
+
"CSM_RUNNER_ID": {
|
|
18
|
+
"description": "A runner id for the Cosmo Tech API"
|
|
19
|
+
},
|
|
20
|
+
"POSTGRES_HOST_URI": {
|
|
21
|
+
"description": "PostgreSQL host URI"
|
|
22
|
+
},
|
|
23
|
+
"POSTGRES_HOST_PORT": {
|
|
24
|
+
"description": "PostgreSQL host port",
|
|
25
|
+
"defaultValue": "5432"
|
|
26
|
+
},
|
|
27
|
+
"POSTGRES_DB_NAME": {
|
|
28
|
+
"description": "PostgreSQL database name"
|
|
29
|
+
},
|
|
30
|
+
"POSTGRES_DB_SCHEMA": {
|
|
31
|
+
"description": "PostgreSQL database schema"
|
|
32
|
+
},
|
|
33
|
+
"POSTGRES_USER_NAME": {
|
|
34
|
+
"description": "PostgreSQL user name"
|
|
35
|
+
},
|
|
36
|
+
"POSTGRES_USER_PASSWORD": {
|
|
37
|
+
"description": "PostgreSQL user password"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data rds-load-csv",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"api",
|
|
6
|
+
"rds-load-csv"
|
|
7
|
+
],
|
|
8
|
+
"description": "Use csm-data to query the results api and store it in a csv file, you need to add your arguments for filename and query while using this template",
|
|
9
|
+
"useSystemEnvironment": true,
|
|
10
|
+
"environment": {
|
|
11
|
+
"CSM_DATASET_ABSOLUTE_PATH": {
|
|
12
|
+
"description": "Target folder in which to write the resulting CSV file"
|
|
13
|
+
},
|
|
14
|
+
"CSM_ORGANIZATION_ID": {
|
|
15
|
+
"description": "An organization id for the Cosmo Tech API"
|
|
16
|
+
},
|
|
17
|
+
"CSM_WORKSPACE_ID": {
|
|
18
|
+
"description": "A workspace id for the Cosmo Tech API"
|
|
19
|
+
},
|
|
20
|
+
"CSM_RUNNER_ID": {
|
|
21
|
+
"description": "A runner id for the Cosmo Tech API"
|
|
22
|
+
},
|
|
23
|
+
"CSM_RUN_ID": {
|
|
24
|
+
"description": "A run id for the Cosmo Tech API"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data rds-send-csv",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"api",
|
|
6
|
+
"rds-send-csv"
|
|
7
|
+
],
|
|
8
|
+
"description": "Use csm-data to send the content of all csv of a folder to the Cosmo Tech API as custom results data",
|
|
9
|
+
"useSystemEnvironment": true,
|
|
10
|
+
"environment": {
|
|
11
|
+
"CSM_DATASET_ABSOLUTE_PATH": {
|
|
12
|
+
"description": "Target folder in which to find CSV files to send to the Cosmo Tech API"
|
|
13
|
+
},
|
|
14
|
+
"CSM_ORGANIZATION_ID": {
|
|
15
|
+
"description": "An organization id for the Cosmo Tech API"
|
|
16
|
+
},
|
|
17
|
+
"CSM_WORKSPACE_ID": {
|
|
18
|
+
"description": "A workspace id for the Cosmo Tech API"
|
|
19
|
+
},
|
|
20
|
+
"CSM_RUNNER_ID": {
|
|
21
|
+
"description": "A runner id for the Cosmo Tech API"
|
|
22
|
+
},
|
|
23
|
+
"CSM_RUN_ID": {
|
|
24
|
+
"description": "A run id for the Cosmo Tech API"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data rds-send-store",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"api",
|
|
6
|
+
"rds-send-store"
|
|
7
|
+
],
|
|
8
|
+
"description": "Use csm-data to send the content of a store to the Cosmo Tech API as custom results data",
|
|
9
|
+
"useSystemEnvironment": true,
|
|
10
|
+
"environment": {
|
|
11
|
+
"CSM_PARAMETERS_ABSOLUTE_PATH": {
|
|
12
|
+
"description": "Folder containing the store to send to the Cosmo Tech API"
|
|
13
|
+
},
|
|
14
|
+
"CSM_ORGANIZATION_ID": {
|
|
15
|
+
"description": "An organization id for the Cosmo Tech API"
|
|
16
|
+
},
|
|
17
|
+
"CSM_WORKSPACE_ID": {
|
|
18
|
+
"description": "A workspace id for the Cosmo Tech API"
|
|
19
|
+
},
|
|
20
|
+
"CSM_RUNNER_ID": {
|
|
21
|
+
"description": "A runner id for the Cosmo Tech API"
|
|
22
|
+
},
|
|
23
|
+
"CSM_RUN_ID": {
|
|
24
|
+
"description": "A run id for the Cosmo Tech API"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data run-load-data",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"api",
|
|
6
|
+
"run-load-data"
|
|
7
|
+
],
|
|
8
|
+
"description": "Use csm-data to download runner data from the Cosmo Tech API",
|
|
9
|
+
"useSystemEnvironment": true,
|
|
10
|
+
"environment": {
|
|
11
|
+
"CSM_ORGANIZATION_ID": {
|
|
12
|
+
"description": "An organization id for the Cosmo Tech API"
|
|
13
|
+
},
|
|
14
|
+
"CSM_WORKSPACE_ID": {
|
|
15
|
+
"description": "A workspace id for the Cosmo Tech API"
|
|
16
|
+
},
|
|
17
|
+
"CSM_RUNNER_ID": {
|
|
18
|
+
"description": "A runner id for the Cosmo Tech API"
|
|
19
|
+
},
|
|
20
|
+
"CSM_DATASET_ABSOLUTE_PATH": {
|
|
21
|
+
"description": "Target folder in which to write the dataset from the Cosmo Tech API"
|
|
22
|
+
},
|
|
23
|
+
"CSM_PARAMETERS_ABSOLUTE_PATH": {
|
|
24
|
+
"description": "Target folder in which to write the parameters from the Cosmo Tech API"
|
|
25
|
+
},
|
|
26
|
+
"CSM_API_URL": {
|
|
27
|
+
"description": "The URL to a Cosmo Tech API instance"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data runtemplate-load-handler",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"api",
|
|
6
|
+
"runtemplate-load-handler"
|
|
7
|
+
],
|
|
8
|
+
"description": "Use csm-data to load run template handlers from the Cosmo Tech API",
|
|
9
|
+
"useSystemEnvironment": true,
|
|
10
|
+
"environment": {
|
|
11
|
+
"CSM_ORGANIZATION_ID": {
|
|
12
|
+
"description": "An organization id for the Cosmo Tech API"
|
|
13
|
+
},
|
|
14
|
+
"CSM_WORKSPACE_ID": {
|
|
15
|
+
"description": "A workspace id for the Cosmo Tech API"
|
|
16
|
+
},
|
|
17
|
+
"CSM_RUN_TEMPLATE_ID": {
|
|
18
|
+
"description": "A run template id for the Cosmo Tech API"
|
|
19
|
+
},
|
|
20
|
+
"CSM_CONTAINER_MODE": {
|
|
21
|
+
"description": "Comma-separated list of handlers to load"
|
|
22
|
+
},
|
|
23
|
+
"CSM_API_URL": {
|
|
24
|
+
"description": "The URL to a Cosmo Tech API instance"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data tdl-load-files",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"api",
|
|
6
|
+
"tdl-load-files"
|
|
7
|
+
],
|
|
8
|
+
"description": "Use csm-data to query a twingraph and loads all the data from it",
|
|
9
|
+
"useSystemEnvironment": true,
|
|
10
|
+
"environment": {
|
|
11
|
+
"CSM_DATASET_ABSOLUTE_PATH": {
|
|
12
|
+
"description": "Target folder in which to write the resulting CSV files"
|
|
13
|
+
},
|
|
14
|
+
"CSM_API_URL": {
|
|
15
|
+
"description": "The URL to a Cosmo Tech API instance"
|
|
16
|
+
},
|
|
17
|
+
"CSM_ORGANIZATION_ID": {
|
|
18
|
+
"description": "An organization id for the Cosmo Tech API"
|
|
19
|
+
},
|
|
20
|
+
"CSM_WORKSPACE_ID": {
|
|
21
|
+
"description": "A workspace id for the Cosmo Tech API"
|
|
22
|
+
},
|
|
23
|
+
"CSM_SCENARIO_ID": {
|
|
24
|
+
"description": "A scenario id for the Cosmo Tech API",
|
|
25
|
+
"optional": true
|
|
26
|
+
},
|
|
27
|
+
"CSM_RUNNER_ID": {
|
|
28
|
+
"description": "A runner id for the Cosmo Tech API",
|
|
29
|
+
"optional": true
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data tdl-send-files",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"api",
|
|
6
|
+
"tdl-send-files"
|
|
7
|
+
],
|
|
8
|
+
"description": "Use csm-data to send a folder content to the Cosmo Tech API as a Twin Graph",
|
|
9
|
+
"useSystemEnvironment": true,
|
|
10
|
+
"environment": {
|
|
11
|
+
"CSM_DATASET_ABSOLUTE_PATH": {
|
|
12
|
+
"description": "Folder containing the files to send to the API"
|
|
13
|
+
},
|
|
14
|
+
"CSM_API_URL": {
|
|
15
|
+
"description": "The URL to a Cosmo Tech API instance"
|
|
16
|
+
},
|
|
17
|
+
"CSM_ORGANIZATION_ID": {
|
|
18
|
+
"description": "An organization id for the Cosmo Tech API"
|
|
19
|
+
},
|
|
20
|
+
"CSM_WORKSPACE_ID": {
|
|
21
|
+
"description": "A workspace id for the Cosmo Tech API"
|
|
22
|
+
},
|
|
23
|
+
"CSM_RUNNER_ID": {
|
|
24
|
+
"description": "A runner id for the Cosmo Tech API"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data wsf-load-file",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"api",
|
|
6
|
+
"wsf-load-file"
|
|
7
|
+
],
|
|
8
|
+
"description": "Use csm-data to load files from a workspace inside the API",
|
|
9
|
+
"useSystemEnvironment": true,
|
|
10
|
+
"environment": {
|
|
11
|
+
"CSM_DATASET_ABSOLUTE_PATH": {
|
|
12
|
+
"description": "Target folder in which to write the file from the Cosmo Tech API"
|
|
13
|
+
},
|
|
14
|
+
"CSM_API_URL": {
|
|
15
|
+
"description": "The URL to a Cosmo Tech API instance"
|
|
16
|
+
},
|
|
17
|
+
"CSM_API_KEY": {
|
|
18
|
+
"description": "An API key defined during the setup of the API instance granting access to the Run/data/send endpoint",
|
|
19
|
+
"optional": true
|
|
20
|
+
},
|
|
21
|
+
"CSM_API_KEY_HEADER": {
|
|
22
|
+
"description": "The header key required to use the API key previously defined",
|
|
23
|
+
"defaultValue": "X-CSM-API-KEY",
|
|
24
|
+
"optional": true
|
|
25
|
+
},
|
|
26
|
+
"CSM_ORGANIZATION_ID": {
|
|
27
|
+
"description": "An organization id for the Cosmo Tech API"
|
|
28
|
+
},
|
|
29
|
+
"CSM_WORKSPACE_ID": {
|
|
30
|
+
"description": "A workspace id for the Cosmo Tech API"
|
|
31
|
+
},
|
|
32
|
+
"CSM_WORKSPACE_PATH": {
|
|
33
|
+
"description": "Path inside the workspace to load (end with '/' for a folder)"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data wsf-send-file",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"api",
|
|
6
|
+
"wsf-send-file"
|
|
7
|
+
],
|
|
8
|
+
"description": "Use csm-data to send a file to a workspace inside the API",
|
|
9
|
+
"useSystemEnvironment": true,
|
|
10
|
+
"environment": {
|
|
11
|
+
"CSM_FILE_PATH": {
|
|
12
|
+
"description": "Path to the file to send as a workspace file"
|
|
13
|
+
},
|
|
14
|
+
"CSM_API_URL": {
|
|
15
|
+
"description": "The URL to a Cosmo Tech API instance"
|
|
16
|
+
},
|
|
17
|
+
"CSM_API_KEY": {
|
|
18
|
+
"description": "An API key defined during the setup of the API instance granting access to the Run/data/send endpoint",
|
|
19
|
+
"optional": true
|
|
20
|
+
},
|
|
21
|
+
"CSM_API_KEY_HEADER": {
|
|
22
|
+
"description": "The header key required to use the API key previously defined",
|
|
23
|
+
"defaultValue": "X-CSM-API-KEY",
|
|
24
|
+
"optional": true
|
|
25
|
+
},
|
|
26
|
+
"CSM_ORGANIZATION_ID": {
|
|
27
|
+
"description": "An organization id for the Cosmo Tech API"
|
|
28
|
+
},
|
|
29
|
+
"CSM_WORKSPACE_ID": {
|
|
30
|
+
"description": "A workspace id for the Cosmo Tech API"
|
|
31
|
+
},
|
|
32
|
+
"CSM_WORKSPACE_PATH": {
|
|
33
|
+
"description": "Path inside the workspace to store the file (end with '/' for a folder))"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data adx-send-runnerdata",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"adx-send-runnerdata"
|
|
6
|
+
],
|
|
7
|
+
"description": "Use csm-data to send runner data to Azure Data Explorer. Requires a valid Azure Data Explorer configuration, here using environment variables.",
|
|
8
|
+
"useSystemEnvironment": true,
|
|
9
|
+
"environment": {
|
|
10
|
+
"CSM_DATASET_ABSOLUTE_PATH": {
|
|
11
|
+
"description": "Target folder containing dataset files to send to ADX"
|
|
12
|
+
},
|
|
13
|
+
"CSM_PARAMETERS_ABSOLUTE_PATH": {
|
|
14
|
+
"description": "Folder containing parameter files to send to ADX"
|
|
15
|
+
},
|
|
16
|
+
"CSM_RUNNER_ID": {
|
|
17
|
+
"description": "Unique identifier for the runner"
|
|
18
|
+
},
|
|
19
|
+
"AZURE_DATA_EXPLORER_RESOURCE_URI": {
|
|
20
|
+
"description": "URI required to connect to Azure Data Explorer"
|
|
21
|
+
},
|
|
22
|
+
"AZURE_DATA_EXPLORER_RESOURCE_INGEST_URI": {
|
|
23
|
+
"description": "Ingestion URI for Azure Data Explorer"
|
|
24
|
+
},
|
|
25
|
+
"AZURE_DATA_EXPLORER_DATABASE_NAME": {
|
|
26
|
+
"description": "Name of the database in Azure Data Explorer"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data az-storage-upload",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"az-storage-upload"
|
|
6
|
+
],
|
|
7
|
+
"description": "Use csm-data to upload files from a folder to Azure Blob Storage. Requires a valid Azure Storage configuration, here using environment variables.",
|
|
8
|
+
"useSystemEnvironment": true,
|
|
9
|
+
"environment": {
|
|
10
|
+
"CSM_DATASET_ABSOLUTE_PATH": {
|
|
11
|
+
"description": "Source folder containing files to upload to Azure Blob Storage"
|
|
12
|
+
},
|
|
13
|
+
"AZURE_STORAGE_BLOB_NAME": {
|
|
14
|
+
"description": "Name of the blob container in Azure Storage"
|
|
15
|
+
},
|
|
16
|
+
"CSM_DATA_BLOB_PREFIX": {
|
|
17
|
+
"description": "Prefix to add to uploaded files",
|
|
18
|
+
"optional": true,
|
|
19
|
+
"defaultValue": ""
|
|
20
|
+
},
|
|
21
|
+
"AZURE_STORAGE_SAS_URL": {
|
|
22
|
+
"description": "SAS URL for Azure Storage access"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data s3-bucket-delete",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"s3-bucket-delete"
|
|
6
|
+
],
|
|
7
|
+
"description": "Use csm-data to delete objects from an S3 bucket with an optional prefix filter. Requires a valid S3 configuration, here using environment variables.",
|
|
8
|
+
"useSystemEnvironment": true,
|
|
9
|
+
"environment": {
|
|
10
|
+
"CSM_DATA_BUCKET_NAME": {
|
|
11
|
+
"description": "Name of the bucket in the S3 instance to delete from"
|
|
12
|
+
},
|
|
13
|
+
"CSM_DATA_BUCKET_PREFIX": {
|
|
14
|
+
"description": "Prefix to filter objects to delete",
|
|
15
|
+
"optional": true
|
|
16
|
+
},
|
|
17
|
+
"AWS_ENDPOINT_URL": {
|
|
18
|
+
"description": "URI required to connect to a given S3 instance"
|
|
19
|
+
},
|
|
20
|
+
"AWS_ACCESS_KEY_ID": {
|
|
21
|
+
"description": "User access key required to authenticate to the S3 instance"
|
|
22
|
+
},
|
|
23
|
+
"AWS_SECRET_ACCESS_KEY": {
|
|
24
|
+
"description": "User secret required to authenticate to the S3 instance"
|
|
25
|
+
},
|
|
26
|
+
"CSM_S3_CA_BUNDLE": {
|
|
27
|
+
"description": "Path to SSL certificate bundle",
|
|
28
|
+
"optional": true
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data s3-bucket-download",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"s3-bucket-download"
|
|
6
|
+
],
|
|
7
|
+
"description": "Use csm-data to connect to an S3 bucket and download its content. Requires a valid S3 configuration, here using environment variables.",
|
|
8
|
+
"useSystemEnvironment": true,
|
|
9
|
+
"environment": {
|
|
10
|
+
"CSM_DATASET_ABSOLUTE_PATH": {
|
|
11
|
+
"description": "Target folder in which to write the content of the S3 Bucket"
|
|
12
|
+
},
|
|
13
|
+
"CSM_DATA_BUCKET_NAME": {
|
|
14
|
+
"description": "Name of the bucket in the S3 instance to download"
|
|
15
|
+
},
|
|
16
|
+
"CSM_DATA_BUCKET_PREFIX": {
|
|
17
|
+
"description": "Prefix to filter objects to download",
|
|
18
|
+
"optional": true
|
|
19
|
+
},
|
|
20
|
+
"AWS_ENDPOINT_URL": {
|
|
21
|
+
"description": "URI required to connect to a given S3 instance"
|
|
22
|
+
},
|
|
23
|
+
"AWS_ACCESS_KEY_ID": {
|
|
24
|
+
"description": "User access key required to authenticate to the S3 instance"
|
|
25
|
+
},
|
|
26
|
+
"AWS_SECRET_ACCESS_KEY": {
|
|
27
|
+
"description": "User secret required to authenticate to the S3 instance"
|
|
28
|
+
},
|
|
29
|
+
"CSM_S3_CA_BUNDLE": {
|
|
30
|
+
"description": "Path to SSL certificate bundle",
|
|
31
|
+
"optional": true
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csm-data s3-bucket-upload",
|
|
3
|
+
"command": "csm-data",
|
|
4
|
+
"arguments": [
|
|
5
|
+
"s3-bucket-upload"
|
|
6
|
+
],
|
|
7
|
+
"description": "Use csm-data to upload files from a folder to an S3 bucket. Requires a valid S3 configuration, here using environment variables.",
|
|
8
|
+
"useSystemEnvironment": true,
|
|
9
|
+
"environment": {
|
|
10
|
+
"CSM_DATASET_ABSOLUTE_PATH": {
|
|
11
|
+
"description": "Source folder containing files to upload to S3"
|
|
12
|
+
},
|
|
13
|
+
"CSM_DATA_BUCKET_NAME": {
|
|
14
|
+
"description": "Name of the bucket in the S3 instance to upload to"
|
|
15
|
+
},
|
|
16
|
+
"CSM_DATA_BUCKET_PREFIX": {
|
|
17
|
+
"description": "Prefix to add to uploaded files",
|
|
18
|
+
"optional": true,
|
|
19
|
+
"defaultValue": ""
|
|
20
|
+
},
|
|
21
|
+
"AWS_ENDPOINT_URL": {
|
|
22
|
+
"description": "URI required to connect to a given S3 instance"
|
|
23
|
+
},
|
|
24
|
+
"AWS_ACCESS_KEY_ID": {
|
|
25
|
+
"description": "User access key required to authenticate to the S3 instance"
|
|
26
|
+
},
|
|
27
|
+
"AWS_SECRET_ACCESS_KEY": {
|
|
28
|
+
"description": "User secret required to authenticate to the S3 instance"
|
|
29
|
+
},
|
|
30
|
+
"CSM_S3_CA_BUNDLE": {
|
|
31
|
+
"description": "Path to SSL certificate bundle",
|
|
32
|
+
"optional": true
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|