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.Documentation Index
Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
- Accepts an array of JSON records as input
- Requires a defined
transformfunction - 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: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: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.