uipath 2.0.31__py3-none-any.whl → 2.0.32__py3-none-any.whl
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/_cli/_auth/_portal_service.py +10 -13
- uipath/_cli/cli_init.py +1 -1
- uipath/_services/actions_service.py +0 -17
- uipath/_services/queues_service.py +1 -3
- uipath/_uipath.py +13 -4
- uipath/models/__init__.py +3 -0
- uipath/models/errors.py +16 -0
- {uipath-2.0.31.dist-info → uipath-2.0.32.dist-info}/METADATA +4 -2
- {uipath-2.0.31.dist-info → uipath-2.0.32.dist-info}/RECORD +12 -11
- {uipath-2.0.31.dist-info → uipath-2.0.32.dist-info}/WHEEL +0 -0
- {uipath-2.0.31.dist-info → uipath-2.0.32.dist-info}/entry_points.txt +0 -0
- {uipath-2.0.31.dist-info → uipath-2.0.32.dist-info}/licenses/LICENSE +0 -0
|
@@ -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:
|
uipath/_cli/cli_init.py
CHANGED
|
@@ -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:
|
uipath/_uipath.py
CHANGED
|
@@ -2,6 +2,7 @@ from os import environ as env
|
|
|
2
2
|
from typing import Optional
|
|
3
3
|
|
|
4
4
|
from dotenv import load_dotenv
|
|
5
|
+
from pydantic import ValidationError
|
|
5
6
|
|
|
6
7
|
from ._config import Config
|
|
7
8
|
from ._execution_context import ExecutionContext
|
|
@@ -23,6 +24,7 @@ from ._utils.constants import (
|
|
|
23
24
|
ENV_UIPATH_ACCESS_TOKEN,
|
|
24
25
|
ENV_UNATTENDED_USER_ACCESS_TOKEN,
|
|
25
26
|
)
|
|
27
|
+
from .models.errors import BaseUrlMissingError, SecretMissingError
|
|
26
28
|
|
|
27
29
|
load_dotenv()
|
|
28
30
|
|
|
@@ -42,10 +44,17 @@ class UiPath:
|
|
|
42
44
|
or env.get(ENV_UIPATH_ACCESS_TOKEN)
|
|
43
45
|
)
|
|
44
46
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
try:
|
|
48
|
+
self._config = Config(
|
|
49
|
+
base_url=base_url_value, # type: ignore
|
|
50
|
+
secret=secret_value, # type: ignore
|
|
51
|
+
)
|
|
52
|
+
except ValidationError as e:
|
|
53
|
+
for error in e.errors():
|
|
54
|
+
if error["loc"][0] == "base_url":
|
|
55
|
+
raise BaseUrlMissingError() from e
|
|
56
|
+
elif error["loc"][0] == "secret":
|
|
57
|
+
raise SecretMissingError() from e
|
|
49
58
|
self._folders_service: Optional[FolderService] = None
|
|
50
59
|
|
|
51
60
|
setup_logging(debug)
|
uipath/models/__init__.py
CHANGED
|
@@ -3,6 +3,7 @@ from .actions import Action
|
|
|
3
3
|
from .assets import UserAsset
|
|
4
4
|
from .connections import Connection, ConnectionToken
|
|
5
5
|
from .context_grounding import ContextGroundingQueryResponse
|
|
6
|
+
from .errors import BaseUrlMissingError, SecretMissingError
|
|
6
7
|
from .exceptions import IngestionInProgressException
|
|
7
8
|
from .interrupt_models import (
|
|
8
9
|
CreateAction,
|
|
@@ -39,4 +40,6 @@ __all__ = [
|
|
|
39
40
|
"WaitAction",
|
|
40
41
|
"CreateAction",
|
|
41
42
|
"IngestionInProgressException",
|
|
43
|
+
"BaseUrlMissingError",
|
|
44
|
+
"SecretMissingError",
|
|
42
45
|
]
|
uipath/models/errors.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
class BaseUrlMissingError(Exception):
|
|
2
|
+
def __init__(
|
|
3
|
+
self,
|
|
4
|
+
message="Authentication required. Please run \033[1muipath auth\033[22m.",
|
|
5
|
+
):
|
|
6
|
+
self.message = message
|
|
7
|
+
super().__init__(self.message)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SecretMissingError(Exception):
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
message="Authentication required. Please run \033[1muipath auth\033[22m.",
|
|
14
|
+
):
|
|
15
|
+
self.message = message
|
|
16
|
+
super().__init__(self.message)
|
|
@@ -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.
|
|
@@ -2,13 +2,13 @@ uipath/__init__.py,sha256=IaeKItOOQXMa95avueJ3dAq-XcRHyZVNjcCGwlSB000,634
|
|
|
2
2
|
uipath/_config.py,sha256=pi3qxPzDTxMEstj_XkGOgKJqD6RTHHv7vYv8sS_-d5Q,92
|
|
3
3
|
uipath/_execution_context.py,sha256=JkmMH51ck4p-JQtgJeDvpBP-BZNIN_1h3Qlo8QrPr-w,2421
|
|
4
4
|
uipath/_folder_context.py,sha256=oxX7o8ilU9sA_vEKLr2sZZCHnvRwJ0_as-LOMc4hxc4,1908
|
|
5
|
-
uipath/_uipath.py,sha256=
|
|
5
|
+
uipath/_uipath.py,sha256=jbEKy98Dq2q-316lsS38lKhwgM390uLxzQYIl15HU2Y,3211
|
|
6
6
|
uipath/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
uipath/_cli/README.md,sha256=GLtCfbeIKZKNnGTCsfSVqRQ27V1btT1i2bSAyW_xZl4,474
|
|
8
8
|
uipath/_cli/__init__.py,sha256=vGz3vJHkUvgK9_lKdzqiwwHkge1TCALRiOzGGwyr-8E,1885
|
|
9
9
|
uipath/_cli/cli_auth.py,sha256=O-hbaYxLXBPXgnjW2gGa1lbvmVh1ui2-U9BzrLUU708,3707
|
|
10
10
|
uipath/_cli/cli_deploy.py,sha256=lnGwwhDDY6La0fj_-duqx9saGUvY2iNNW28rQCI3hsU,308
|
|
11
|
-
uipath/_cli/cli_init.py,sha256=
|
|
11
|
+
uipath/_cli/cli_init.py,sha256=Hk4R7dxTkRkSdo4gbp6QSKXe2jVdR5PBSDVjxCt7TO0,3834
|
|
12
12
|
uipath/_cli/cli_invoke.py,sha256=Fnoc5_4nWxac-FVxQL-Akrqd-yQb9BwLWSzR9p397Lw,3221
|
|
13
13
|
uipath/_cli/cli_new.py,sha256=uBWt44ZnNrq6oMYjYm4cCipmat2GRkcJ-g8YP_yP9-0,2024
|
|
14
14
|
uipath/_cli/cli_pack.py,sha256=FZr7P5WZvPkrP56fjn4dTONv76NuoEhVtQwzG3CxGQs,14667
|
|
@@ -19,7 +19,7 @@ uipath/_cli/spinner.py,sha256=bS-U_HA5yne11ejUERu7CQoXmWdabUD2bm62EfEdV8M,1107
|
|
|
19
19
|
uipath/_cli/_auth/_auth_server.py,sha256=GRdjXUcvZO2O2GecolFJ8uMv7_DUD_VXeBJpElqmtIQ,7034
|
|
20
20
|
uipath/_cli/_auth/_models.py,sha256=sYMCfvmprIqnZxStlD_Dxx2bcxgn0Ri4D7uwemwkcNg,948
|
|
21
21
|
uipath/_cli/_auth/_oidc_utils.py,sha256=WaX9jDlXrlX6yD8i8gsocV8ngjaT72Xd1tvsZMmSbco,2127
|
|
22
|
-
uipath/_cli/_auth/_portal_service.py,sha256=
|
|
22
|
+
uipath/_cli/_auth/_portal_service.py,sha256=dANFBaFFYbkprYHDLjCVxcD6bITAxZuyyW_GPpyyEvY,7160
|
|
23
23
|
uipath/_cli/_auth/_utils.py,sha256=9nb76xe5XmDZ0TAncp-_1SKqL6FdwRi9eS3C2noN1lY,1591
|
|
24
24
|
uipath/_cli/_auth/auth_config.json,sha256=NTb_ZZor5xEgya2QbK51GiTL5_yVqG_QpV4VYIp8_mk,342
|
|
25
25
|
uipath/_cli/_auth/index.html,sha256=ML_xDOcKs0ETYucufJskiYfWSvdrD_E26C0Qd3qpGj8,6280
|
|
@@ -41,7 +41,7 @@ uipath/_cli/_utils/_parse_ast.py,sha256=3XVjnhJNnSfjXlitct91VOtqSl0l-sqDpoWww28m
|
|
|
41
41
|
uipath/_cli/_utils/_processes.py,sha256=3X03Zqgk3DasH4K9jkfIhb4pt6CJ1KgnrFta5FwEOes,1328
|
|
42
42
|
uipath/_services/__init__.py,sha256=VPbwLDsvN26nWZgvR-8_-tc3i0rk5doqjTJbSrK0nN4,818
|
|
43
43
|
uipath/_services/_base_service.py,sha256=3YClCoZBkVQGNJZGy-4NTk-HGsGA61XtwVQFYv9mwWk,7955
|
|
44
|
-
uipath/_services/actions_service.py,sha256=
|
|
44
|
+
uipath/_services/actions_service.py,sha256=PQ6HGEfX1vRBkFsjP2ykBRc9xOIf7wVKJC7Dkhka3HM,15623
|
|
45
45
|
uipath/_services/api_client.py,sha256=1hYLc_90dQzCGnqqirEHpPqvL3Gkv2sSKoeOV_iTmlk,2903
|
|
46
46
|
uipath/_services/assets_service.py,sha256=nuaP-yzObUiB10VLeq4AsEcx75VJokbr3HC9EpW0iXA,9280
|
|
47
47
|
uipath/_services/buckets_service.py,sha256=m0HMWBkooUhjTtna_ZXcw4QOzKmaibuepWlC8wPGtlA,9330
|
|
@@ -52,7 +52,7 @@ uipath/_services/folder_service.py,sha256=HtsBoBejvMuIZ-9gocAG9B8uKOFsAAD4WUozta
|
|
|
52
52
|
uipath/_services/jobs_service.py,sha256=MsJlu1egvHKZhHdammp4Xo9iJzceWquW4qIWT-nPBws,8214
|
|
53
53
|
uipath/_services/llm_gateway_service.py,sha256=ySg3sflIoXmY9K7txlSm7bkuI2qzBT0kAKmGlFBk5KA,12032
|
|
54
54
|
uipath/_services/processes_service.py,sha256=12tflrzTNvtA0xGteQwrIZ0s-jCTinTv7gktder5tRE,5659
|
|
55
|
-
uipath/_services/queues_service.py,sha256=
|
|
55
|
+
uipath/_services/queues_service.py,sha256=wDyOb7xxP22Yb3kpnI-4GgjRmt19X28F5WyBAJN0JWk,13003
|
|
56
56
|
uipath/_utils/__init__.py,sha256=y8asYKjU5j3v72TbgShEpUafAAJXJ6bngqdzXIl-Lhk,481
|
|
57
57
|
uipath/_utils/_endpoint.py,sha256=yYHwqbQuJIevpaTkdfYJS9CrtlFeEyfb5JQK5osTCog,2489
|
|
58
58
|
uipath/_utils/_infer_bindings.py,sha256=ysAftopcCBj4ojYyeVwbSl20qYhCDmqyldCinj6sICM,905
|
|
@@ -61,13 +61,14 @@ uipath/_utils/_request_override.py,sha256=_vibG78vEDWS3JKg2cJ5l6tpoBMLChUOauiqL1
|
|
|
61
61
|
uipath/_utils/_request_spec.py,sha256=iCtBLqtbWUpFG5g1wtIZBzSupKsfaRLiQFoFc_4B70Q,747
|
|
62
62
|
uipath/_utils/_user_agent.py,sha256=pVJkFYacGwaQBomfwWVAvBQgdBUo62e4n3-fLIajWUU,563
|
|
63
63
|
uipath/_utils/constants.py,sha256=xW-gbRasjdOwSj2rke4wfRCml69710oUaDNJcwFAZug,775
|
|
64
|
-
uipath/models/__init__.py,sha256=
|
|
64
|
+
uipath/models/__init__.py,sha256=U06ilfGlAR0Rflkuq608sR__hsyMN5KI_OsAFQf1qCs,1048
|
|
65
65
|
uipath/models/action_schema.py,sha256=lKDhP7Eix23fFvfQrqqNmSOiPyyNF6tiRpUu0VZIn_M,714
|
|
66
66
|
uipath/models/actions.py,sha256=ekSH4YUQR4KPOH-heBm9yOgOfirndx0In4_S4VYWeEU,2993
|
|
67
67
|
uipath/models/assets.py,sha256=8ZPImmJ-1u5KqdR1UBgZnGjSBW-Nr81Ruq_5Uav417A,1841
|
|
68
68
|
uipath/models/connections.py,sha256=perIqW99YEg_0yWZPdpZlmNpZcwY_toR1wkqDUBdAN0,2014
|
|
69
69
|
uipath/models/context_grounding.py,sha256=ak3cjlA90X1FceAAI0ry4jioTtK6Zxo0oqmKY_xs8bo,352
|
|
70
70
|
uipath/models/context_grounding_index.py,sha256=vHBu069j1Y1m5PydLj6uoVH0rNIxuOohKLknHn5KvQw,2508
|
|
71
|
+
uipath/models/errors.py,sha256=gPyU4sKYn57v03aOVqm97mnU9Do2e7bwMQwiSQVp9qc,461
|
|
71
72
|
uipath/models/exceptions.py,sha256=WEUw2_sh-aE0HDiqPoBZyh9KIk1BaDFY5O7Lzo8KRws,324
|
|
72
73
|
uipath/models/interrupt_models.py,sha256=UzuVTMVesI204YQ4qFQFaN-gN3kksddkrujofcaC7zQ,881
|
|
73
74
|
uipath/models/job.py,sha256=f9L6_kg_VP0dAYvdcz1DWEWzy4NZPdlpHREod0uNK1E,3099
|
|
@@ -78,8 +79,8 @@ uipath/tracing/__init__.py,sha256=GimSzv6qkCOlHOG1WtjYKJsZqcXpA28IgoXfR33JhiA,13
|
|
|
78
79
|
uipath/tracing/_otel_exporters.py,sha256=x0PDPmDKJcxashsuehVsSsqBCzRr6WsNFaq_3_HS5F0,3014
|
|
79
80
|
uipath/tracing/_traced.py,sha256=GFxOp73jk0vGTN_H7YZOOsEl9rVLaEhXGztMiYKIA-8,16634
|
|
80
81
|
uipath/tracing/_utils.py,sha256=5SwsTGpHkIouXBndw-u8eCLnN4p7LM8DsTCCuf2jJgs,10165
|
|
81
|
-
uipath-2.0.
|
|
82
|
-
uipath-2.0.
|
|
83
|
-
uipath-2.0.
|
|
84
|
-
uipath-2.0.
|
|
85
|
-
uipath-2.0.
|
|
82
|
+
uipath-2.0.32.dist-info/METADATA,sha256=xs_02O_aMNCKaHePuK-y9h764pQZAyXJoocJEYk9FP8,6291
|
|
83
|
+
uipath-2.0.32.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
84
|
+
uipath-2.0.32.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
|
|
85
|
+
uipath-2.0.32.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
|
|
86
|
+
uipath-2.0.32.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|