Python

Introduction

This document provides an overview of the integration between Automate and Python, explaining how Python codes can be executed to automate processes using Python library actions.

The integration enables users to execute Python scripts within Automate, facilitating automation of various tasks.

What is Python?

Explain the core functionalities and benefits of Python.

Overview of Python: Python is a high-level programming language known for its simplicity and readability. It is widely used for various purposes including web development, data analysis, artificial intelligence, and automation.

Key Features:

  • Script Execution: Execute Python scripts to perform tasks.

  • Variable Assignment: Assign output of scripts to variables for further processing.

  • Flexibility: Supports both script file execution and direct entry of Python code.

Automate Integration with Python

Overview of Integration: Automate integrates with Python to execute scripts and automate various tasks within workflows.

Examples of Automated Tasks:

  • Running Python scripts to process data.

  • Automating repetitive tasks using Python code.

  • Integrating Python scripts into complex automation workflows.

Using the Integration

The "Open Action" feature within this Python scripting tool serves the purpose of preparing a Python script for execution. Users can either select an existing Python script file by defining its file path or utilize the built-in code editor to write a new Python script from scratch. Once the script is prepared, users assign its data to a variable, which serves as input for the subsequent "Run Action." The "Run Action" then executes the Python script, either by selecting the previously defined script variable or directly entering Python code. The output generated by the script can be assigned to a variable for further processing, completing the execution cycle seamlessly.

How To Use Actions

Open Action

Description: Prepare Python script for execution.

Purpose: Define or select Python script to be executed.

Usage:

  1. Define or select the file path of the Python script.

  2. Alternatively, write Python script using the built-in code editor.

  3. Assign the Python script data to a variable for input in the Run Python action.

Inputs:

  • File Path or Python Script

Outputs:

  • Python Script Data Variable

Run Action

Description: Execute Python script.

Purpose: Execute Python script and capture output.

Usage:

  1. Select the script variable defined in the Python Open action.

  2. Choose a Python script file or enter Python code.

  3. Assign the output of the Python script to a variable for further processing.

Inputs:

  • Script Variable

Outputs:

  • Output of the Python Script


Additional Tips

Last updated