uipath 2.0.31__tar.gz → 2.0.33__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.

Files changed (140) hide show
  1. {uipath-2.0.31 → uipath-2.0.33}/.github/workflows/build.yml +0 -1
  2. {uipath-2.0.31 → uipath-2.0.33}/.gitignore +6 -0
  3. {uipath-2.0.31 → uipath-2.0.33}/PKG-INFO +5 -3
  4. {uipath-2.0.31 → uipath-2.0.33}/README.md +4 -2
  5. {uipath-2.0.31 → uipath-2.0.33}/docs/CONTRIBUTING.md +0 -5
  6. uipath-2.0.33/docs/core/getting_started.md +246 -0
  7. uipath-2.0.33/docs/core/index.md +7 -0
  8. uipath-2.0.33/docs/hooks.py +13 -0
  9. uipath-2.0.33/docs/langchain/chat_models.md +3 -0
  10. uipath-2.0.33/docs/langchain/context_grounding.md +9 -0
  11. uipath-2.0.33/docs/langchain/human_in_the_loop.md +3 -0
  12. uipath-2.0.33/docs/langchain/index.md +7 -0
  13. uipath-2.0.33/docs/stylesheets/extra.css +83 -0
  14. uipath-2.0.33/mkdocs.yml +106 -0
  15. {uipath-2.0.31 → uipath-2.0.33}/pyproject.toml +4 -1
  16. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_auth/_portal_service.py +10 -13
  17. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_runtime/_contracts.py +1 -1
  18. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_runtime/_logging.py +28 -16
  19. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/cli_init.py +1 -1
  20. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/actions_service.py +0 -17
  21. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/assets_service.py +6 -2
  22. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/queues_service.py +36 -15
  23. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_uipath.py +13 -4
  24. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/__init__.py +3 -0
  25. uipath-2.0.33/src/uipath/models/errors.py +16 -0
  26. {uipath-2.0.31 → uipath-2.0.33}/tests/cli/test_init.py +5 -3
  27. {uipath-2.0.31 → uipath-2.0.33}/tests/sdk/test_config.py +6 -16
  28. {uipath-2.0.31 → uipath-2.0.33}/uv.lock +29 -1
  29. uipath-2.0.31/docs/connections.md +0 -3
  30. uipath-2.0.31/docs/getting_started_agent.md +0 -29
  31. uipath-2.0.31/docs/getting_started_cli.md +0 -124
  32. uipath-2.0.31/docs/getting_started_sdk.md +0 -83
  33. uipath-2.0.31/docs/index.md +0 -4
  34. uipath-2.0.31/docs/sdk.md +0 -3
  35. uipath-2.0.31/mkdocs.yml +0 -80
  36. {uipath-2.0.31 → uipath-2.0.33}/.cursorrules +0 -0
  37. {uipath-2.0.31 → uipath-2.0.33}/.editorconfig +0 -0
  38. {uipath-2.0.31 → uipath-2.0.33}/.gitattributes +0 -0
  39. {uipath-2.0.31 → uipath-2.0.33}/.github/workflows/cd.yml +0 -0
  40. {uipath-2.0.31 → uipath-2.0.33}/.github/workflows/ci.yml +0 -0
  41. {uipath-2.0.31 → uipath-2.0.33}/.github/workflows/commitlint.yml +0 -0
  42. {uipath-2.0.31 → uipath-2.0.33}/.github/workflows/lint.yml +0 -0
  43. {uipath-2.0.31 → uipath-2.0.33}/.github/workflows/publish-dev.yml +0 -0
  44. {uipath-2.0.31 → uipath-2.0.33}/.github/workflows/test.yml +0 -0
  45. {uipath-2.0.31 → uipath-2.0.33}/.pre-commit-config.yaml +0 -0
  46. {uipath-2.0.31 → uipath-2.0.33}/.python-version +0 -0
  47. {uipath-2.0.31 → uipath-2.0.33}/.vscode/extensions.json +0 -0
  48. {uipath-2.0.31 → uipath-2.0.33}/.vscode/settings.json +0 -0
  49. {uipath-2.0.31 → uipath-2.0.33}/CONTRIBUTING.md +0 -0
  50. {uipath-2.0.31 → uipath-2.0.33}/LICENSE +0 -0
  51. {uipath-2.0.31 → uipath-2.0.33}/docs/assets/uipath-logo.svg +0 -0
  52. {uipath-2.0.31/docs → uipath-2.0.33/docs/core}/actions.md +0 -0
  53. {uipath-2.0.31/docs → uipath-2.0.33/docs/core}/assets.md +0 -0
  54. {uipath-2.0.31/docs → uipath-2.0.33/docs/core}/buckets.md +0 -0
  55. {uipath-2.0.31/docs → uipath-2.0.33/docs/core}/context_grounding.md +0 -0
  56. {uipath-2.0.31/docs → uipath-2.0.33/docs/core}/jobs.md +0 -0
  57. {uipath-2.0.31/docs → uipath-2.0.33/docs/core}/processes.md +0 -0
  58. {uipath-2.0.31/docs → uipath-2.0.33/docs/core}/queues.md +0 -0
  59. {uipath-2.0.31 → uipath-2.0.33}/justfile +0 -0
  60. {uipath-2.0.31 → uipath-2.0.33}/py.typed +0 -0
  61. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/__init__.py +0 -0
  62. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/README.md +0 -0
  63. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/__init__.py +0 -0
  64. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_auth/_auth_server.py +0 -0
  65. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_auth/_models.py +0 -0
  66. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_auth/_oidc_utils.py +0 -0
  67. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_auth/_utils.py +0 -0
  68. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_auth/auth_config.json +0 -0
  69. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_auth/index.html +0 -0
  70. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_auth/localhost.crt +0 -0
  71. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_auth/localhost.key +0 -0
  72. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_runtime/_runtime.py +0 -0
  73. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_templates/.psmdcp.template +0 -0
  74. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_templates/.rels.template +0 -0
  75. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_templates/[Content_Types].xml.template +0 -0
  76. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_templates/main.py.template +0 -0
  77. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_templates/package.nuspec.template +0 -0
  78. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_utils/_common.py +0 -0
  79. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_utils/_console.py +0 -0
  80. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_utils/_folders.py +0 -0
  81. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_utils/_input_args.py +0 -0
  82. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_utils/_parse_ast.py +0 -0
  83. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/_utils/_processes.py +0 -0
  84. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/cli_auth.py +0 -0
  85. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/cli_deploy.py +0 -0
  86. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/cli_invoke.py +0 -0
  87. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/cli_new.py +0 -0
  88. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/cli_pack.py +0 -0
  89. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/cli_publish.py +0 -0
  90. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/cli_run.py +0 -0
  91. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/middlewares.py +0 -0
  92. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_cli/spinner.py +0 -0
  93. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_config.py +0 -0
  94. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_execution_context.py +0 -0
  95. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_folder_context.py +0 -0
  96. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/__init__.py +0 -0
  97. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/_base_service.py +0 -0
  98. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/api_client.py +0 -0
  99. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/buckets_service.py +0 -0
  100. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/connections_service.py +0 -0
  101. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/connections_service.pyi +0 -0
  102. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/context_grounding_service.py +0 -0
  103. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/folder_service.py +0 -0
  104. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/jobs_service.py +0 -0
  105. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/llm_gateway_service.py +0 -0
  106. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_services/processes_service.py +0 -0
  107. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_utils/__init__.py +0 -0
  108. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_utils/_endpoint.py +0 -0
  109. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_utils/_infer_bindings.py +0 -0
  110. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_utils/_logs.py +0 -0
  111. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_utils/_request_override.py +0 -0
  112. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_utils/_request_spec.py +0 -0
  113. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_utils/_user_agent.py +0 -0
  114. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/_utils/constants.py +0 -0
  115. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/action_schema.py +0 -0
  116. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/actions.py +0 -0
  117. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/assets.py +0 -0
  118. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/connections.py +0 -0
  119. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/context_grounding.py +0 -0
  120. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/context_grounding_index.py +0 -0
  121. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/exceptions.py +0 -0
  122. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/interrupt_models.py +0 -0
  123. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/job.py +0 -0
  124. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/llm_gateway.py +0 -0
  125. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/processes.py +0 -0
  126. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/models/queues.py +0 -0
  127. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/py.typed +0 -0
  128. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/tracing/__init__.py +0 -0
  129. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/tracing/_otel_exporters.py +0 -0
  130. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/tracing/_traced.py +0 -0
  131. {uipath-2.0.31 → uipath-2.0.33}/src/uipath/tracing/_utils.py +0 -0
  132. {uipath-2.0.31 → uipath-2.0.33}/tests/__init__.py +0 -0
  133. {uipath-2.0.31 → uipath-2.0.33}/tests/conftest.py +0 -0
  134. {uipath-2.0.31 → uipath-2.0.33}/tests/sdk/services/test_llm_integration.py +0 -0
  135. {uipath-2.0.31 → uipath-2.0.33}/tests/sdk/services/test_llm_service.py +0 -0
  136. {uipath-2.0.31 → uipath-2.0.33}/tests/sdk/services/test_uipath_llm_integration.py +0 -0
  137. {uipath-2.0.31 → uipath-2.0.33}/tests/tracing/test_otel_exporters.py +0 -0
  138. {uipath-2.0.31 → uipath-2.0.33}/tests/tracing/test_span_utils.py +0 -0
  139. {uipath-2.0.31 → uipath-2.0.33}/tests/tracing/test_traced.py +0 -0
  140. {uipath-2.0.31 → uipath-2.0.33}/tests/tracing/test_tracing_manager.py +0 -0
