import os
from ibm_watsonx_data_integration import Platform
from ibm_watsonx_data_integration.common.auth import IAMAuthenticator

auth = IAMAuthenticator(
    api_key=os.getenv("{{ api_key_var_name }}"),
    base_auth_url="{{ base_url }}",
)
platform = Platform(
    auth=auth,
    base_url="{{ base_url }}",
    base_api_url="{{ base_api_url }}",
)

project = platform.projects.get(project_id="{{ project_id }}")
