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.
Files changed (97) hide show
  1. cosmotech/coal/__init__.py +1 -1
  2. cosmotech/coal/aws/__init__.py +1 -9
  3. cosmotech/coal/aws/s3.py +181 -214
  4. cosmotech/coal/azure/adx/auth.py +2 -2
  5. cosmotech/coal/azure/adx/runner.py +13 -14
  6. cosmotech/coal/azure/adx/store.py +5 -86
  7. cosmotech/coal/azure/adx/tables.py +2 -2
  8. cosmotech/coal/azure/blob.py +6 -6
  9. cosmotech/coal/azure/storage.py +3 -3
  10. cosmotech/coal/cosmotech_api/__init__.py +0 -24
  11. cosmotech/coal/cosmotech_api/apis/__init__.py +14 -0
  12. cosmotech/coal/cosmotech_api/apis/dataset.py +103 -0
  13. cosmotech/coal/cosmotech_api/apis/meta.py +25 -0
  14. cosmotech/coal/cosmotech_api/apis/organization.py +24 -0
  15. cosmotech/coal/cosmotech_api/apis/run.py +38 -0
  16. cosmotech/coal/cosmotech_api/apis/runner.py +71 -0
  17. cosmotech/coal/cosmotech_api/apis/solution.py +23 -0
  18. cosmotech/coal/cosmotech_api/apis/workspace.py +108 -0
  19. cosmotech/coal/cosmotech_api/objects/__init__.py +9 -0
  20. cosmotech/coal/cosmotech_api/objects/connection.py +125 -0
  21. cosmotech/coal/cosmotech_api/objects/parameters.py +127 -0
  22. cosmotech/coal/postgresql/runner.py +56 -36
  23. cosmotech/coal/postgresql/store.py +60 -14
  24. cosmotech/coal/postgresql/utils.py +254 -0
  25. cosmotech/coal/store/output/__init__.py +0 -0
  26. cosmotech/coal/store/output/aws_channel.py +73 -0
  27. cosmotech/coal/store/output/az_storage_channel.py +42 -0
  28. cosmotech/coal/store/output/channel_interface.py +23 -0
  29. cosmotech/coal/store/output/channel_spliter.py +55 -0
  30. cosmotech/coal/store/output/postgres_channel.py +40 -0
  31. cosmotech/coal/utils/configuration.py +169 -0
  32. cosmotech/coal/utils/decorator.py +22 -0
  33. cosmotech/csm_data/commands/api/api.py +6 -19
  34. cosmotech/csm_data/commands/api/postgres_send_runner_metadata.py +20 -16
  35. cosmotech/csm_data/commands/api/run_load_data.py +7 -46
  36. cosmotech/csm_data/commands/api/wsf_load_file.py +14 -15
  37. cosmotech/csm_data/commands/api/wsf_send_file.py +12 -13
  38. cosmotech/csm_data/commands/s3_bucket_delete.py +16 -15
  39. cosmotech/csm_data/commands/s3_bucket_download.py +16 -16
  40. cosmotech/csm_data/commands/s3_bucket_upload.py +16 -14
  41. cosmotech/csm_data/commands/store/dump_to_s3.py +18 -16
  42. cosmotech/csm_data/commands/store/output.py +35 -0
  43. cosmotech/csm_data/commands/store/store.py +3 -4
  44. cosmotech/translation/coal/en-US/coal/cosmotech_api/initialization.yml +8 -0
  45. cosmotech/translation/coal/en-US/coal/services/dataset.yml +4 -14
  46. cosmotech/translation/coal/en-US/coal/store/output/data_interface.yml +1 -0
  47. cosmotech/translation/coal/en-US/coal/store/output/split.yml +6 -0
  48. cosmotech/translation/coal/en-US/coal/utils/configuration.yml +2 -0
  49. cosmotech/translation/csm_data/en-US/csm_data/commands/store/output.yml +7 -0
  50. {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/METADATA +8 -9
  51. {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/RECORD +55 -71
  52. cosmotech/coal/azure/functions.py +0 -72
  53. cosmotech/coal/cosmotech_api/connection.py +0 -96
  54. cosmotech/coal/cosmotech_api/dataset/__init__.py +0 -26
  55. cosmotech/coal/cosmotech_api/dataset/converters.py +0 -164
  56. cosmotech/coal/cosmotech_api/dataset/download/__init__.py +0 -19
  57. cosmotech/coal/cosmotech_api/dataset/download/adt.py +0 -119
  58. cosmotech/coal/cosmotech_api/dataset/download/common.py +0 -140
  59. cosmotech/coal/cosmotech_api/dataset/download/file.py +0 -216
  60. cosmotech/coal/cosmotech_api/dataset/download/twingraph.py +0 -188
  61. cosmotech/coal/cosmotech_api/dataset/utils.py +0 -132
  62. cosmotech/coal/cosmotech_api/parameters.py +0 -48
  63. cosmotech/coal/cosmotech_api/run.py +0 -25
  64. cosmotech/coal/cosmotech_api/run_data.py +0 -173
  65. cosmotech/coal/cosmotech_api/run_template.py +0 -108
  66. cosmotech/coal/cosmotech_api/runner/__init__.py +0 -28
  67. cosmotech/coal/cosmotech_api/runner/data.py +0 -38
  68. cosmotech/coal/cosmotech_api/runner/datasets.py +0 -364
  69. cosmotech/coal/cosmotech_api/runner/download.py +0 -146
  70. cosmotech/coal/cosmotech_api/runner/metadata.py +0 -42
  71. cosmotech/coal/cosmotech_api/runner/parameters.py +0 -157
  72. cosmotech/coal/cosmotech_api/twin_data_layer.py +0 -512
  73. cosmotech/coal/cosmotech_api/workspace.py +0 -127
  74. cosmotech/coal/utils/api.py +0 -68
  75. cosmotech/coal/utils/postgresql.py +0 -236
  76. cosmotech/csm_data/commands/api/rds_load_csv.py +0 -90
  77. cosmotech/csm_data/commands/api/rds_send_csv.py +0 -74
  78. cosmotech/csm_data/commands/api/rds_send_store.py +0 -74
  79. cosmotech/csm_data/commands/api/runtemplate_load_handler.py +0 -66
  80. cosmotech/csm_data/commands/api/tdl_load_files.py +0 -76
  81. cosmotech/csm_data/commands/api/tdl_send_files.py +0 -82
  82. cosmotech/orchestrator_plugins/csm-data/templates/api/rds_load_csv.json +0 -27
  83. cosmotech/orchestrator_plugins/csm-data/templates/api/rds_send_csv.json +0 -27
  84. cosmotech/orchestrator_plugins/csm-data/templates/api/rds_send_store.json +0 -27
  85. cosmotech/orchestrator_plugins/csm-data/templates/api/runtemplate_load_handler.json +0 -27
  86. cosmotech/orchestrator_plugins/csm-data/templates/api/tdl_load_files.json +0 -32
  87. cosmotech/orchestrator_plugins/csm-data/templates/api/tdl_send_files.json +0 -27
  88. cosmotech/translation/coal/en-US/coal/cosmotech_api/run_data.yml +0 -2
  89. cosmotech/translation/csm_data/en-US/csm_data/commands/api/rds_load_csv.yml +0 -13
  90. cosmotech/translation/csm_data/en-US/csm_data/commands/api/rds_send_csv.yml +0 -12
  91. cosmotech/translation/csm_data/en-US/csm_data/commands/api/rds_send_store.yml +0 -12
  92. cosmotech/translation/csm_data/en-US/csm_data/commands/api/tdl_load_files.yml +0 -14
  93. cosmotech/translation/csm_data/en-US/csm_data/commands/api/tdl_send_files.yml +0 -18
  94. {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/WHEEL +0 -0
  95. {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/entry_points.txt +0 -0
  96. {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/licenses/LICENSE +0 -0
  97. {cosmotech_acceleration_library-1.0.1.dist-info → cosmotech_acceleration_library-2.0.0.dist-info}/top_level.txt +0 -0
@@ -1,66 +0,0 @@
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.csm_data.utils.click import click
9
- from cosmotech.csm_data.utils.decorators import web_help, translate_help
10
- from cosmotech.orchestrator.utils.translate import T
11
-
12
-
13
- @click.command()
14
- @web_help("csm-data/api/runtemplate-load-handler")
15
- @translate_help("csm_data.commands.api.runtemplate_load_handler.description")
16
- @click.option(
17
- "--organization-id",
18
- envvar="CSM_ORGANIZATION_ID",
19
- show_envvar=True,
20
- help=T("csm_data.commands.api.runtemplate_load_handler.parameters.organization_id"),
21
- metavar="o-##########",
22
- required=True,
23
- )
24
- @click.option(
25
- "--workspace-id",
26
- envvar="CSM_WORKSPACE_ID",
27
- show_envvar=True,
28
- help=T("csm_data.commands.api.runtemplate_load_handler.parameters.workspace_id"),
29
- metavar="w-##########",
30
- required=True,
31
- )
32
- @click.option(
33
- "--run-template-id",
34
- envvar="CSM_RUN_TEMPLATE_ID",
35
- show_envvar=True,
36
- help=T("csm_data.commands.api.runtemplate_load_handler.parameters.run_template_id"),
37
- metavar="NAME",
38
- required=True,
39
- )
40
- @click.option(
41
- "--handler-list",
42
- envvar="CSM_CONTAINER_MODE",
43
- show_envvar=True,
44
- help=T("csm_data.commands.api.runtemplate_load_handler.parameters.handler_list"),
45
- metavar="HANDLER,...,HANDLER",
46
- required=True,
47
- )
48
- def runtemplate_load_handler(workspace_id, organization_id, run_template_id, handler_list):
49
- # Import the function at the start of the command
50
- from cosmotech.coal.cosmotech_api import load_run_template_handlers
51
-
52
- try:
53
- success = load_run_template_handlers(
54
- organization_id=organization_id,
55
- workspace_id=workspace_id,
56
- run_template_id=run_template_id,
57
- handler_list=handler_list,
58
- )
59
- if not success:
60
- raise click.Abort()
61
- except ValueError:
62
- raise click.Abort()
63
-
64
-
65
- if __name__ == "__main__":
66
- runtemplate_load_handler()
@@ -1,76 +0,0 @@
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.csm_data.utils.click import click
9
- from cosmotech.csm_data.utils.decorators import web_help, translate_help
10
- from cosmotech.orchestrator.utils.translate import T
11
-
12
-
13
- @click.command()
14
- @click.option(
15
- "--organization-id",
16
- envvar="CSM_ORGANIZATION_ID",
17
- help=T("csm_data.commands.api.tdl_load_files.parameters.organization_id"),
18
- metavar="o-XXXXXXXX",
19
- type=str,
20
- show_envvar=True,
21
- required=True,
22
- )
23
- @click.option(
24
- "--workspace-id",
25
- envvar="CSM_WORKSPACE_ID",
26
- help=T("csm_data.commands.api.tdl_load_files.parameters.workspace_id"),
27
- metavar="w-XXXXXXXX",
28
- type=str,
29
- show_envvar=True,
30
- required=True,
31
- )
32
- @click.option(
33
- "--scenario-id",
34
- envvar="CSM_SCENARIO_ID",
35
- help=T("csm_data.commands.api.tdl_load_files.parameters.scenario_id"),
36
- metavar="s-XXXXXXXX",
37
- type=str,
38
- show_envvar=True,
39
- required=False,
40
- )
41
- @click.option(
42
- "--runner-id",
43
- envvar="CSM_RUNNER_ID",
44
- help=T("csm_data.commands.api.tdl_load_files.parameters.runner_id"),
45
- metavar="r-XXXXXXXX",
46
- type=str,
47
- show_envvar=True,
48
- required=False,
49
- )
50
- @click.option(
51
- "--dir",
52
- "directory_path",
53
- help=T("csm_data.commands.api.tdl_load_files.parameters.dir"),
54
- metavar="PATH",
55
- default="./",
56
- type=str,
57
- envvar="CSM_DATASET_ABSOLUTE_PATH",
58
- show_envvar=True,
59
- required=True,
60
- )
61
- @web_help("csm-data/api/tdl-load-file")
62
- @translate_help("csm_data.commands.api.tdl_load_files.description")
63
- def tdl_load_files(organization_id, workspace_id, scenario_id, runner_id, directory_path):
64
- # Import the function at the start of the command
65
- from cosmotech.coal.cosmotech_api import load_files_from_tdl
66
-
67
- try:
68
- load_files_from_tdl(
69
- organization_id=organization_id,
70
- workspace_id=workspace_id,
71
- directory_path=directory_path,
72
- runner_id=runner_id,
73
- scenario_id=scenario_id,
74
- )
75
- except ValueError as e:
76
- raise click.Abort() from e
@@ -1,82 +0,0 @@
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.csm_data.utils.click import click
9
- from cosmotech.csm_data.utils.decorators import web_help, translate_help
10
- from cosmotech.orchestrator.utils.translate import T
11
-
12
-
13
- @click.command()
14
- @click.option(
15
- "--api-url",
16
- envvar="CSM_API_URL",
17
- help=T("csm_data.commands.api.tdl_send_files.parameters.api_url"),
18
- metavar="URI",
19
- type=str,
20
- show_envvar=True,
21
- required=True,
22
- )
23
- @click.option(
24
- "--organization-id",
25
- envvar="CSM_ORGANIZATION_ID",
26
- help=T("csm_data.commands.api.tdl_send_files.parameters.organization_id"),
27
- metavar="o-XXXXXXXX",
28
- type=str,
29
- show_envvar=True,
30
- required=True,
31
- )
32
- @click.option(
33
- "--workspace-id",
34
- envvar="CSM_WORKSPACE_ID",
35
- help=T("csm_data.commands.api.tdl_send_files.parameters.workspace_id"),
36
- metavar="w-XXXXXXXX",
37
- type=str,
38
- show_envvar=True,
39
- required=True,
40
- )
41
- @click.option(
42
- "--runner-id",
43
- envvar="CSM_RUNNER_ID",
44
- help=T("csm_data.commands.api.tdl_send_files.parameters.runner_id"),
45
- metavar="r-XXXXXXXX",
46
- type=str,
47
- show_envvar=True,
48
- required=True,
49
- )
50
- @click.option(
51
- "--dir",
52
- "directory_path",
53
- help=T("csm_data.commands.api.tdl_send_files.parameters.dir"),
54
- metavar="PATH",
55
- default="./",
56
- type=str,
57
- envvar="CSM_DATASET_ABSOLUTE_PATH",
58
- show_envvar=True,
59
- required=True,
60
- )
61
- @click.option(
62
- "--clear/--keep",
63
- help=T("csm_data.commands.api.tdl_send_files.parameters.clear"),
64
- is_flag=True,
65
- default=True,
66
- show_default=True,
67
- type=bool,
68
- )
69
- @web_help("csm-data/api/tdl-send-files")
70
- @translate_help("csm_data.commands.api.tdl_send_files.description")
71
- def tdl_send_files(api_url, organization_id, workspace_id, runner_id, directory_path, clear: bool):
72
- # Import the function at the start of the command
73
- from cosmotech.coal.cosmotech_api import send_files_to_tdl
74
-
75
- send_files_to_tdl(
76
- api_url=api_url,
77
- organization_id=organization_id,
78
- workspace_id=workspace_id,
79
- runner_id=runner_id,
80
- directory_path=directory_path,
81
- clear=clear,
82
- )
@@ -1,27 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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
- }
@@ -1,32 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- # Run Data-specific messages
2
- sending_to_table: "Sending data to table {table_name}"
@@ -1,13 +0,0 @@
1
- description: |
2
- Load data from a runner's RDS database into a CSV file.
3
-
4
- Executes a SQL query against the runner's RDS database and saves the results to a CSV file.
5
- By default, it will list all tables in the public schema if no specific query is provided.
6
- parameters:
7
- target_folder: The folder where the csv will be written
8
- organization_id: An organization id for the Cosmo Tech API
9
- workspace_id: A workspace id for the Cosmo Tech API
10
- runner_id: A runner id for the Cosmo Tech API
11
- run_id: A run id for the Cosmo Tech API
12
- file_name: A file name to write the query results
13
- query: SQL query to execute (defaults to listing all tables in public schema)
@@ -1,12 +0,0 @@
1
- description: |
2
- Send CSV files to a runner's RDS database.
3
-
4
- Takes all CSV files from a source folder and sends their content to the runner's RDS database.
5
- Each CSV file will be sent to a table named after the file (without the .csv extension).
6
- The table name will be prefixed with "CD_" in the database.
7
- parameters:
8
- source_folder: The folder containing csvs to send
9
- organization_id: An organization id for the Cosmo Tech API
10
- workspace_id: A workspace id for the Cosmo Tech API
11
- runner_id: A runner id for the Cosmo Tech API
12
- run_id: A run id for the Cosmo Tech API
@@ -1,12 +0,0 @@
1
- description: |
2
- Send data from a store to a runner's RDS database.
3
-
4
- Takes all tables from a store and sends their content to the runner's RDS database.
5
- Each table will be sent to a table with the same name, prefixed with "CD_" in the database.
6
- Null values in rows will be removed before sending.
7
- parameters:
8
- store_folder: The folder containing the store files
9
- organization_id: An organization id for the Cosmo Tech API
10
- workspace_id: A workspace id for the Cosmo Tech API
11
- runner_id: A runner id for the Cosmo Tech API
12
- run_id: A run id for the Cosmo Tech API
@@ -1,14 +0,0 @@
1
- description: |
2
- Query a twingraph and loads all the data from it
3
-
4
- Will create 1 csv file per node type / relationship type
5
-
6
- The twingraph must have been populated using the "tdl-send-files" command for this to work correctly
7
-
8
- Requires a valid connection to the API to send the data
9
- parameters:
10
- organization_id: An organization id for the Cosmo Tech API
11
- workspace_id: A workspace id for the Cosmo Tech API
12
- runner_id: A runner id for the Cosmo Tech API
13
- scenario_id: A scenario id for the Cosmo Tech API
14
- dir: Path to the directory to write the results to
@@ -1,18 +0,0 @@
1
- description: |
2
- Reads a folder CSVs and send those to the Cosmo Tech API as a Dataset
3
-
4
- CSVs must follow a given format:
5
- - Nodes files must have an id column
6
- - Relationship files must have id, src and dest columns
7
-
8
- Non-existing relationship (aka dest or src does not point to existing node) won't trigger an error,
9
- the relationship will not be created instead.
10
-
11
- Requires a valid connection to the API to send the data
12
- parameters:
13
- api_url: The URI to a Cosmo Tech API instance
14
- organization_id: An organization id for the Cosmo Tech API
15
- workspace_id: A workspace id for the Cosmo Tech API
16
- runner_id: A runner id for the Cosmo Tech API
17
- dir: Path to the directory containing csvs to send
18
- clear: Flag to clear the target dataset first (if set to True will clear the dataset before sending anything, irreversibly)