@@ -56,7 +56,6 @@ jobs:
56
56
  if: ${{ steps.check_version.outputs.modified }} == 'true'
57
57
  run: |
58
58
  mkdir -p docs/plugins
59
- mkdir -p docs/docs
60
59
  ln -s ../../plugins/uipath-langchain-python docs/plugins/uipath-langchain-python
61
60
 
62
61
  - name: Publish Docs
@@ -17,3 +17,9 @@ wheels/
17
17
 
18
18
  **/playground.py
19
19
  **/.idea
20
+
21
+ **/docs/index.md
22
+ **/docs/plugins/*
23
+ **/docs/plugins/.*
24
+ **/docs/quick_start_images/*
25
+ **/docs/quick_start_images/.*
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.0.31
3
+ Version: 2.0.33
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
@@ -35,10 +35,12 @@ Description-Content-Type: text/markdown
35
35
  [![PyPI - Version](https://img.shields.io/pypi/v/uipath)](https://img.shields.io/pypi/v/uipath)
36
36
  [![Python versions](https://img.shields.io/pypi/pyversions/uipath.svg)](https://pypi.org/project/uipath/)
37
37
 
38
- A Python SDK that enables programmatic interaction with UiPath Platform services including processes, assets, buckets, context grounding, data services, jobs, and more. The package also features a CLI for creation, packaging, and deployment of automations to UiPath Platform.
38
+ A Python SDK that enables programmatic interaction with UiPath Cloud Platform services including processes, assets, buckets, context grounding, data services, jobs, and more. The package also features a CLI for creation, packaging, and deployment of automations to UiPath Cloud Platform.
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](./CONTRIBUTING.md) before submitting a pull request.
216
+ Please read [CONTRIBUTING.md](https://github.com/UiPath/uipath-python/blob/main/CONTRIBUTING.md) before submitting a pull request.
@@ -4,10 +4,12 @@
4
4
  [![PyPI - Version](https://img.shields.io/pypi/v/uipath)](https://img.shields.io/pypi/v/uipath)
5
5
  [![Python versions](https://img.shields.io/pypi/pyversions/uipath.svg)](https://pypi.org/project/uipath/)
6
6
 
7
- A Python SDK that enables programmatic interaction with UiPath Platform services including processes, assets, buckets, context grounding, data services, jobs, and more. The package also features a CLI for creation, packaging, and deployment of automations to UiPath Platform.
7
+ A Python SDK that enables programmatic interaction with UiPath Cloud Platform services including processes, assets, buckets, context grounding, data services, jobs, and more. The package also features a CLI for creation, packaging, and deployment of automations to UiPath Cloud Platform.
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](./CONTRIBUTING.md) before submitting a pull request.
185
+ Please read [CONTRIBUTING.md](https://github.com/UiPath/uipath-python/blob/main/CONTRIBUTING.md) before submitting a pull request.
@@ -1,8 +1,3 @@
1
- ---
2
- hide:
3
- - navigation
4
- ---
5
-
6
1
  --8<--
7
2
  CONTRIBUTING.md
8
3
  --8<--
@@ -0,0 +1,246 @@
1
+ # Getting Started
2
+
3
+ ## Prerequisites
4
+
5
+ - Python 3.10 or higher
6
+ - `pip` or `uv` package manager
7
+ - A UiPath Cloud Platform account with appropriate permissions
8
+
9
+ ## Getting Started with the CLI
10
+
11
+ //// tab | Linux, macOS, Windows Bash
12
+
13
+ <!-- termynal -->
14
+
15
+ ```shell
16
+ > mkdir example
17
+ > cd example
18
+ ```
19
+
20
+ ////
21
+
22
+ //// tab | Windows PowerShell
23
+
24
+ <!-- termynal -->
25
+
26
+ ```powershell
27
+ > New-Item -ItemType Directory -Path example
28
+ > Set-Location example
29
+ ```
30
+
31
+ ////
32
+
33
+ //// tab | uv
34
+ new: true
35
+
36
+ <!-- termynal -->
37
+
38
+ ```shell
39
+ # Initialize a new uv project in the current directory
40
+ > uv init . --python 3.10
41
+
42
+ # Create a new virtual environment
43
+ # By default, uv creates a virtual environment in a directory called .venv
44
+ > uv venv
45
+ Using CPython 3.10.16 interpreter at: [PATH]
46
+ Creating virtual environment at: .venv
47
+ Activate with: source .venv/bin/activate
48
+
49
+ # Activate the virtual environment
50
+ # For Windows PowerShell: .venv\Scripts\Activate.ps1
51
+ # For Windows Bash: source .venv/Scripts/activate
52
+ > source .venv/bin/activate
53
+
54
+ # Install the uipath package
55
+ > uv add uipath
56
+
57
+ # Verify the uipath installation
58
+ > uipath --version
59
+ uipath version 2.0.29
60
+ ```
61
+
62
+ ////
63
+
64
+ //// tab | pip
65
+
66
+ <!-- termynal -->
67
+
68
+ ```shell
69
+ # Create a new virtual environment
70
+ > python -m venv .venv
71
+
72
+ # Activate the virtual environment
73
+ # For Windows PowerShell: .venv\Scripts\Activate.ps1
74
+ # For Windows Bash: source .venv/Scripts/activate
75
+ > source .venv/bin/activate
76
+
77
+ # Upgrade pip to the latest version
78
+ > python -m pip install --upgrade pip
79
+
80
+ # Install the uipath package
81
+ > pip install uipath
82
+
83
+ # Verify the uipath installation
84
+ > uipath --version
85
+ uipath version 2.0.29
86
+ ```
87
+
88
+ ////
89
+
90
+ ### Authentication
91
+
92
+ To debug your script locally and publish your project, you need to authenticate with UiPath:
93
+
94
+ <!-- termynal -->
95
+
96
+ ```shell
97
+ > uipath auth
98
+ ⠋ Authenticating with UiPath ...
99
+ 🔗 If a browser window did not open, please open the following URL in your browser: [LINK]
100
+ 👇 Select tenant:
101
+ 0: Tenant1
102
+ 1: Tenant2
103
+ Select tenant number: 0
104
+ Selected tenant: Tenant1
105
+ ✓ Authentication successful.
106
+ ```
107
+
108
+ 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.
109
+
110
+ Upon successful authentication, your project will contain a `.env` file with your access token, UiPath URL, and other configuration details.
111
+
112
+ ### Writing Your Code
113
+
114
+ Open `main.py` in your code editor. You can start with this example code:
115
+
116
+ ```python
117
+ from dataclasses import dataclass
118
+ from typing import Optional
119
+
120
+
121
+ @dataclass
122
+ class EchoIn:
123
+ message: str
124
+ repeat: Optional[int] = 1
125
+ prefix: Optional[str] = None
126
+
127
+
128
+ @dataclass
129
+ class EchoOut:
130
+ message: str
131
+
132
+
133
+ def main(input: EchoIn) -> EchoOut:
134
+ result = []
135
+ for _ in range(input.repeat or 1):
136
+ line = input.message
137
+ if input.prefix:
138
+ line = f"{input.prefix}: {line}"
139
+ result.append(line)
140
+
141
+ return EchoOut(message="\n".join(result))
142
+ ```
143
+
144
+ ### Initializing the UiPath Project
145
+
146
+ To create a UiPath project, run the following command in your terminal:
147
+
148
+ <!-- termynal -->
149
+
150
+ ```shell
151
+ > uipath init
152
+ ⠋ Initializing UiPath project ...
153
+ ✓ Created 'uipath.json' file.
154
+ ```
155
+
156
+ /// admonition
157
+ type: warning
158
+
159
+ The `uipath init` command executes your `main.py` file to analyze its structure and collect information about inputs and outputs.
160
+ ///
161
+
162
+ This command creates a `uipath.json` file containing the project metadata.
163
+
164
+ <!-- termynal -->
165
+
166
+ ```shell
167
+ # Debug your project
168
+ > uipath run main.py '{"message": "test"}'
169
+ [2025-04-11 10:13:58,857][INFO] {'message': 'test'}
170
+ ```
171
+
172
+ ### Packaging and Publishing
173
+
174
+ Before packaging your project, add your details to the `pyproject.toml` file. Add the following line below the `description` field:
175
+
176
+ ```toml
177
+ authors = [{ name = "Your Name", email = "your.email@uipath.com" }]
178
+ ```
179
+
180
+ Then, package your project:
181
+
182
+ <!-- termynal -->
183
+
184
+ ```shell
185
+ > uipath pack
186
+ ⠋ Packaging project ...
187
+ Name : test
188
+ Version : 0.1.0
189
+ Description: Add your description here
190
+ Authors : Your Name
191
+ ✓ Project successfully packaged.
192
+ ```
193
+
194
+ Finally, publish your package:
195
+
196
+ <!-- termynal -->
197
+
198
+ ```shell
199
+ > uipath publish
200
+ ⠋ Fetching available package feeds...
201
+ 👇 Select package feed:
202
+ 0: Orchestrator Tenant Processes Feed
203
+ 1: Orchestrator Personal Workspace Feed
204
+ Select feed number: 0
205
+ Selected feed: Orchestrator Tenant Processes Feed
206
+ ⠸ Publishing most recent package: test.0.1.0.nupkg ...
207
+ ✓ Package published successfully!
208
+ ```
209
+
210
+ After selecting your publishing destination (tenant or personal workspace), you'll see details about your package and a confirmation message.
211
+
212
+ ## Getting Started with the SDK
213
+
214
+ Create a new project following the same steps as above.
215
+
216
+ Open `main.py` in your code editor and add the following code:
217
+
218
+ ```python
219
+ from uipath import UiPath
220
+
221
+
222
+ def main():
223
+ sdk = UiPath()
224
+ sdk.processes.invoke(
225
+ "test",
226
+ input_arguments={
227
+ "message": "Hello, World!",
228
+ "repeat": 3,
229
+ "prefix": "[Echo]"
230
+ }
231
+ )
232
+ ```
233
+
234
+ ### Verifying the Execution
235
+
236
+ <!-- termynal -->
237
+
238
+ ```shell
239
+ > uipath run main.py
240
+ ```
241
+
242
+ 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:
243
+
244
+ ```
245
+ [Echo]: Hello, World! Echo: Hello, World! Echo: Hello, World!
246
+ ```
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: Introduction
3
+ ---
4
+
5
+ --8<--
6
+ README.md
7
+ --8<--
@@ -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,3 @@
1
+ --8<--
2
+ docs/plugins/uipath-langchain-python/docs/chat_models.md
3
+ --8<--
@@ -0,0 +1,9 @@
1
+ ---
2
+ title: Content Grounding
3
+ ---
4
+
5
+ --8<--
6
+ docs/plugins/uipath-langchain-python/docs/context_grounding.md
7
+ --8<--
8
+
9
+
@@ -0,0 +1,3 @@
1
+ --8<--
2
+ docs/plugins/uipath-langchain-python/docs/human_in_the_loop.md
3
+ --8<--
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: Introduction
3
+ ---
4
+
5
+ --8<--
6
+ docs/plugins/uipath-langchain-python/README.md
7
+ --8<--
@@ -0,0 +1,83 @@
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: #66adff;
14
+ }
15
+
16
+
17
+ [data-md-color-scheme=default]
18
+ {
19
+ --md-typeset-a-color: #0067df;
20
+ }
21
+
22
+ [data-md-color-scheme=slate] {
23
+ --md-typeset-a-color: #66adff;
24
+
25
+ .md-header {
26
+ background-color: #182027;
27
+ color: #ffffff;
28
+ }
29
+ }
30
+
31
+ body[data-md-color-scheme=slate] {
32
+ background-color: #182027 !important;
33
+ }
34
+
35
+ .md-header {
36
+ --md-primary-bg-color: #182027;
37
+ --md-primary-fg-color: #ffffff;
38
+ }
39
+
40
+
41
+
42
+ @media screen and (min-width: 60em) {
43
+ .md-search__form {
44
+ background-color: #ffffff;
45
+ color: #182027 !important;
46
+ border: 1px solid #182027;
47
+
48
+ &:hover {
49
+ background-color: #ffffff;
50
+ border-color: #66adff;
51
+ }
52
+ }
53
+
54
+ [data-md-color-scheme=slate] {
55
+ .md-search__form {
56
+ background-color: #182027;
57
+ color: #ffffff !important;
58
+ border: 1px solid #ffffff;
59
+
60
+ &:hover {
61
+ background-color: #182027;
62
+ border-color: #66adff;
63
+ }
64
+ }
65
+
66
+ .md-search__icon {
67
+ color: #ffffff !important;
68
+ }
69
+ }
70
+
71
+ .md-search__icon {
72
+ color: #182027 !important;
73
+ }
74
+ }
75
+
76
+
77
+ @media (min-width: 1220px) {
78
+ .md-sidebar {
79
+ .md-nav__title {
80
+ display: none;
81
+ }
82
+ }
83
+ }
@@ -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 &copy; 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.31"
3
+ version = "2.0.33"
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
- [try_enable_first_run_response, acquire_license_response] = [
149
- requests.post(
150
- url,
151
- headers={"Authorization": f"Bearer {self.access_token}"},
152
- )
153
- for url in [url_try_enable_first_run, url_acquire_license]
154
- ]
155
-
156
- if (
157
- try_enable_first_run_response.status_code != 200
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:
@@ -412,7 +412,7 @@ class UiPathBaseRuntime(ABC):
412
412
  raise
413
413
  finally:
414
414
  # Restore original logging
415
- if self.context.job_id and self.logs_interceptor:
415
+ if self.logs_interceptor:
416
416
  self.logs_interceptor.teardown()
417
417
 
418
418
  await self.cleanup()