upload_files_with_asset_builder
imerit_ango.sdk.SDK.
upload_files_with_asset_builder(project_id, template_id, input_file_path)
Upload assets using the asset builder template. It processes the CSV file by iterating over each column, generating corresponding assets using the specified template.
Parameters
project_id: string
The unique identifier for the project. You can find the project ID in the user interface or retrieve it using the
list_projects
function.
template_id: string
Id of the asset builder template which is created on the AngoHub
Example:
'0000000aa0a00a0000aaaa0a'
input_file_path: string
The file path of the CSV file
Example:
'data_folder/csv_file.csv'
Returns:
output: dict
A dictionary containing the result of the operation.
Example
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK
load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')
ango_sdk = SDK(api_key)
template_id = '<YOUR_TEMPLATE_ID>'
csv_file_path = 'data/my_csv_file.csv'
ango_sdk.upload_files_with_asset_builder(project_id=project_id,
template_id=template_id,
input_file_path=csv_file_path)
Last updated