18.3 SDK Usage: Common steps
The examples here provide information on how to get started with the API.
Common steps
Before using the SDK APIs, the below steps are common across the usage:
- Import the workbench and workbench configuration class.
- Load the default workbench configuration.
- Initialise the workbench and connect the workbench to the active deployment.
from datatransforms.workbench import DataTransformsWorkbench,WorkbenchConfig
pswd = ... #securely fetch your password from keystore for deployment.
connect_params = WorkbenchConfig.get_workbench_config(pswd)
workbench = DataTransformsWorkbench()
workbench.connect_workbench(connect_params)
Managing Log Levels
Logging level is managed through the standard logging package of Python. A snippet showing how to update the log level is given below:
#import
import logging
#Change/Manage log level. INFO | DEBUG | ERROR
logging.getLogger().setLevel(logging.INFO)
Parent topic: Python API for Oracle Data Transforms