Custom Data Connection Development
Custom data connections can be developed from within CML Workbench and Python Sessions using the CML Python Data Library and implementing the CML Custom Connection Interface.
You can view
CustomConnection interface help descriptions within in a
import cml.data_v1 as cmldata help(cmldata.customconnection)
Alternatively, you can inspect the source content as follows:
import cml.data_v1 as cmldata import inspect print(inspect.getsource(cmldata.customconnection))
Your custom connection code must implement the
CustomConnection interface for
cml.data_v1 library to load your module dynamically (see Loading
Two functions are already implemented so that the CML Python Data Library can dynamically load
your Python module implementation and make custom parameters available in
self.parameters. In most cases, you will not need to reimplement these:
The rest of the interface functions are included as common functions that you may want to implement.
See Developing and testing your first custom connection for a simple example of how to implement these.