Skip to main content
The Python Transformation component allows you to run custom Python code as part of your Integrate.io ETL pipeline. It transforms records without changing the schema of the input data.

Overview

  • Accepts an array of JSON records as input
  • Requires a defined transform function
  • Input and output schemas must match exactly
  • Useful for string manipulation, cleaning, enrichment, or any custom logic
  • You can remove records from the array (filtering), but returned records must follow the original schema
  • You may return an empty array, but not a different schema

Example Transformation Code

Example Input and Output

Input:
Output:

Configuration

Batch Size: Define the number of records per batch. The total payload size should not exceed 6 MB.

Testing

Test your transformation in the Package Designer: provide a sample payload in table format, click Run Code, and view the transformed output. The test table mirrors the schema of the connected input component.

Variables

Use package, secret, and global variables with Python import format:
All variables (including secrets and globals) are evaluated before passing to the function.

Best Practices

  • Always ensure output matches input schema (field names and types).
  • Valid to return fewer records or an empty array for filtering.
  • Catch and log exceptions to help debug errors.
  • Break complex logic into helper functions within the same script.
Last modified on April 20, 2026