uipath 2.0.30__tar.gz → 2.0.32__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of uipath might be problematic. Click here for more details.
- {uipath-2.0.30 → uipath-2.0.32}/.github/workflows/build.yml +0 -1
- {uipath-2.0.30 → uipath-2.0.32}/.gitignore +6 -0
- {uipath-2.0.30 → uipath-2.0.32}/PKG-INFO +4 -2
- {uipath-2.0.30 → uipath-2.0.32}/README.md +3 -1
- {uipath-2.0.30 → uipath-2.0.32}/docs/CONTRIBUTING.md +0 -5
- uipath-2.0.32/docs/core/getting_started.md +227 -0
- uipath-2.0.32/docs/core/index.md +7 -0
- uipath-2.0.32/docs/hooks.py +13 -0
- uipath-2.0.32/docs/langchain/chat_models.md +3 -0
- uipath-2.0.32/docs/langchain/context_grounding.md +9 -0
- uipath-2.0.32/docs/langchain/human_in_the_loop.md +3 -0
- uipath-2.0.32/docs/langchain/index.md +7 -0
- uipath-2.0.32/docs/stylesheets/extra.css +79 -0
- uipath-2.0.32/mkdocs.yml +106 -0
- {uipath-2.0.30 → uipath-2.0.32}/pyproject.toml +4 -1
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_auth/_portal_service.py +10 -13
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_utils/_processes.py +1 -1
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/cli_init.py +2 -2
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/actions_service.py +0 -17
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/queues_service.py +1 -3
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_uipath.py +13 -4
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/__init__.py +3 -0
- uipath-2.0.32/src/uipath/models/errors.py +16 -0
- {uipath-2.0.30 → uipath-2.0.32}/tests/cli/test_init.py +6 -4
- {uipath-2.0.30 → uipath-2.0.32}/tests/sdk/test_config.py +6 -16
- {uipath-2.0.30 → uipath-2.0.32}/uv.lock +29 -1
- uipath-2.0.30/docs/connections.md +0 -3
- uipath-2.0.30/docs/getting_started_agent.md +0 -29
- uipath-2.0.30/docs/getting_started_cli.md +0 -124
- uipath-2.0.30/docs/getting_started_sdk.md +0 -83
- uipath-2.0.30/docs/index.md +0 -4
- uipath-2.0.30/docs/sdk.md +0 -3
- uipath-2.0.30/mkdocs.yml +0 -80
- {uipath-2.0.30 → uipath-2.0.32}/.cursorrules +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.editorconfig +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.gitattributes +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.github/workflows/cd.yml +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.github/workflows/ci.yml +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.github/workflows/commitlint.yml +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.github/workflows/lint.yml +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.github/workflows/publish-dev.yml +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.github/workflows/test.yml +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.pre-commit-config.yaml +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.python-version +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.vscode/extensions.json +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/.vscode/settings.json +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/CONTRIBUTING.md +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/LICENSE +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/docs/assets/uipath-logo.svg +0 -0
- {uipath-2.0.30/docs → uipath-2.0.32/docs/core}/actions.md +0 -0
- {uipath-2.0.30/docs → uipath-2.0.32/docs/core}/assets.md +0 -0
- {uipath-2.0.30/docs → uipath-2.0.32/docs/core}/buckets.md +0 -0
- {uipath-2.0.30/docs → uipath-2.0.32/docs/core}/context_grounding.md +0 -0
- {uipath-2.0.30/docs → uipath-2.0.32/docs/core}/jobs.md +0 -0
- {uipath-2.0.30/docs → uipath-2.0.32/docs/core}/processes.md +0 -0
- {uipath-2.0.30/docs → uipath-2.0.32/docs/core}/queues.md +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/justfile +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/py.typed +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/__init__.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/README.md +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/__init__.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_auth/_auth_server.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_auth/_models.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_auth/_oidc_utils.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_auth/_utils.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_auth/auth_config.json +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_auth/index.html +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_auth/localhost.crt +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_auth/localhost.key +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_runtime/_contracts.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_runtime/_logging.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_runtime/_runtime.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_templates/.psmdcp.template +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_templates/.rels.template +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_templates/[Content_Types].xml.template +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_templates/main.py.template +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_templates/package.nuspec.template +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_utils/_common.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_utils/_console.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_utils/_folders.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_utils/_input_args.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/_utils/_parse_ast.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/cli_auth.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/cli_deploy.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/cli_invoke.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/cli_new.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/cli_pack.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/cli_publish.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/cli_run.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/middlewares.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_cli/spinner.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_config.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_execution_context.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_folder_context.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/__init__.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/_base_service.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/api_client.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/assets_service.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/buckets_service.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/connections_service.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/connections_service.pyi +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/context_grounding_service.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/folder_service.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/jobs_service.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/llm_gateway_service.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_services/processes_service.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_utils/__init__.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_utils/_endpoint.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_utils/_infer_bindings.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_utils/_logs.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_utils/_request_override.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_utils/_request_spec.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_utils/_user_agent.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/_utils/constants.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/action_schema.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/actions.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/assets.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/connections.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/context_grounding.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/context_grounding_index.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/exceptions.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/interrupt_models.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/job.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/llm_gateway.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/processes.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/models/queues.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/py.typed +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/tracing/__init__.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/tracing/_otel_exporters.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/tracing/_traced.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/src/uipath/tracing/_utils.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/tests/__init__.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/tests/conftest.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/tests/sdk/services/test_llm_integration.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/tests/sdk/services/test_llm_service.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/tests/sdk/services/test_uipath_llm_integration.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/tests/tracing/test_otel_exporters.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/tests/tracing/test_span_utils.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/tests/tracing/test_traced.py +0 -0
- {uipath-2.0.30 → uipath-2.0.32}/tests/tracing/test_tracing_manager.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.32
|
|
4
4
|
Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
|
|
5
5
|
Project-URL: Homepage, https://uipath.com
|
|
6
6
|
Project-URL: Repository, https://github.com/UiPath/uipath-python
|
|
@@ -39,6 +39,8 @@ A Python SDK that enables programmatic interaction with UiPath Platform services
|
|
|
39
39
|
|
|
40
40
|
Use the [UiPath LangChain SDK](https://github.com/UiPath/uipath-langchain-python) to pack and publish LangGraph Agents.
|
|
41
41
|
|
|
42
|
+
This [quickstart guide](https://uipath.github.io/uipath-python/) walks you through deploying your first agent to UiPath Cloud Platform.
|
|
43
|
+
|
|
42
44
|
## Table of Contents
|
|
43
45
|
|
|
44
46
|
- [Installation](#installation)
|
|
@@ -211,4 +213,4 @@ To properly use the CLI for packaging and publishing, your project should includ
|
|
|
211
213
|
|
|
212
214
|
### Setting Up a Development Environment
|
|
213
215
|
|
|
214
|
-
Please read [CONTRIBUTING.md](
|
|
216
|
+
Please read [CONTRIBUTING.md](https://github.com/UiPath/uipath-python/blob/main/CONTRIBUTING.md) before submitting a pull request.
|
|
@@ -8,6 +8,8 @@ A Python SDK that enables programmatic interaction with UiPath Platform services
|
|
|
8
8
|
|
|
9
9
|
Use the [UiPath LangChain SDK](https://github.com/UiPath/uipath-langchain-python) to pack and publish LangGraph Agents.
|
|
10
10
|
|
|
11
|
+
This [quickstart guide](https://uipath.github.io/uipath-python/) walks you through deploying your first agent to UiPath Cloud Platform.
|
|
12
|
+
|
|
11
13
|
## Table of Contents
|
|
12
14
|
|
|
13
15
|
- [Installation](#installation)
|
|
@@ -180,4 +182,4 @@ To properly use the CLI for packaging and publishing, your project should includ
|
|
|
180
182
|
|
|
181
183
|
### Setting Up a Development Environment
|
|
182
184
|
|
|
183
|
-
Please read [CONTRIBUTING.md](
|
|
185
|
+
Please read [CONTRIBUTING.md](https://github.com/UiPath/uipath-python/blob/main/CONTRIBUTING.md) before submitting a pull request.
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Getting Started
|
|
2
|
+
|
|
3
|
+
## Prerequisites
|
|
4
|
+
|
|
5
|
+
- Python 3.10 or higher
|
|
6
|
+
- `pip` or `uv` package manager
|
|
7
|
+
- A UiPath Platform account with appropriate permissions
|
|
8
|
+
|
|
9
|
+
## Getting Started with the CLI
|
|
10
|
+
//// tab | Linux, macOS, Windows Bash
|
|
11
|
+
<!-- termynal -->
|
|
12
|
+
```shell
|
|
13
|
+
> mkdir example
|
|
14
|
+
> cd example
|
|
15
|
+
```
|
|
16
|
+
////
|
|
17
|
+
|
|
18
|
+
//// tab | Windows PowerShell
|
|
19
|
+
<!-- termynal -->
|
|
20
|
+
```powershell
|
|
21
|
+
> New-Item -ItemType Directory -Path example
|
|
22
|
+
> Set-Location example
|
|
23
|
+
```
|
|
24
|
+
////
|
|
25
|
+
|
|
26
|
+
//// tab | uv
|
|
27
|
+
new: true
|
|
28
|
+
<!-- termynal -->
|
|
29
|
+
```shell
|
|
30
|
+
# Initialize a new uv project in the current directory
|
|
31
|
+
> uv init . --python 3.10
|
|
32
|
+
|
|
33
|
+
# Create a new virtual environment
|
|
34
|
+
# By default, uv creates a virtual environment in a directory called .venv
|
|
35
|
+
> uv venv
|
|
36
|
+
Using CPython 3.10.16 interpreter at: [PATH]
|
|
37
|
+
Creating virtual environment at: .venv
|
|
38
|
+
Activate with: source .venv/bin/activate
|
|
39
|
+
|
|
40
|
+
# Activate the virtual environment
|
|
41
|
+
# For Windows PowerShell: .venv\Scripts\Activate.ps1
|
|
42
|
+
# For Windows Bash: source .venv/Scripts/activate
|
|
43
|
+
> source .venv/bin/activate
|
|
44
|
+
|
|
45
|
+
# Install the uipath package
|
|
46
|
+
> uv add uipath
|
|
47
|
+
|
|
48
|
+
# Verify the uipath installation
|
|
49
|
+
> uipath --version
|
|
50
|
+
uipath version 2.0.29
|
|
51
|
+
```
|
|
52
|
+
////
|
|
53
|
+
|
|
54
|
+
//// tab | pip
|
|
55
|
+
<!-- termynal -->
|
|
56
|
+
```shell
|
|
57
|
+
# Create a new virtual environment
|
|
58
|
+
> python -m venv .venv
|
|
59
|
+
|
|
60
|
+
# Activate the virtual environment
|
|
61
|
+
# For Windows PowerShell: .venv\Scripts\Activate.ps1
|
|
62
|
+
# For Windows Bash: source .venv/Scripts/activate
|
|
63
|
+
> source .venv/bin/activate
|
|
64
|
+
|
|
65
|
+
# Upgrade pip to the latest version
|
|
66
|
+
> python -m pip install --upgrade pip
|
|
67
|
+
|
|
68
|
+
# Install the uipath package
|
|
69
|
+
> pip install uipath
|
|
70
|
+
|
|
71
|
+
# Verify the uipath installation
|
|
72
|
+
> uipath --version
|
|
73
|
+
uipath version 2.0.29
|
|
74
|
+
```
|
|
75
|
+
////
|
|
76
|
+
|
|
77
|
+
### Authentication
|
|
78
|
+
|
|
79
|
+
To debug your script locally and publish your project, you need to authenticate with UiPath:
|
|
80
|
+
|
|
81
|
+
<!-- termynal -->
|
|
82
|
+
```shell
|
|
83
|
+
> uipath auth
|
|
84
|
+
⠋ Authenticating with UiPath ...
|
|
85
|
+
🔗 If a browser window did not open, please open the following URL in your browser: [LINK]
|
|
86
|
+
👇 Select tenant:
|
|
87
|
+
0: Tenant1
|
|
88
|
+
1: Tenant2
|
|
89
|
+
Select tenant number: 0
|
|
90
|
+
Selected tenant: Tenant1
|
|
91
|
+
✓ Authentication successful.
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
This command opens a new browser window for authentication. If you encounter any issues, copy the URL from the terminal and paste it into your browser. After authentication, select your tenant by entering its corresponding number in the terminal.
|
|
95
|
+
|
|
96
|
+
Upon successful authentication, your project will contain a `.env` file with your access token, UiPath URL, and other configuration details.
|
|
97
|
+
|
|
98
|
+
### Writing Your Code
|
|
99
|
+
|
|
100
|
+
Open `main.py` in your code editor. You can start with this example code:
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
from dataclasses import dataclass
|
|
104
|
+
from typing import Optional
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
@dataclass
|
|
108
|
+
class EchoIn:
|
|
109
|
+
message: str
|
|
110
|
+
repeat: Optional[int] = 1
|
|
111
|
+
prefix: Optional[str] = None
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@dataclass
|
|
115
|
+
class EchoOut:
|
|
116
|
+
message: str
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def main(input: EchoIn) -> EchoOut:
|
|
120
|
+
result = []
|
|
121
|
+
for _ in range(input.repeat or 1):
|
|
122
|
+
line = input.message
|
|
123
|
+
if input.prefix:
|
|
124
|
+
line = f"{input.prefix}: {line}"
|
|
125
|
+
result.append(line)
|
|
126
|
+
|
|
127
|
+
return EchoOut(message="\n".join(result))
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Initializing the UiPath Project
|
|
131
|
+
|
|
132
|
+
To create a UiPath project, run the following command in your terminal:
|
|
133
|
+
|
|
134
|
+
<!-- termynal -->
|
|
135
|
+
```shell
|
|
136
|
+
> uipath init
|
|
137
|
+
⠋ Initializing UiPath project ...
|
|
138
|
+
✓ Created 'uipath.json' file.
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
/// admonition
|
|
142
|
+
type: warning
|
|
143
|
+
|
|
144
|
+
The `uipath init` command executes your `main.py` file to analyze its structure and collect information about inputs and outputs.
|
|
145
|
+
///
|
|
146
|
+
|
|
147
|
+
This command creates a `uipath.json` file containing the project metadata.
|
|
148
|
+
|
|
149
|
+
<!-- termynal -->
|
|
150
|
+
```shell
|
|
151
|
+
# Debug your project
|
|
152
|
+
> uipath run main.py '{"message": "test"}'
|
|
153
|
+
[2025-04-11 10:13:58,857][INFO] {'message': 'test'}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Packaging and Publishing
|
|
157
|
+
|
|
158
|
+
Before packaging your project, add your details to the `pyproject.toml` file. Add the following line below the `description` field:
|
|
159
|
+
|
|
160
|
+
```toml
|
|
161
|
+
authors = [{ name = "Your Name", email = "your.email@uipath.com" }]
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Then, package your project:
|
|
165
|
+
|
|
166
|
+
<!-- termynal -->
|
|
167
|
+
```shell
|
|
168
|
+
> uipath pack
|
|
169
|
+
⠋ Packaging project ...
|
|
170
|
+
Name : test
|
|
171
|
+
Version : 0.1.0
|
|
172
|
+
Description: Add your description here
|
|
173
|
+
Authors : Your Name
|
|
174
|
+
✓ Project successfully packaged.
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Finally, publish your package:
|
|
178
|
+
|
|
179
|
+
<!-- termynal -->
|
|
180
|
+
```shell
|
|
181
|
+
> uipath publish
|
|
182
|
+
⠋ Fetching available package feeds...
|
|
183
|
+
👇 Select package feed:
|
|
184
|
+
0: Orchestrator Tenant Processes Feed
|
|
185
|
+
1: Orchestrator Personal Workspace Feed
|
|
186
|
+
Select feed number: 0
|
|
187
|
+
Selected feed: Orchestrator Tenant Processes Feed
|
|
188
|
+
⠸ Publishing most recent package: test.0.1.0.nupkg ...
|
|
189
|
+
✓ Package published successfully!
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
After selecting your publishing destination (tenant or personal workspace), you'll see details about your package and a confirmation message.
|
|
193
|
+
|
|
194
|
+
## Getting Started with the SDK
|
|
195
|
+
|
|
196
|
+
Create a new project following the same steps as above.
|
|
197
|
+
|
|
198
|
+
Open `main.py` in your code editor and add the following code:
|
|
199
|
+
|
|
200
|
+
```python
|
|
201
|
+
from uipath import UiPath
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
def main():
|
|
205
|
+
sdk = UiPath()
|
|
206
|
+
sdk.processes.invoke(
|
|
207
|
+
"test",
|
|
208
|
+
input_arguments={
|
|
209
|
+
"message": "Hello, World!",
|
|
210
|
+
"repeat": 3,
|
|
211
|
+
"prefix": "[Echo]"
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Verifying the Execution
|
|
217
|
+
|
|
218
|
+
<!-- termynal -->
|
|
219
|
+
```shell
|
|
220
|
+
> uipath run main.py
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Open your browser and navigate to UiPath. Go to the specified folder, where you'll see a new job for `test` has been executed. The output will be:
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
[Echo]: Hello, World! Echo: Hello, World! Echo: Hello, World!
|
|
227
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import shutil
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def redirect_index(*args, **kwargs):
|
|
6
|
+
if not os.path.exists("docs/quick_start_images"):
|
|
7
|
+
shutil.copy(
|
|
8
|
+
"docs/plugins/uipath-langchain-python/docs/quick_start.md", "docs/index.md"
|
|
9
|
+
)
|
|
10
|
+
shutil.copytree(
|
|
11
|
+
"docs/plugins/uipath-langchain-python/docs/quick_start_images",
|
|
12
|
+
"docs/quick_start_images",
|
|
13
|
+
)
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.md-header {
|
|
2
|
+
.md-header__title {
|
|
3
|
+
.md-header__topic:first-child {
|
|
4
|
+
display: none;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--md-primary-bg-color: #ffffff;
|
|
12
|
+
--md-primary-fg-color: #182027;
|
|
13
|
+
--md-typeset-a-color: #0067df;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
[data-md-color-scheme=slate] {
|
|
18
|
+
--md-typeset-a-color: #0067df;
|
|
19
|
+
|
|
20
|
+
.md-header {
|
|
21
|
+
background-color: #182027;
|
|
22
|
+
color: #ffffff;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
body[data-md-color-scheme=slate] {
|
|
27
|
+
background-color: #182027 !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
.md-header {
|
|
32
|
+
--md-primary-bg-color: #182027;
|
|
33
|
+
--md-primary-fg-color: #ffffff;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@media screen and (min-width: 60em) {
|
|
39
|
+
.md-search__form {
|
|
40
|
+
background-color: #ffffff;
|
|
41
|
+
color: #182027 !important;
|
|
42
|
+
border: 1px solid #182027;
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
background-color: #ffffff;
|
|
46
|
+
border-color: #0067df;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-md-color-scheme=slate] {
|
|
51
|
+
.md-search__form {
|
|
52
|
+
background-color: #182027;
|
|
53
|
+
color: #ffffff !important;
|
|
54
|
+
border: 1px solid #ffffff;
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
background-color: #182027;
|
|
58
|
+
border-color: #0067df;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.md-search__icon {
|
|
63
|
+
color: #ffffff !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.md-search__icon {
|
|
68
|
+
color: #182027 !important;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@media (min-width: 1220px) {
|
|
74
|
+
.md-sidebar {
|
|
75
|
+
.md-nav__title {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
uipath-2.0.32/mkdocs.yml
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
site_name: UiPath SDK
|
|
2
|
+
site_url: https://uipath.github.io/uipath-python/
|
|
3
|
+
|
|
4
|
+
repo_name: UiPath/uipath-python
|
|
5
|
+
repo_url: https://github.com/UiPath/uipath-python
|
|
6
|
+
|
|
7
|
+
copyright: Copyright © 2025 UiPath
|
|
8
|
+
|
|
9
|
+
extra_css:
|
|
10
|
+
- stylesheets/extra.css
|
|
11
|
+
|
|
12
|
+
theme:
|
|
13
|
+
name: material
|
|
14
|
+
palette:
|
|
15
|
+
- media: "(prefers-color-scheme: light)"
|
|
16
|
+
scheme: default
|
|
17
|
+
primary: custom
|
|
18
|
+
accent: custom
|
|
19
|
+
toggle:
|
|
20
|
+
icon: material/brightness-7
|
|
21
|
+
name: Switch to dark mode
|
|
22
|
+
- media: "(prefers-color-scheme: dark)"
|
|
23
|
+
scheme: slate
|
|
24
|
+
primary: custom
|
|
25
|
+
accent: custom
|
|
26
|
+
toggle:
|
|
27
|
+
icon: material/brightness-4
|
|
28
|
+
name: Switch to light mode
|
|
29
|
+
icon:
|
|
30
|
+
repo: fontawesome/brands/github
|
|
31
|
+
features:
|
|
32
|
+
- content.code.copy
|
|
33
|
+
- content.footnote.tooltips
|
|
34
|
+
- content.tabs.link
|
|
35
|
+
- content.tooltips
|
|
36
|
+
- navigation.expand
|
|
37
|
+
- navigation.footer
|
|
38
|
+
- navigation.instant.prefetch
|
|
39
|
+
- navigation.instant.progress
|
|
40
|
+
- navigation.sections
|
|
41
|
+
- search.highlight
|
|
42
|
+
- search.share
|
|
43
|
+
- search.suggest
|
|
44
|
+
- toc.follow
|
|
45
|
+
logo: assets/uipath-logo.svg
|
|
46
|
+
|
|
47
|
+
nav:
|
|
48
|
+
- UiPath Langchain SDK:
|
|
49
|
+
- langchain/index.md
|
|
50
|
+
- Getting Started: index.md
|
|
51
|
+
- Chat Models: langchain/chat_models.md
|
|
52
|
+
- Context Grounding: langchain/context_grounding.md
|
|
53
|
+
- Human In The Loop: langchain/human_in_the_loop.md
|
|
54
|
+
- UiPath SDK:
|
|
55
|
+
- core/index.md
|
|
56
|
+
- Getting Started: core/getting_started.md
|
|
57
|
+
- Services:
|
|
58
|
+
- Actions: core/actions.md
|
|
59
|
+
- Assets: core/assets.md
|
|
60
|
+
- Buckets: core/buckets.md
|
|
61
|
+
- Context Grounding: core/context_grounding.md
|
|
62
|
+
- Jobs: core/jobs.md
|
|
63
|
+
- Queues: core/queues.md
|
|
64
|
+
- Processes: core/processes.md
|
|
65
|
+
- How To Contribute: CONTRIBUTING.md
|
|
66
|
+
|
|
67
|
+
plugins:
|
|
68
|
+
- search
|
|
69
|
+
- mkdocstrings
|
|
70
|
+
- mkdocs-simple-hooks:
|
|
71
|
+
hooks:
|
|
72
|
+
on_pre_build: "docs.hooks:redirect_index"
|
|
73
|
+
- termynal:
|
|
74
|
+
prompt_literal_start:
|
|
75
|
+
- "$"
|
|
76
|
+
- ">"
|
|
77
|
+
|
|
78
|
+
markdown_extensions:
|
|
79
|
+
- attr_list
|
|
80
|
+
- md_in_html
|
|
81
|
+
- admonition
|
|
82
|
+
- pymdownx.blocks.tab:
|
|
83
|
+
alternate_style: true
|
|
84
|
+
- pymdownx.blocks.admonition:
|
|
85
|
+
types:
|
|
86
|
+
- note
|
|
87
|
+
- attention
|
|
88
|
+
- caution
|
|
89
|
+
- danger
|
|
90
|
+
- error
|
|
91
|
+
- tip
|
|
92
|
+
- hint
|
|
93
|
+
- warning
|
|
94
|
+
- info
|
|
95
|
+
- check
|
|
96
|
+
- pymdownx.details
|
|
97
|
+
- pymdownx.highlight:
|
|
98
|
+
anchor_linenums: true
|
|
99
|
+
- pymdownx.superfences
|
|
100
|
+
- pymdownx.highlight:
|
|
101
|
+
anchor_linenums: true
|
|
102
|
+
- pymdownx.inlinehilite
|
|
103
|
+
- pymdownx.magiclink
|
|
104
|
+
- pymdownx.snippets
|
|
105
|
+
- pymdownx.tabbed:
|
|
106
|
+
alternate_style: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "uipath"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.32"
|
|
4
4
|
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
|
|
5
5
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -56,6 +56,8 @@ dev = [
|
|
|
56
56
|
"mkdocs-material>=9.6.7",
|
|
57
57
|
"mkdocstrings>=0.29.0",
|
|
58
58
|
"mkdocstrings-python>=1.16.5",
|
|
59
|
+
"termynal>=0.13.0",
|
|
60
|
+
"mkdocs-simple-hooks>=0.1.5",
|
|
59
61
|
]
|
|
60
62
|
|
|
61
63
|
[project.optional-dependencies]
|
|
@@ -80,6 +82,7 @@ ignore-decorators = []
|
|
|
80
82
|
"*" = ["E501"]
|
|
81
83
|
"tests/**" = ["D"]
|
|
82
84
|
"*_test.py" = ["D"]
|
|
85
|
+
"docs/**" = ["D"]
|
|
83
86
|
# TODO: Remove this once the documentation for CLI is updated
|
|
84
87
|
"uipath/_cli/**" = ["D"]
|
|
85
88
|
# TODO: Remove this once model documentation is added
|
|
@@ -145,19 +145,16 @@ class PortalService:
|
|
|
145
145
|
url_try_enable_first_run = f"{or_base_url}/api/StudioWeb/TryEnableFirstRun"
|
|
146
146
|
url_acquire_license = f"{or_base_url}/api/StudioWeb/AcquireLicense"
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
or acquire_license_response.status_code != 200
|
|
159
|
-
):
|
|
160
|
-
raise Exception("Failed to post auth")
|
|
148
|
+
try:
|
|
149
|
+
[try_enable_first_run_response, acquire_license_response] = [
|
|
150
|
+
requests.post(
|
|
151
|
+
url,
|
|
152
|
+
headers={"Authorization": f"Bearer {self.access_token}"},
|
|
153
|
+
)
|
|
154
|
+
for url in [url_try_enable_first_run, url_acquire_license]
|
|
155
|
+
]
|
|
156
|
+
except Exception:
|
|
157
|
+
pass
|
|
161
158
|
|
|
162
159
|
def has_initialized_auth(self):
|
|
163
160
|
try:
|
|
@@ -17,7 +17,7 @@ def get_release_info(
|
|
|
17
17
|
"x-uipath-organizationunitid": str(folder_id),
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
release_url = f"{base_url}/orchestrator_/odata/Releases/UiPath.Server.Configuration.OData.ListReleases?$select=Id,Key&$top=1&$filter=
|
|
20
|
+
release_url = f"{base_url}/orchestrator_/odata/Releases/UiPath.Server.Configuration.OData.ListReleases?$select=Id,Key&$top=1&$filter=Name%20eq%20%27{urllib.parse.quote(package_name)}%27"
|
|
21
21
|
response = requests.get(release_url, headers=headers)
|
|
22
22
|
if response.status_code == 200:
|
|
23
23
|
try:
|
|
@@ -20,7 +20,7 @@ def generate_env_file(target_directory):
|
|
|
20
20
|
|
|
21
21
|
if not os.path.exists(env_path):
|
|
22
22
|
relative_path = os.path.relpath(env_path, target_directory)
|
|
23
|
-
console.success(f" Created {relative_path} file.")
|
|
23
|
+
console.success(f" Created '{relative_path}' file.")
|
|
24
24
|
with open(env_path, "w") as f:
|
|
25
25
|
f.write("UIPATH_ACCESS_TOKEN=YOUR_TOKEN_HERE\n")
|
|
26
26
|
f.write("UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME\n")
|
|
@@ -109,4 +109,4 @@ def init(entrypoint: str) -> None:
|
|
|
109
109
|
|
|
110
110
|
console.success(f"Created '{config_path}' file.")
|
|
111
111
|
except Exception as e:
|
|
112
|
-
console.error(f"Error creating configuration file
|
|
112
|
+
console.error(f"Error creating configuration file:\n {str(e)}")
|
|
@@ -170,12 +170,6 @@ class ActionsService(FolderContext, BaseService):
|
|
|
170
170
|
"""
|
|
171
171
|
|
|
172
172
|
def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
|
|
173
|
-
"""Initializes the ActionsService with configuration and execution context.
|
|
174
|
-
|
|
175
|
-
Args:
|
|
176
|
-
config: The configuration object containing API settings
|
|
177
|
-
execution_context: The execution context for the service
|
|
178
|
-
"""
|
|
179
173
|
super().__init__(config=config, execution_context=execution_context)
|
|
180
174
|
|
|
181
175
|
@traced(name="actions_create", run_type="uipath")
|
|
@@ -351,17 +345,6 @@ class ActionsService(FolderContext, BaseService):
|
|
|
351
345
|
async def _get_app_key_and_schema_async(
|
|
352
346
|
self, app_name: Optional[str], app_folder_path: Optional[str]
|
|
353
347
|
) -> Tuple[str, Optional[ActionSchema]]:
|
|
354
|
-
"""Retrieves an application's key and schema asynchronously.
|
|
355
|
-
|
|
356
|
-
Args:
|
|
357
|
-
app_name: The name of the application to retrieve
|
|
358
|
-
|
|
359
|
-
Returns:
|
|
360
|
-
Tuple[str, Optional[ActionSchema]]: A tuple containing the application key and schema
|
|
361
|
-
|
|
362
|
-
Raises:
|
|
363
|
-
Exception: If app_name is not provided
|
|
364
|
-
"""
|
|
365
348
|
if not app_name:
|
|
366
349
|
raise Exception("appName or appKey is required")
|
|
367
350
|
spec = _retrieve_app_key_spec(app_name=app_name)
|
|
@@ -224,9 +224,7 @@ class QueuesService(FolderContext, BaseService):
|
|
|
224
224
|
def _list_items_spec(self) -> RequestSpec:
|
|
225
225
|
return RequestSpec(
|
|
226
226
|
method="GET",
|
|
227
|
-
endpoint=Endpoint(
|
|
228
|
-
"/orchestrator_/odata/Queues/UiPathODataSvc.GetQueueItems"
|
|
229
|
-
),
|
|
227
|
+
endpoint=Endpoint("/orchestrator_/odata/QueueItems"),
|
|
230
228
|
)
|
|
231
229
|
|
|
232
230
|
def _create_item_spec(self, item: Union[Dict[str, Any], QueueItem]) -> RequestSpec:
|