From ff49d008105e68ff1addab13f24194079e8f6d46 Mon Sep 17 00:00:00 2001 From: Alexandru Marinescu Date: Fri, 20 Mar 2026 10:53:34 +0200 Subject: [PATCH 1/3] docs(python): generate and verify xaml activity docs --- .../docs/activities/GetObject.md | 34 ++++++++++++++++ .../docs/activities/InvokeMethod.md | 35 ++++++++++++++++ .../docs/activities/LoadScript.md | 40 +++++++++++++++++++ .../docs/activities/PythonScope.md | 38 ++++++++++++++++++ .../docs/activities/RunScript.md | 40 +++++++++++++++++++ .../UiPath.Python.Packaging/docs/overview.md | 17 ++++++++ 6 files changed, 204 insertions(+) create mode 100644 Activities/Python/UiPath.Python.Packaging/docs/activities/GetObject.md create mode 100644 Activities/Python/UiPath.Python.Packaging/docs/activities/InvokeMethod.md create mode 100644 Activities/Python/UiPath.Python.Packaging/docs/activities/LoadScript.md create mode 100644 Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md create mode 100644 Activities/Python/UiPath.Python.Packaging/docs/activities/RunScript.md create mode 100644 Activities/Python/UiPath.Python.Packaging/docs/overview.md diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/GetObject.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/GetObject.md new file mode 100644 index 00000000..755a7268 --- /dev/null +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/GetObject.md @@ -0,0 +1,34 @@ +# Get Python Object + +`UiPath.Python.Activities.GetObject` + +Gets a .NET value from a Python object reference. + +**Package:** `UiPath.Python.Activities` +**Category:** App Invoker.Python + +## Properties + +### Input + +| Name | Display Name | Kind | Type | Required | Default | Placeholder | Description | +|------|-------------|------|------|----------|---------|-------------|-------------| +| `PythonObject` | Python object | InArgument | `PythonObject` | Yes | | | Python object to convert to a .NET value. | + +### Configuration + +| Name | Display Name | Type | Default | Description | +|------|-------------|------|---------|-------------| +| - | - | - | - | - | + +### Output + +| Name | Display Name | Kind | Type | Description | +|------|-------------|------|------|-------------| +| `Result` | Result | OutArgument | `T` | Converted .NET value. | + +## XAML Example + +```xml + +``` \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/InvokeMethod.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/InvokeMethod.md new file mode 100644 index 00000000..2953de77 --- /dev/null +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/InvokeMethod.md @@ -0,0 +1,35 @@ +# Invoke Python Method + +`UiPath.Python.Activities.InvokeMethod` + +Invokes a method on a Python object instance and returns the method result. + +**Package:** `UiPath.Python.Activities` +**Category:** App Invoker.Python + +## Properties + +### Input + +| Name | Display Name | Kind | Type | Required | Default | Placeholder | Description | +|------|-------------|------|------|----------|---------|-------------|-------------| +| `Instance` | Invoke Python Method | InArgument | `PythonObject` | | null | | Invoke Python method | +| `Name` | Name | InArgument | `string` | Yes | | | Name of the method to be invoked | + +### Configuration + +| Name | Display Name | Type | Default | Description | +|------|-------------|------|---------|-------------| +| `Parameters` | InputParameters | `InArgument>` | | Input parameters for Python script | + +### Output + +| Name | Display Name | Kind | Type | Description | +|------|-------------|------|------|-------------| +| `Result` | Result | OutArgument | `PythonObject` | The result of script invocation | + +## XAML Example + +```xml + +``` \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/LoadScript.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/LoadScript.md new file mode 100644 index 00000000..5e65649b --- /dev/null +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/LoadScript.md @@ -0,0 +1,40 @@ +# Load Python Script + +`UiPath.Python.Activities.LoadScript` + +Loads and executes Python script code or a script file and returns a Python object result. + +**Package:** `UiPath.Python.Activities` +**Category:** App Invoker.Python + +## Properties + +### Input + +| Name | Display Name | Kind | Type | Required | Default | Placeholder | Description | +|------|-------------|------|------|----------|---------|-------------|-------------| +| `Code` | Code | InArgument | `string` | Yes | | | Python script content | +| `ScriptFile` | Load Python Script | InArgument | `string` | Yes | | | Loads and executes a Python script | + +### Configuration + +| Name | Display Name | Type | Default | Description | +|------|-------------|------|---------|-------------| +| - | - | - | - | - | + +### Output + +| Name | Display Name | Kind | Type | Description | +|------|-------------|------|------|-------------| +| `Result` | Result | OutArgument | `PythonObject` | The result of script invocation | + +## Valid Configurations + +- Use exactly one overload input: `Code` or `ScriptFile`. +- Do not set both `Code` and `ScriptFile` at the same time. + +## XAML Example + +```xml + +``` \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md new file mode 100644 index 00000000..2a756e53 --- /dev/null +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md @@ -0,0 +1,38 @@ +# Python Scope + +`UiPath.Python.Activities.PythonScope` + +Container activity that initializes and manages the Python runtime session for child Python activities. + +**Package:** `UiPath.Python.Activities` +**Category:** App Invoker.Python + +## Properties + +### Input + +| Name | Display Name | Kind | Type | Required | Default | Placeholder | Description | +|------|-------------|------|------|----------|---------|-------------|-------------| +| `LibraryPath` | Library path (Linux or version>3.9) | InArgument | `string` | | null | | For Linux is the path to Python libpython*.so library including library name. For Windows (Version>3.9) path to python**.dll including library name(usually is in Python Home path. For Windows (Version<=3.9) leave empty. | +| `OperationTimeout` | Timeout | InArgument | `double` | | 3600 | | The amount of time to allow a Python script to run until it is terminated and an exception is thrown. | +| `Path` | Path | InArgument | `string` | | null | | Python home path | +| `Version` | Python Scope | Property | `Version` | Yes | Version.Auto | | Python activities container | +| `WorkingFolder` | WorkingFolder | InArgument | `string` | | null | | Used to specify the working folder of the scripts executing under the current scope | + +### Configuration + +| Name | Display Name | Type | Default | Description | +|------|-------------|------|---------|-------------| +| `TargetPlatform` | Target | `TargetPlatform` | TargetPlatform.x64 | Specifies the Python runtime platform | + +### Output + +| Name | Display Name | Kind | Type | Description | +|------|-------------|------|------|-------------| +| - | - | - | - | - | + +## XAML Example + +```xml + +``` \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/RunScript.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/RunScript.md new file mode 100644 index 00000000..317a8db4 --- /dev/null +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/RunScript.md @@ -0,0 +1,40 @@ +# Run Python Script + +`UiPath.Python.Activities.RunScript` + +Executes Python script code or a script file inside an active Python runtime scope. + +**Package:** `UiPath.Python.Activities` +**Category:** App Invoker.Python + +## Properties + +### Input + +| Name | Display Name | Kind | Type | Required | Default | Placeholder | Description | +|------|-------------|------|------|----------|---------|-------------|-------------| +| `Code` | Code | InArgument | `string` | Yes | | | Python script content | +| `ScriptFile` | Run Python Script | InArgument | `string` | Yes | | | Invoke Python script activity | + +### Configuration + +| Name | Display Name | Type | Default | Description | +|------|-------------|------|---------|-------------| +| - | - | - | - | - | + +### Output + +| Name | Display Name | Kind | Type | Description | +|------|-------------|------|------|-------------| +| - | - | - | - | - | + +## Valid Configurations + +- Use exactly one overload input: `Code` or `ScriptFile`. +- Do not set both `Code` and `ScriptFile` at the same time. + +## XAML Example + +```xml + +``` \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Packaging/docs/overview.md b/Activities/Python/UiPath.Python.Packaging/docs/overview.md new file mode 100644 index 00000000..d7ca49c6 --- /dev/null +++ b/Activities/Python/UiPath.Python.Packaging/docs/overview.md @@ -0,0 +1,17 @@ +# UiPath Python Activities + +`UiPath.Python.Activities` + +XAML activity documentation for the Python package. + +## Activities + +### App Invoker.Python + +| Activity | Description | +|----------|-------------| +| [Get Python Object](activities/GetObject.md) | Get the .NET type from a PythonObject | +| [Invoke Python Method](activities/InvokeMethod.md) | Invoke Python method | +| [Load Python Script](activities/LoadScript.md) | Loads and executes a Python script | +| [Python Scope](activities/PythonScope.md) | Python activities container | +| [Run Python Script](activities/RunScript.md) | Invoke Python script activity | From 3dc52c903c0ae5fa5b207e3fe22c4bd2cbc77e5d Mon Sep 17 00:00:00 2001 From: Alexandru Marinescu Date: Mon, 30 Mar 2026 09:09:58 +0300 Subject: [PATCH 2/3] docs(python): address review feedback in xaml activity docs --- .../UiPath.Python.Packaging/docs/activities/GetObject.md | 2 +- .../docs/activities/InvokeMethod.md | 4 ++-- .../UiPath.Python.Packaging/docs/activities/LoadScript.md | 6 +++--- .../docs/activities/PythonScope.md | 2 +- .../UiPath.Python.Packaging/docs/activities/RunScript.md | 6 +++--- .../Python/UiPath.Python.Packaging/docs/overview.md | 8 ++++---- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/GetObject.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/GetObject.md index 755a7268..71bcb87c 100644 --- a/Activities/Python/UiPath.Python.Packaging/docs/activities/GetObject.md +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/GetObject.md @@ -31,4 +31,4 @@ Gets a .NET value from a Python object reference. ```xml -``` \ No newline at end of file +``` diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/InvokeMethod.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/InvokeMethod.md index 2953de77..d02b919e 100644 --- a/Activities/Python/UiPath.Python.Packaging/docs/activities/InvokeMethod.md +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/InvokeMethod.md @@ -13,7 +13,7 @@ Invokes a method on a Python object instance and returns the method result. | Name | Display Name | Kind | Type | Required | Default | Placeholder | Description | |------|-------------|------|------|----------|---------|-------------|-------------| -| `Instance` | Invoke Python Method | InArgument | `PythonObject` | | null | | Invoke Python method | +| `Instance` | Instance | InArgument | `PythonObject` | | null | | The Python object instance on which to invoke the method. Leave empty for module-level calls. | | `Name` | Name | InArgument | `string` | Yes | | | Name of the method to be invoked | ### Configuration @@ -32,4 +32,4 @@ Invokes a method on a Python object instance and returns the method result. ```xml -``` \ No newline at end of file +``` diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/LoadScript.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/LoadScript.md index 5e65649b..618f4cfe 100644 --- a/Activities/Python/UiPath.Python.Packaging/docs/activities/LoadScript.md +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/LoadScript.md @@ -13,8 +13,8 @@ Loads and executes Python script code or a script file and returns a Python obje | Name | Display Name | Kind | Type | Required | Default | Placeholder | Description | |------|-------------|------|------|----------|---------|-------------|-------------| -| `Code` | Code | InArgument | `string` | Yes | | | Python script content | -| `ScriptFile` | Load Python Script | InArgument | `string` | Yes | | | Loads and executes a Python script | +| `Code` | Code | InArgument | `string` | | | | Python script content. Provide either `Code` or `ScriptFile`. | +| `ScriptFile` | Load Python Script | InArgument | `string` | | | | Path to a Python script file to load and execute. Provide either `Code` or `ScriptFile`. | ### Configuration @@ -37,4 +37,4 @@ Loads and executes Python script code or a script file and returns a Python obje ```xml -``` \ No newline at end of file +``` diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md index 2a756e53..12e8faf1 100644 --- a/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md @@ -35,4 +35,4 @@ Container activity that initializes and manages the Python runtime session for c ```xml -``` \ No newline at end of file +``` diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/RunScript.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/RunScript.md index 317a8db4..f71c77cf 100644 --- a/Activities/Python/UiPath.Python.Packaging/docs/activities/RunScript.md +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/RunScript.md @@ -13,8 +13,8 @@ Executes Python script code or a script file inside an active Python runtime sco | Name | Display Name | Kind | Type | Required | Default | Placeholder | Description | |------|-------------|------|------|----------|---------|-------------|-------------| -| `Code` | Code | InArgument | `string` | Yes | | | Python script content | -| `ScriptFile` | Run Python Script | InArgument | `string` | Yes | | | Invoke Python script activity | +| `Code` | Code | InArgument | `string` | | | | Python script content. Provide either `Code` or `ScriptFile`. | +| `ScriptFile` | Run Python Script | InArgument | `string` | | | | Path to a Python script file to load and execute. Provide either `Code` or `ScriptFile`. | ### Configuration @@ -37,4 +37,4 @@ Executes Python script code or a script file inside an active Python runtime sco ```xml -``` \ No newline at end of file +``` diff --git a/Activities/Python/UiPath.Python.Packaging/docs/overview.md b/Activities/Python/UiPath.Python.Packaging/docs/overview.md index d7ca49c6..bccf727f 100644 --- a/Activities/Python/UiPath.Python.Packaging/docs/overview.md +++ b/Activities/Python/UiPath.Python.Packaging/docs/overview.md @@ -11,7 +11,7 @@ XAML activity documentation for the Python package. | Activity | Description | |----------|-------------| | [Get Python Object](activities/GetObject.md) | Get the .NET type from a PythonObject | -| [Invoke Python Method](activities/InvokeMethod.md) | Invoke Python method | -| [Load Python Script](activities/LoadScript.md) | Loads and executes a Python script | -| [Python Scope](activities/PythonScope.md) | Python activities container | -| [Run Python Script](activities/RunScript.md) | Invoke Python script activity | +| [Invoke Python Method](activities/InvokeMethod.md) | Invokes a method on a Python object instance. | +| [Load Python Script](activities/LoadScript.md) | Loads and executes a Python script. | +| [Python Scope](activities/PythonScope.md) | Initializes and manages the Python runtime session. | +| [Run Python Script](activities/RunScript.md) | Executes Python script code or a script file. | From 01b761684dd06f8fb0350c93bacb98c82d04e484 Mon Sep 17 00:00:00 2001 From: Alexandru Marinescu Date: Mon, 30 Mar 2026 13:30:21 +0300 Subject: [PATCH 3/3] docs(python): move Version property to Configuration section in PythonScope.md - Move Version from Input to Configuration table (it's a plain Property, not InArgument) - Fix Display Name from 'Python Scope' to 'Version' - Fix Description from 'Python activities container' to 'Python version to use. Set to Auto to detect automatically.' - Remove Required flag (has default value Version.Auto) --- .../UiPath.Python.Packaging/docs/activities/PythonScope.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md b/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md index 12e8faf1..cceff37c 100644 --- a/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md +++ b/Activities/Python/UiPath.Python.Packaging/docs/activities/PythonScope.md @@ -16,13 +16,13 @@ Container activity that initializes and manages the Python runtime session for c | `LibraryPath` | Library path (Linux or version>3.9) | InArgument | `string` | | null | | For Linux is the path to Python libpython*.so library including library name. For Windows (Version>3.9) path to python**.dll including library name(usually is in Python Home path. For Windows (Version<=3.9) leave empty. | | `OperationTimeout` | Timeout | InArgument | `double` | | 3600 | | The amount of time to allow a Python script to run until it is terminated and an exception is thrown. | | `Path` | Path | InArgument | `string` | | null | | Python home path | -| `Version` | Python Scope | Property | `Version` | Yes | Version.Auto | | Python activities container | | `WorkingFolder` | WorkingFolder | InArgument | `string` | | null | | Used to specify the working folder of the scripts executing under the current scope | ### Configuration | Name | Display Name | Type | Default | Description | |------|-------------|------|---------|-------------| +| `Version` | Version | `Version` | Version.Auto | Python version to use. Set to Auto to detect automatically. | | `TargetPlatform` | Target | `TargetPlatform` | TargetPlatform.x64 | Specifies the Python runtime platform | ### Output