activities
latest
false
UiPath logo, featuring letters U and I in white
Developer Activities
Last updated Oct 22, 2024

About the Python activity package

Important:
  • The Python activity package has been made open-source. Feel free to collaborate on our Github repositories.
  • The Python activity package is compatible with Python versions 3.12 and lower.

The purpose of this activity package is to enable you to invoke Python scripts and methods in any workflow directly from our product. You can also pass input arguments to the invoked code, as well as retrieve the output data generated by the activities.

The Python Scope container activity connects to the Python environment installed on the machine, enabling you to use the activities within it.

Prerequisite

For Windows projects, starting with Python activity package version 1.8.1, the Python Scope activity requires you to install the .NET Desktop Runtime 6.0.x.

Supported Python versions

The Python Scope activity supports the following Python versions.

Python versionWindows - Legacy projectsWindows projects
2.7availablenot available
3.4availablenot available
3.5availablenot available
3.6availableavailable
3.7availableavailable
3.8availableavailable
3.9availableavailable
3.10availableavailable
3.11availableavailable
3.12availableavailable

PythonObject variable

The PythonObject variable is specially designed to handle and manipulate Python data.
By using the Load Python Script activity, you can assign the code from any file containing a Python script to a PythonObject. You can also convert it to a .NET data type by using the Get Python Object activity.

This powerful variable lets you run scripts, extract .NET types, or invoke Python methods with activities designed for each task.

  • Prerequisite
  • Supported Python versions
  • PythonObject variable

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.