Python functions are currently in a beta state and may not be available on all enrollments.
This guide assumes you have already authored and published a Python function. Review our getting started with Python functions documentation for a tutorial.
Python functions run in a Pipeline Builder pipeline as a sidecar container. This means that the function does not need to be deployed and scales dynamically with the size of your pipeline. Embedded functions can be previewed similarly to other transforms in Pipeline Builder.
Follow the steps below to prepare and configure a Python function in your pipeline:
You should now see your Python function on your Pipeline Builder graph and can preview the output of the function.
To make API calls to an external system from Pipeline Builder, you can publish a Python function with access to external systems. This will allow you to write logic that communicates with external systems and use it as part of your pipeline.
To be used as a user-defined function (UDF) in Pipeline Builder, all sources used in your function must be configured to be importable into pipelines. To configure this setting, navigate to the source in Data Connection, then to the Connection settings > Code import configuration tab:
Once you have enabled this option on your source and published your Python function, it can be used in your pipeline in the same way as any other Python function.