uipath 2.1.107__py3-none-any.whl → 2.1.108__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.

@@ -460,12 +460,12 @@ class UiPathRuntimeContext(BaseModel):
460
460
  return instance
461
461
 
462
462
 
463
- class UiPathRuntimeError(Exception):
463
+ class UiPathBaseRuntimeError(Exception):
464
464
  """Base exception class for UiPath runtime errors with structured error information."""
465
465
 
466
466
  def __init__(
467
467
  self,
468
- code: UiPathErrorCode,
468
+ code: str,
469
469
  title: str,
470
470
  detail: str,
471
471
  category: UiPathErrorCategory = UiPathErrorCategory.UNKNOWN,
@@ -484,10 +484,8 @@ class UiPathRuntimeError(Exception):
484
484
  if status is None:
485
485
  status = self._extract_http_status()
486
486
 
487
- code_value = code.value
488
-
489
487
  self.error_info = UiPathErrorContract(
490
- code=f"{prefix}.{code_value}",
488
+ code=f"{prefix}.{code}",
491
489
  title=title,
492
490
  detail=detail,
493
491
  category=category,
@@ -529,6 +527,28 @@ class UiPathRuntimeError(Exception):
529
527
  return self.error_info.model_dump()
530
528
 
531
529
 
530
+ class UiPathRuntimeError(UiPathBaseRuntimeError):
531
+ """Exception class for UiPath runtime errors."""
532
+
533
+ def __init__(
534
+ self,
535
+ code: UiPathErrorCode,
536
+ title: str,
537
+ detail: str,
538
+ category: UiPathErrorCategory = UiPathErrorCategory.UNKNOWN,
539
+ prefix: str = "Python",
540
+ include_traceback: bool = True,
541
+ ):
542
+ super().__init__(
543
+ code=code.value,
544
+ title=title,
545
+ detail=detail,
546
+ category=category,
547
+ prefix=prefix,
548
+ include_traceback=include_traceback,
549
+ )
550
+
551
+
532
552
  class UiPathRuntimeStreamNotSupportedError(NotImplementedError):
533
553
  """Raised when a runtime does not support streaming."""
534
554
 
@@ -70,93 +70,6 @@ sdk.assets.update_async(robot_asset: uipath.models.assets.UserAsset, folder_key:
70
70
 
71
71
  ```
72
72
 
73
- ### Attachments
74
-
75
- Attachments service
76
-
77
- ```python
78
- # Delete an attachment.
79
- sdk.attachments.delete(key: uuid.UUID, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
80
-
81
- # Delete an attachment asynchronously.
82
- sdk.attachments.delete_async(key: uuid.UUID, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
83
-
84
- # Download an attachment.
85
- sdk.attachments.download(key: uuid.UUID, destination_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> str
86
-
87
- # Download an attachment asynchronously.
88
- sdk.attachments.download_async(key: uuid.UUID, destination_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> str
89
-
90
- # Upload a file or content to UiPath as an attachment.
91
- sdk.attachments.upload(name: str, content: Union[str, bytes, NoneType]=None, source_path: Optional[str]=None, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> uuid.UUID
92
-
93
- # Upload a file or content to UiPath as an attachment asynchronously.
94
- sdk.attachments.upload_async(name: str, content: Union[str, bytes, NoneType]=None, source_path: Optional[str]=None, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> uuid.UUID
95
-
96
- ```
97
-
98
- ### Buckets
99
-
100
- Buckets service
101
-
102
- ```python
103
- # Download a file from a bucket.
104
- sdk.buckets.download(name: Optional[str]=None, key: Optional[str]=None, blob_file_path: str, destination_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
105
-
106
- # Download a file from a bucket asynchronously.
107
- sdk.buckets.download_async(name: Optional[str]=None, key: Optional[str]=None, blob_file_path: str, destination_path: str, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
108
-
109
- # Retrieve bucket information by its name.
110
- sdk.buckets.retrieve(name: Optional[str]=None, key: Optional[str]=None, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> uipath.models.buckets.Bucket
111
-
112
- # Asynchronously retrieve bucket information by its name.
113
- sdk.buckets.retrieve_async(name: Optional[str]=None, key: Optional[str]=None, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> uipath.models.buckets.Bucket
114
-
115
- # Upload a file to a bucket.
116
- sdk.buckets.upload(key: Optional[str]=None, name: Optional[str]=None, blob_file_path: str, content_type: Optional[str]=None, source_path: Optional[str]=None, content: Union[str, bytes, NoneType]=None, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
117
-
118
- # Upload a file to a bucket asynchronously.
119
- sdk.buckets.upload_async(key: Optional[str]=None, name: Optional[str]=None, blob_file_path: str, content_type: Optional[str]=None, source_path: Optional[str]=None, content: Union[str, bytes, NoneType]=None, folder_key: Optional[str]=None, folder_path: Optional[str]=None) -> None
120
-
121
- ```
122
-
123
- ### Connections
124
-
125
- Connections service
126
-
127
- ```python
128
- # Lists all connections with optional filtering.
129
- sdk.connections.list(name: Optional[str]=None, folder_path: Optional[str]=None, folder_key: Optional[str]=None, connector_key: Optional[str]=None, skip: Optional[int]=None, top: Optional[int]=None) -> typing.List[uipath.models.connections.Connection]
130
-
131
- # Asynchronously lists all connections with optional filtering.
132
- sdk.connections.list_async(name: Optional[str]=None, folder_path: Optional[str]=None, folder_key: Optional[str]=None, connector_key: Optional[str]=None, skip: Optional[int]=None, top: Optional[int]=None) -> typing.List[uipath.models.connections.Connection]
133
-
134
- # Synchronously retrieve connection API metadata.
135
- sdk.connections.metadata(element_instance_id: int, tool_path: str, schema_mode: bool=True) -> uipath.models.connections.ConnectionMetadata
136
-
137
- # Asynchronously retrieve connection API metadata.
138
- sdk.connections.metadata_async(element_instance_id: int, tool_path: str, schema_mode: bool=True) -> uipath.models.connections.ConnectionMetadata
139
-
140
- # Retrieve connection details by its key.
141
- sdk.connections.retrieve(key: str) -> uipath.models.connections.Connection
142
-
143
- # Asynchronously retrieve connection details by its key.
144
- sdk.connections.retrieve_async(key: str) -> uipath.models.connections.Connection
145
-
146
- # Retrieve event payload from UiPath Integration Service.
147
- sdk.connections.retrieve_event_payload(event_args: uipath.models.connections.EventArguments) -> typing.Dict[str, typing.Any]
148
-
149
- # Retrieve event payload from UiPath Integration Service.
150
- sdk.connections.retrieve_event_payload_async(event_args: uipath.models.connections.EventArguments) -> typing.Dict[str, typing.Any]
151
-
152
- # Retrieve an authentication token for a connection.
153
- sdk.connections.retrieve_token(key: str, token_type: <enum 'ConnectionTokenType="direct") -> uipath.models.connections.ConnectionToken
154
-
155
- # Asynchronously retrieve an authentication token for a connection.
156
- sdk.connections.retrieve_token_async(key: str, token_type: <enum 'ConnectionTokenType="direct") -> uipath.models.connections.ConnectionToken
157
-
158
- ```
159
-
160
73
  ### Context Grounding
161
74
 
162
75
  Context Grounding service
@@ -274,16 +187,6 @@ sdk.entities.update_records_async(entity_key: str, records: List[Any], schema: O
274
187
 
275
188
  ```
276
189
 
277
- ### Folders
278
-
279
- Folders service
280
-
281
- ```python
282
- # Retrieve the folder key by folder path with pagination support.
283
- sdk.folders.retrieve_key(folder_path: str) -> typing.Optional[str]
284
-
285
- ```
286
-
287
190
  ### Jobs
288
191
 
289
192
  Jobs service
uipath/_uipath.py CHANGED
@@ -1,3 +1,4 @@
1
+ from functools import cached_property
1
2
  from typing import Optional
2
3
 
3
4
  from pydantic import ValidationError
@@ -51,10 +52,6 @@ class UiPath:
51
52
  raise BaseUrlMissingError() from e
52
53
  elif error["loc"][0] == "secret":
53
54
  raise SecretMissingError() from e
54
- self._folders_service: Optional[FolderService] = None
55
- self._buckets_service: Optional[BucketsService] = None
56
- self._attachments_service: Optional[AttachmentsService] = None
57
- self._connections_service: Optional[ConnectionsService] = None
58
55
  setup_logging(should_debug=debug)
59
56
  self._execution_context = ExecutionContext()
60
57
 
@@ -66,13 +63,9 @@ class UiPath:
66
63
  def assets(self) -> AssetsService:
67
64
  return AssetsService(self._config, self._execution_context)
68
65
 
69
- @property
66
+ @cached_property
70
67
  def attachments(self) -> AttachmentsService:
71
- if not self._attachments_service:
72
- self._attachments_service = AttachmentsService(
73
- self._config, self._execution_context
74
- )
75
- return self._attachments_service
68
+ return AttachmentsService(self._config, self._execution_context)
76
69
 
77
70
  @property
78
71
  def processes(self) -> ProcessesService:
@@ -82,39 +75,21 @@ class UiPath:
82
75
  def actions(self) -> ActionsService:
83
76
  return ActionsService(self._config, self._execution_context)
84
77
 
85
- @property
78
+ @cached_property
86
79
  def buckets(self) -> BucketsService:
87
- if not self._buckets_service:
88
- self._buckets_service = BucketsService(
89
- self._config, self._execution_context
90
- )
91
80
  return BucketsService(self._config, self._execution_context)
92
81
 
93
- @property
82
+ @cached_property
94
83
  def connections(self) -> ConnectionsService:
95
- if not self._connections_service:
96
- if not self._folders_service:
97
- self._folders_service = FolderService(
98
- self._config, self._execution_context
99
- )
100
- self._connections_service = ConnectionsService(
101
- self._config, self._execution_context, self._folders_service
102
- )
103
- return self._connections_service
84
+ return ConnectionsService(self._config, self._execution_context, self.folders)
104
85
 
105
86
  @property
106
87
  def context_grounding(self) -> ContextGroundingService:
107
- if not self._folders_service:
108
- self._folders_service = FolderService(self._config, self._execution_context)
109
- if not self._buckets_service:
110
- self._buckets_service = BucketsService(
111
- self._config, self._execution_context
112
- )
113
88
  return ContextGroundingService(
114
89
  self._config,
115
90
  self._execution_context,
116
- self._folders_service,
117
- self._buckets_service,
91
+ self.folders,
92
+ self.buckets,
118
93
  )
119
94
 
120
95
  @property
@@ -129,11 +104,9 @@ class UiPath:
129
104
  def jobs(self) -> JobsService:
130
105
  return JobsService(self._config, self._execution_context)
131
106
 
132
- @property
107
+ @cached_property
133
108
  def folders(self) -> FolderService:
134
- if not self._folders_service:
135
- self._folders_service = FolderService(self._config, self._execution_context)
136
- return self._folders_service
109
+ return FolderService(self._config, self._execution_context)
137
110
 
138
111
  @property
139
112
  def llm_openai(self) -> UiPathOpenAIService:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.1.107
3
+ Version: 2.1.108
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
@@ -2,7 +2,7 @@ uipath/__init__.py,sha256=IaeKItOOQXMa95avueJ3dAq-XcRHyZVNjcCGwlSB000,634
2
2
  uipath/_config.py,sha256=pi3qxPzDTxMEstj_XkGOgKJqD6RTHHv7vYv8sS_-d5Q,92
3
3
  uipath/_execution_context.py,sha256=Qo8VMUFgtiL-40KsZrvul5bGv1CRERle_fCw1ORCggY,2374
4
4
  uipath/_folder_context.py,sha256=D-bgxdwpwJP4b_QdVKcPODYh15kMDrOar2xNonmMSm4,1861
5
- uipath/_uipath.py,sha256=fZfofFWw8JurY940j9qVuV6EQttCRZe_XvWCyC9oCns,4918
5
+ uipath/_uipath.py,sha256=ycu11bjIUx5priRkB3xSRcilugHuSmfSN4Nq6Yz88gk,3702
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=ba7gNskJLgN_bNfCPzoGAk7OsHCxaFpWpOvahzcQEf8,2329
@@ -68,7 +68,7 @@ uipath/_cli/_evals/mocks/mocker_factory.py,sha256=V5QKSTtQxztTo4-fK1TyAaXw2Z3mHf
68
68
  uipath/_cli/_evals/mocks/mockito_mocker.py,sha256=AO2BmFwA6hz3Lte-STVr7aJDPvMCqKNKa4j2jeNZ_U4,2677
69
69
  uipath/_cli/_evals/mocks/mocks.py,sha256=HY0IaSqqO8hioBB3rp5XwAjSpQE4K5hoH6oJQ-sH72I,2207
70
70
  uipath/_cli/_push/sw_file_handler.py,sha256=DrGOpX7-dodrROh7YcjHlCBUuOEdVMh8o0550TL-ZYA,22520
71
- uipath/_cli/_runtime/_contracts.py,sha256=DvpDLkmCESMID2S_ryUu7Y1N26-QIRrDNgk-pPGoOSU,35697
71
+ uipath/_cli/_runtime/_contracts.py,sha256=fj88vbuNq4-f69LQg6Ykt49ScEksJMYdkC20CtVEZ3s,36232
72
72
  uipath/_cli/_runtime/_escalation.py,sha256=x3vI98qsfRA-fL_tNkRVTFXioM5Gv2w0GFcXJJ5eQtg,7981
73
73
  uipath/_cli/_runtime/_hitl.py,sha256=JAwTUKvxO4HpnZMwE4E0AegAPw_uYOwgt0OYcu6EvTg,11474
74
74
  uipath/_cli/_runtime/_logging.py,sha256=srjAi3Cy6g7b8WNHiYNjaZT4t40F3XRqquuoGd2kh4Y,14019
@@ -102,7 +102,7 @@ uipath/_resources/AGENTS.md,sha256=nRQNAVeEBaBvuMzXw8uXtMnGebLClUgwIMlgb8_qU9o,1
102
102
  uipath/_resources/CLAUDE.md,sha256=kYsckFWTVe948z_fNWLysCHvi9_YpchBXl3s1Ek03lU,10
103
103
  uipath/_resources/CLI_REFERENCE.md,sha256=M_SCtSjRhj1XwfgSFLfHJJahYXEd_CSQ_EnjLQAn-2Y,6470
104
104
  uipath/_resources/REQUIRED_STRUCTURE.md,sha256=3laqGiNa3kauJ7jRI1d7w_fWKUDkqYBjcTT_6_8FAGk,1417
105
- uipath/_resources/SDK_REFERENCE.md,sha256=1i2S2219HSTVrMHoMPcUxTC4nGqeLKfzeD_JSuIB3ec,23275
105
+ uipath/_resources/SDK_REFERENCE.md,sha256=0Xbt87pVXzw0ZfpPO4EnVKlwGQRoshVb8zRt8F1jAFs,18211
106
106
  uipath/_services/__init__.py,sha256=_LNy4u--VlhVtTO66bULbCoBjyJBTuyh9jnzjWrv-h4,1140
107
107
  uipath/_services/_base_service.py,sha256=x9-9jhPzn9Z16KRdFHhJNvV-FZHvTniMsDfxlS4Cutk,5782
108
108
  uipath/_services/actions_service.py,sha256=2RPMR-hFMsOlqEyjIf3aF7-lrf57jdrSD0pBjj0Kyko,16040
@@ -192,8 +192,8 @@ uipath/tracing/_utils.py,sha256=zMjiKjNpSN3YQNEU4-u5AAvPtUsi8QuEqNLya89jfAU,1446
192
192
  uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
193
193
  uipath/utils/_endpoints_manager.py,sha256=tnF_FiCx8qI2XaJDQgYkMN_gl9V0VqNR1uX7iawuLp8,8230
194
194
  uipath/utils/dynamic_schema.py,sha256=w0u_54MoeIAB-mf3GmwX1A_X8_HDrRy6p998PvX9evY,3839
195
- uipath-2.1.107.dist-info/METADATA,sha256=fHXbkUqpyNJ9NMJB1vkME8fMivyaqb4HAZhIB0hPrJc,6626
196
- uipath-2.1.107.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
197
- uipath-2.1.107.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
198
- uipath-2.1.107.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
199
- uipath-2.1.107.dist-info/RECORD,,
195
+ uipath-2.1.108.dist-info/METADATA,sha256=3aGq13j9ra3Cm8I53R8yuDjWDcfp3kFCu_uv7hvNuWE,6626
196
+ uipath-2.1.108.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
197
+ uipath-2.1.108.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
198
+ uipath-2.1.108.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
199
+ uipath-2.1.108.dist-info/RECORD,,