import pandas as pd from utils.s3 import save_csv_to_s3 PORTFOLIO_ID = 85 USER_ID = 8 def app(): asset_list = [ { "address": "120 Yarningale Road", "postcode": "B14 6NB", "uprn": 100070575194 } ] asset_list = pd.DataFrame(asset_list) filename = f"{USER_ID}/{PORTFOLIO_ID}/sample.csv" save_csv_to_s3( dataframe=asset_list, bucket_name="retrofit-plan-inputs-dev", file_name=filename ) body = { "portfolio_id": str(PORTFOLIO_ID), "housing_type": "Private", "goal": "Increase EPC", "goal_value": "C", "trigger_file_path": filename, "already_installed_file_path": "", "patches_file_path": "", "non_invasive_recommendations_file_path": "", "budget": None, } print(body)