Before you can use the Teradata® AppCenter Python SDK, you must initiate the AppCenter client.
Use one of the following methods to initialize the AppCenter client:
Method Code Example Considerations import and create a client
from appcenter_sdk.client import AppContext from appcenter_sdk.client import DefaultAppCenterClient import logging with DefaultAppCenterClient() as client:
All context information is initialized from environment variables. Create and initialize a client with AppContext
appContext = AppContext(app_center_base_url='https://appcenter.example.com',system='aster-system’) with DefaultAppCenterClient(appContext) as client: