diff --git a/CosmoTech_Acceleration_Library/Accelerators/scenario_download/azure_function_main.py b/CosmoTech_Acceleration_Library/Accelerators/scenario_download/azure_function_main.py index ef38a2db..5bf1f4e3 100644 --- a/CosmoTech_Acceleration_Library/Accelerators/scenario_download/azure_function_main.py +++ b/CosmoTech_Acceleration_Library/Accelerators/scenario_download/azure_function_main.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import azure.functions as func from .scenario_downloader import ScenarioDownloader diff --git a/CosmoTech_Acceleration_Library/Accelerators/scenario_download/scenario_downloader.py b/CosmoTech_Acceleration_Library/Accelerators/scenario_download/scenario_downloader.py index b8241b82..176a3b77 100644 --- a/CosmoTech_Acceleration_Library/Accelerators/scenario_download/scenario_downloader.py +++ b/CosmoTech_Acceleration_Library/Accelerators/scenario_download/scenario_downloader.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import csv import io diff --git a/CosmoTech_Acceleration_Library/Accelerators/scenario_download/scenario_downloader_test.py b/CosmoTech_Acceleration_Library/Accelerators/scenario_download/scenario_downloader_test.py index 5408005c..ac478811 100644 --- a/CosmoTech_Acceleration_Library/Accelerators/scenario_download/scenario_downloader_test.py +++ b/CosmoTech_Acceleration_Library/Accelerators/scenario_download/scenario_downloader_test.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import copy import unittest diff --git a/CosmoTech_Acceleration_Library/Modelops/__init__.py b/CosmoTech_Acceleration_Library/Modelops/__init__.py index eacef447..c0b3a5ad 100644 --- a/CosmoTech_Acceleration_Library/Modelops/__init__.py +++ b/CosmoTech_Acceleration_Library/Modelops/__init__.py @@ -1,2 +1,2 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. diff --git a/CosmoTech_Acceleration_Library/Modelops/core/__init__.py b/CosmoTech_Acceleration_Library/Modelops/core/__init__.py index eacef447..c0b3a5ad 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/__init__.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/__init__.py @@ -1,2 +1,2 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. diff --git a/CosmoTech_Acceleration_Library/Modelops/core/common/__init__.py b/CosmoTech_Acceleration_Library/Modelops/core/common/__init__.py index eacef447..c0b3a5ad 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/common/__init__.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/common/__init__.py @@ -1,2 +1,2 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. diff --git a/CosmoTech_Acceleration_Library/Modelops/core/common/graph_handler.py b/CosmoTech_Acceleration_Library/Modelops/core/common/graph_handler.py index 3993c660..46b2df1d 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/common/graph_handler.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/common/graph_handler.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import logging import functools diff --git a/CosmoTech_Acceleration_Library/Modelops/core/common/redis_handler.py b/CosmoTech_Acceleration_Library/Modelops/core/common/redis_handler.py index ad5313ad..3dc1f79b 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/common/redis_handler.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/common/redis_handler.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import logging diff --git a/CosmoTech_Acceleration_Library/Modelops/core/common/writer/CsvWriter.py b/CosmoTech_Acceleration_Library/Modelops/core/common/writer/CsvWriter.py index 0b89f98d..e3577451 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/common/writer/CsvWriter.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/common/writer/CsvWriter.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import csv import logging diff --git a/CosmoTech_Acceleration_Library/Modelops/core/common/writer/__init__.py b/CosmoTech_Acceleration_Library/Modelops/core/common/writer/__init__.py index eacef447..c0b3a5ad 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/common/writer/__init__.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/common/writer/__init__.py @@ -1,2 +1,2 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. diff --git a/CosmoTech_Acceleration_Library/Modelops/core/io/__init__.py b/CosmoTech_Acceleration_Library/Modelops/core/io/__init__.py index eacef447..c0b3a5ad 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/io/__init__.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/io/__init__.py @@ -1,2 +1,2 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. diff --git a/CosmoTech_Acceleration_Library/Modelops/core/io/model_exporter.py b/CosmoTech_Acceleration_Library/Modelops/core/io/model_exporter.py index fe71234a..6c66d248 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/io/model_exporter.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/io/model_exporter.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import logging import time diff --git a/CosmoTech_Acceleration_Library/Modelops/core/io/model_importer.py b/CosmoTech_Acceleration_Library/Modelops/core/io/model_importer.py index b70cff35..69c52e47 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/io/model_importer.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/io/model_importer.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import logging diff --git a/CosmoTech_Acceleration_Library/Modelops/core/io/model_reader.py b/CosmoTech_Acceleration_Library/Modelops/core/io/model_reader.py index 212b2cd9..75bf9833 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/io/model_reader.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/io/model_reader.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import logging diff --git a/CosmoTech_Acceleration_Library/Modelops/core/io/model_writer.py b/CosmoTech_Acceleration_Library/Modelops/core/io/model_writer.py index 6cf52db0..7e84a76f 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/io/model_writer.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/io/model_writer.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import logging diff --git a/CosmoTech_Acceleration_Library/Modelops/core/utils/__init__.py b/CosmoTech_Acceleration_Library/Modelops/core/utils/__init__.py index eacef447..c0b3a5ad 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/utils/__init__.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/utils/__init__.py @@ -1,2 +1,2 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. diff --git a/CosmoTech_Acceleration_Library/Modelops/core/utils/model_util.py b/CosmoTech_Acceleration_Library/Modelops/core/utils/model_util.py index 1238a28a..a5e72c6a 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/utils/model_util.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/utils/model_util.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import json import logging diff --git a/CosmoTech_Acceleration_Library/Modelops/core/utils/tests/__init__.py b/CosmoTech_Acceleration_Library/Modelops/core/utils/tests/__init__.py index eacef447..c0b3a5ad 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/utils/tests/__init__.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/utils/tests/__init__.py @@ -1,2 +1,2 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. diff --git a/CosmoTech_Acceleration_Library/Modelops/core/utils/tests/model_util_test.py b/CosmoTech_Acceleration_Library/Modelops/core/utils/tests/model_util_test.py index 5f1c3445..017e2067 100644 --- a/CosmoTech_Acceleration_Library/Modelops/core/utils/tests/model_util_test.py +++ b/CosmoTech_Acceleration_Library/Modelops/core/utils/tests/model_util_test.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import unittest diff --git a/CosmoTech_Acceleration_Library/__init__.py b/CosmoTech_Acceleration_Library/__init__.py index 53328b7a..8fbd2774 100644 --- a/CosmoTech_Acceleration_Library/__init__.py +++ b/CosmoTech_Acceleration_Library/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. -__version__ = '0.9.0' +__version__ = '0.9.1' diff --git a/cosmotech/coal/cli/commands/adx_send_scenariodata.py b/cosmotech/coal/cli/commands/adx_send_scenariodata.py index 7ce6744a..e49e277c 100644 --- a/cosmotech/coal/cli/commands/adx_send_scenariodata.py +++ b/cosmotech/coal/cli/commands/adx_send_scenariodata.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/api.py b/cosmotech/coal/cli/commands/api/api.py index 1ca3e1ba..f26a256d 100644 --- a/cosmotech/coal/cli/commands/api/api.py +++ b/cosmotech/coal/cli/commands/api/api.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/postgres_send_runner_metadata.py b/cosmotech/coal/cli/commands/api/postgres_send_runner_metadata.py index aa52964e..f41bf52d 100644 --- a/cosmotech/coal/cli/commands/api/postgres_send_runner_metadata.py +++ b/cosmotech/coal/cli/commands/api/postgres_send_runner_metadata.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/rds_load_csv.py b/cosmotech/coal/cli/commands/api/rds_load_csv.py index 81a79911..be51bb3f 100644 --- a/cosmotech/coal/cli/commands/api/rds_load_csv.py +++ b/cosmotech/coal/cli/commands/api/rds_load_csv.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/rds_send_csv.py b/cosmotech/coal/cli/commands/api/rds_send_csv.py index 2a7c7c18..5299a568 100644 --- a/cosmotech/coal/cli/commands/api/rds_send_csv.py +++ b/cosmotech/coal/cli/commands/api/rds_send_csv.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/rds_send_store.py b/cosmotech/coal/cli/commands/api/rds_send_store.py index 753ed402..f6d9a05a 100644 --- a/cosmotech/coal/cli/commands/api/rds_send_store.py +++ b/cosmotech/coal/cli/commands/api/rds_send_store.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/run_load_data.py b/cosmotech/coal/cli/commands/api/run_load_data.py index 53dcf643..2c07f179 100644 --- a/cosmotech/coal/cli/commands/api/run_load_data.py +++ b/cosmotech/coal/cli/commands/api/run_load_data.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/runtemplate_load_handler.py b/cosmotech/coal/cli/commands/api/runtemplate_load_handler.py index bd12c01a..7fd9a5ea 100644 --- a/cosmotech/coal/cli/commands/api/runtemplate_load_handler.py +++ b/cosmotech/coal/cli/commands/api/runtemplate_load_handler.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/scenariorun_load_data.py b/cosmotech/coal/cli/commands/api/scenariorun_load_data.py index 4844071b..6dbbea5b 100644 --- a/cosmotech/coal/cli/commands/api/scenariorun_load_data.py +++ b/cosmotech/coal/cli/commands/api/scenariorun_load_data.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/tdl_load_files.py b/cosmotech/coal/cli/commands/api/tdl_load_files.py index 35e7abd4..deb25fcf 100644 --- a/cosmotech/coal/cli/commands/api/tdl_load_files.py +++ b/cosmotech/coal/cli/commands/api/tdl_load_files.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/tdl_send_files.py b/cosmotech/coal/cli/commands/api/tdl_send_files.py index 24fa5542..af08275f 100644 --- a/cosmotech/coal/cli/commands/api/tdl_send_files.py +++ b/cosmotech/coal/cli/commands/api/tdl_send_files.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/wsf_load_file.py b/cosmotech/coal/cli/commands/api/wsf_load_file.py index 5d9a817a..dd8d1f6c 100644 --- a/cosmotech/coal/cli/commands/api/wsf_load_file.py +++ b/cosmotech/coal/cli/commands/api/wsf_load_file.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/api/wsf_send_file.py b/cosmotech/coal/cli/commands/api/wsf_send_file.py index 8ce261c1..bdf0cd0b 100644 --- a/cosmotech/coal/cli/commands/api/wsf_send_file.py +++ b/cosmotech/coal/cli/commands/api/wsf_send_file.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/az_storage_upload.py b/cosmotech/coal/cli/commands/az_storage_upload.py new file mode 100644 index 00000000..37ecb28c --- /dev/null +++ b/cosmotech/coal/cli/commands/az_storage_upload.py @@ -0,0 +1,79 @@ +# Copyright (C) - 2023 - 2025 - Cosmo Tech +# This document and all information contained herein is the exclusive property - +# including all intellectual property rights pertaining thereto - of Cosmo Tech. +# Any use, reproduction, translation, broadcasting, transmission, distribution, +# etc., to any person is prohibited unless it has been previously and +# specifically authorized by written means by Cosmo Tech. + +import pathlib + +from azure.storage.blob import ContainerClient + +from cosmotech.coal.cli.utils.click import click +from cosmotech.coal.cli.utils.decorators import web_help +from cosmotech.coal.utils.logger import LOGGER + + +@click.command() +@click.option("--source-folder", + envvar="CSM_DATASET_ABSOLUTE_PATH", + help="The folder/file to upload to the target blob storage", + metavar="PATH", + type=str, + show_envvar=True, + required=True) +@click.option("--recursive/--no-recursive", + default=False, + help="Recursively send the content of every folder inside the starting folder to the blob storage", + type=bool, + is_flag=True) +@click.option("--blob-name", + envvar="AZURE_STORAGE_BLOB_NAME", + help="The blob name in the Azure Storage service to upload to", + metavar="BUCKET", + type=str, + show_envvar=True, + required=True) +@click.option("--prefix", + "file_prefix", + envvar="CSM_DATA_BLOB_PREFIX", + help="A prefix by which all uploaded files should start with in the blob storage", + metavar="PREFIX", + type=str, + show_envvar=True, + default="") +@click.option("--az-storage-sas-url", + help="SAS url allowing access to the AZ storage container", + type=str, + show_envvar=True, + metavar="URL", + envvar="AZURE_STORAGE_SAS_URL") +@web_help("csm-data/az-storage-upload") +def az_storage_upload( + source_folder, + blob_name: str, + az_storage_sas_url: str, + file_prefix: str = "", + recursive: bool = False +): + """Upload a folder to an Azure Storage Blob""" + source_path = pathlib.Path(source_folder) + if not source_path.exists(): + LOGGER.error(f"{source_folder} does not exists") + raise FileNotFoundError(f"{source_folder} does not exists") + + def file_upload(file_path: pathlib.Path, file_name: str): + uploaded_file_name = blob_name + "/" + file_prefix + file_name + LOGGER.info(f"Sending {file_path} as {uploaded_file_name}") + ContainerClient.from_container_url(az_storage_sas_url).upload_blob(uploaded_file_name, + file_path.open("rb"), + overwrite=True) + + if source_path.is_dir(): + _source_name = str(source_path) + for _file_path in source_path.glob("**/*" if recursive else "*"): + if _file_path.is_file(): + _file_name = str(_file_path).removeprefix(_source_name).removeprefix("/") + file_upload(_file_path, _file_name) + else: + file_upload(source_path, source_path.name) diff --git a/cosmotech/coal/cli/commands/legacy/generate_orchestrator.py b/cosmotech/coal/cli/commands/legacy/generate_orchestrator.py index e11b538f..144b5be0 100644 --- a/cosmotech/coal/cli/commands/legacy/generate_orchestrator.py +++ b/cosmotech/coal/cli/commands/legacy/generate_orchestrator.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/legacy/init_local_parameter_folder.py b/cosmotech/coal/cli/commands/legacy/init_local_parameter_folder.py index 54ba8840..d01303f9 100644 --- a/cosmotech/coal/cli/commands/legacy/init_local_parameter_folder.py +++ b/cosmotech/coal/cli/commands/legacy/init_local_parameter_folder.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/legacy/legacy.py b/cosmotech/coal/cli/commands/legacy/legacy.py index 4eda92e5..e330192f 100644 --- a/cosmotech/coal/cli/commands/legacy/legacy.py +++ b/cosmotech/coal/cli/commands/legacy/legacy.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/s3_bucket_delete.py b/cosmotech/coal/cli/commands/s3_bucket_delete.py index 1483252c..60f65bda 100644 --- a/cosmotech/coal/cli/commands/s3_bucket_delete.py +++ b/cosmotech/coal/cli/commands/s3_bucket_delete.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/s3_bucket_download.py b/cosmotech/coal/cli/commands/s3_bucket_download.py index 3f2d248f..42bd0f3e 100644 --- a/cosmotech/coal/cli/commands/s3_bucket_download.py +++ b/cosmotech/coal/cli/commands/s3_bucket_download.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/s3_bucket_upload.py b/cosmotech/coal/cli/commands/s3_bucket_upload.py index f6811e17..b7891464 100644 --- a/cosmotech/coal/cli/commands/s3_bucket_upload.py +++ b/cosmotech/coal/cli/commands/s3_bucket_upload.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/store/dump_to_azure.py b/cosmotech/coal/cli/commands/store/dump_to_azure.py index c2ba0894..f16e1f1e 100644 --- a/cosmotech/coal/cli/commands/store/dump_to_azure.py +++ b/cosmotech/coal/cli/commands/store/dump_to_azure.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/store/dump_to_postgresql.py b/cosmotech/coal/cli/commands/store/dump_to_postgresql.py index 7fecd959..6e6af2f3 100644 --- a/cosmotech/coal/cli/commands/store/dump_to_postgresql.py +++ b/cosmotech/coal/cli/commands/store/dump_to_postgresql.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/store/dump_to_s3.py b/cosmotech/coal/cli/commands/store/dump_to_s3.py index 61e91307..922ff831 100644 --- a/cosmotech/coal/cli/commands/store/dump_to_s3.py +++ b/cosmotech/coal/cli/commands/store/dump_to_s3.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/store/list_tables.py b/cosmotech/coal/cli/commands/store/list_tables.py index 7cdfd48a..2046cd1f 100644 --- a/cosmotech/coal/cli/commands/store/list_tables.py +++ b/cosmotech/coal/cli/commands/store/list_tables.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/store/load_csv_folder.py b/cosmotech/coal/cli/commands/store/load_csv_folder.py index 665f62ec..f87b3629 100644 --- a/cosmotech/coal/cli/commands/store/load_csv_folder.py +++ b/cosmotech/coal/cli/commands/store/load_csv_folder.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/store/load_from_singlestore.py b/cosmotech/coal/cli/commands/store/load_from_singlestore.py index 6635a671..49737ef3 100644 --- a/cosmotech/coal/cli/commands/store/load_from_singlestore.py +++ b/cosmotech/coal/cli/commands/store/load_from_singlestore.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/store/reset.py b/cosmotech/coal/cli/commands/store/reset.py index 082d7663..4cca58cb 100644 --- a/cosmotech/coal/cli/commands/store/reset.py +++ b/cosmotech/coal/cli/commands/store/reset.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/commands/store/store.py b/cosmotech/coal/cli/commands/store/store.py index 19b764f0..1b4b6d0a 100644 --- a/cosmotech/coal/cli/commands/store/store.py +++ b/cosmotech/coal/cli/commands/store/store.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/main.py b/cosmotech/coal/cli/main.py index 8ce82726..fd4bbab9 100644 --- a/cosmotech/coal/cli/main.py +++ b/cosmotech/coal/cli/main.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, @@ -9,6 +9,7 @@ from CosmoTech_Acceleration_Library import __version__ from cosmotech.coal.cli.commands.adx_send_scenariodata import adx_send_scenariodata from cosmotech.coal.cli.commands.api.api import api +from cosmotech.coal.cli.commands.az_storage_upload import az_storage_upload from cosmotech.coal.cli.commands.legacy.legacy import legacy from cosmotech.coal.cli.commands.s3_bucket_download import s3_bucket_download from cosmotech.coal.cli.commands.s3_bucket_upload import s3_bucket_upload @@ -52,6 +53,7 @@ def main(): main.add_command(s3_bucket_upload, "s3-bucket-upload") main.add_command(s3_bucket_delete, "s3-bucket-delete") main.add_command(adx_send_scenariodata, "adx-send-scenariodata") +main.add_command(az_storage_upload, "az-storage-upload") if __name__ == "__main__": main() diff --git a/cosmotech/coal/cli/utils/click.py b/cosmotech/coal/cli/utils/click.py index f17dba25..c9a524d6 100644 --- a/cosmotech/coal/cli/utils/click.py +++ b/cosmotech/coal/cli/utils/click.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cli/utils/decorators.py b/cosmotech/coal/cli/utils/decorators.py index 8cb0898f..92baf8f0 100644 --- a/cosmotech/coal/cli/utils/decorators.py +++ b/cosmotech/coal/cli/utils/decorators.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cosmotech_api/connection.py b/cosmotech/coal/cosmotech_api/connection.py index 64ed2681..1d31b1e3 100644 --- a/cosmotech/coal/cosmotech_api/connection.py +++ b/cosmotech/coal/cosmotech_api/connection.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cosmotech_api/run.py b/cosmotech/coal/cosmotech_api/run.py index 272d3741..64436955 100644 --- a/cosmotech/coal/cosmotech_api/run.py +++ b/cosmotech/coal/cosmotech_api/run.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cosmotech_api/runner.py b/cosmotech/coal/cosmotech_api/runner.py index 7bd7c86a..7ceab6d3 100644 --- a/cosmotech/coal/cosmotech_api/runner.py +++ b/cosmotech/coal/cosmotech_api/runner.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cosmotech_api/twin_data_layer.py b/cosmotech/coal/cosmotech_api/twin_data_layer.py index 80b842a7..11c54b02 100644 --- a/cosmotech/coal/cosmotech_api/twin_data_layer.py +++ b/cosmotech/coal/cosmotech_api/twin_data_layer.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/cosmotech_api/workspace.py b/cosmotech/coal/cosmotech_api/workspace.py index 06cf5990..8e4a6efe 100644 --- a/cosmotech/coal/cosmotech_api/workspace.py +++ b/cosmotech/coal/cosmotech_api/workspace.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/csm/engine/__init__.py b/cosmotech/coal/csm/engine/__init__.py index f3bf591f..e16b6604 100644 --- a/cosmotech/coal/csm/engine/__init__.py +++ b/cosmotech/coal/csm/engine/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import csv import glob diff --git a/cosmotech/coal/utils/api.py b/cosmotech/coal/utils/api.py index ef017095..2c2e6199 100644 --- a/cosmotech/coal/utils/api.py +++ b/cosmotech/coal/utils/api.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/utils/logger.py b/cosmotech/coal/utils/logger.py index 2542fc32..b23b258c 100644 --- a/cosmotech/coal/utils/logger.py +++ b/cosmotech/coal/utils/logger.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/coal/utils/postgresql.py b/cosmotech/coal/utils/postgresql.py index ce4e430f..ea8b92a4 100644 --- a/cosmotech/coal/utils/postgresql.py +++ b/cosmotech/coal/utils/postgresql.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/cosmotech/orchestrator_plugins/csm-data/__init__.py b/cosmotech/orchestrator_plugins/csm-data/__init__.py index f4b1fdcf..60521007 100644 --- a/cosmotech/orchestrator_plugins/csm-data/__init__.py +++ b/cosmotech/orchestrator_plugins/csm-data/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2024 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/docs/csm-data/az-storage-upload.md b/docs/csm-data/az-storage-upload.md new file mode 100644 index 00000000..6a4cccdb --- /dev/null +++ b/docs/csm-data/az-storage-upload.md @@ -0,0 +1,11 @@ +--- +hide: + - toc +description: "Command help: `csm-data az-storage-upload`" +--- +# az-storage-upload + +!!! info "Help command" + ```text + --8<-- "generated/commands_help/csm-data/az-storage-upload.txt" + ``` diff --git a/docs/scripts/generate_command_helps.py b/docs/scripts/generate_command_helps.py index 0eca45f8..ebfc6068 100644 --- a/docs/scripts/generate_command_helps.py +++ b/docs/scripts/generate_command_helps.py @@ -1,4 +1,4 @@ -# Copyright (C) - 2023 - 2023 - Cosmo Tech +# Copyright (C) - 2023 - 2025 - Cosmo Tech # This document and all information contained herein is the exclusive property - # including all intellectual property rights pertaining thereto - of Cosmo Tech. # Any use, reproduction, translation, broadcasting, transmission, distribution, diff --git a/samples/Modelops/Bulk_Import_from_CSV_with_schema.py b/samples/Modelops/Bulk_Import_from_CSV_with_schema.py index 7b55dd7c..2e27a336 100644 --- a/samples/Modelops/Bulk_Import_from_CSV_with_schema.py +++ b/samples/Modelops/Bulk_Import_from_CSV_with_schema.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. from CosmoTech_Acceleration_Library.Modelops.core.io.model_importer import ModelImporter diff --git a/samples/Modelops/Bulk_Import_from_CSV_without_schema.py b/samples/Modelops/Bulk_Import_from_CSV_without_schema.py index 1b7429a3..5475ef8f 100644 --- a/samples/Modelops/Bulk_Import_from_CSV_without_schema.py +++ b/samples/Modelops/Bulk_Import_from_CSV_without_schema.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. from CosmoTech_Acceleration_Library.Modelops.core.io.model_importer import ModelImporter diff --git a/samples/Modelops/Export_data.py b/samples/Modelops/Export_data.py index b6c8723c..aaa66735 100644 --- a/samples/Modelops/Export_data.py +++ b/samples/Modelops/Export_data.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. import glob import os diff --git a/samples/Modelops/Get_Relationship.py b/samples/Modelops/Get_Relationship.py index 3a3dfdae..af0d2772 100644 --- a/samples/Modelops/Get_Relationship.py +++ b/samples/Modelops/Get_Relationship.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. from CosmoTech_Acceleration_Library.Modelops.core.io.model_reader import ModelReader from CosmoTech_Acceleration_Library.Modelops.core.utils.model_util import ModelUtil diff --git a/samples/Modelops/Get_Twins.py b/samples/Modelops/Get_Twins.py index 7c5a2847..0252afad 100644 --- a/samples/Modelops/Get_Twins.py +++ b/samples/Modelops/Get_Twins.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. from CosmoTech_Acceleration_Library.Modelops.core.io.model_reader import ModelReader from CosmoTech_Acceleration_Library.Modelops.core.utils.model_util import ModelUtil diff --git a/samples/Modelops/Manage_Graph_Metadata.py b/samples/Modelops/Manage_Graph_Metadata.py index dc25e2df..d0775aa0 100644 --- a/samples/Modelops/Manage_Graph_Metadata.py +++ b/samples/Modelops/Manage_Graph_Metadata.py @@ -1,4 +1,4 @@ -# Copyright (c) Cosmo Tech corporation. +# Copyright (C) - 2023 - 2025 - Cosmo Tech # Licensed under the MIT license. from CosmoTech_Acceleration_Library.Modelops.core.io.model_writer import ModelWriter