CosmoTech_Acceleration_Library.Accelerators.cosmo_api¶
cosmo_api
¶
get_current_scenario_data()
¶
Uses environment vars to find the current scenario data from the cosmotech api :return: a dict containing the data of the scenario from the API or None in another context
Source code in CosmoTech_Acceleration_Library/Accelerators/cosmo_api.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|
send_dataframe_to_api(dataframe, file_name)
¶
Send a dataframe to the API
Source code in CosmoTech_Acceleration_Library/Accelerators/cosmo_api.py
44 45 46 47 48 49 50 |
|
send_file_to_api(file_content, file_name)
¶
Send a file to the api
Source code in CosmoTech_Acceleration_Library/Accelerators/cosmo_api.py
30 31 32 33 34 35 36 37 38 39 40 41 |
|