uipath 2.0.14__tar.gz → 2.0.15__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.14 → uipath-2.0.15}/PKG-INFO +1 -1
- {uipath-2.0.14 → uipath-2.0.15}/pyproject.toml +1 -1
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/actions_service.py +30 -9
- {uipath-2.0.14 → uipath-2.0.15}/uv.lock +1509 -1509
- {uipath-2.0.14 → uipath-2.0.15}/.cursorrules +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.editorconfig +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.gitattributes +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.github/workflows/build.yml +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.github/workflows/cd.yml +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.github/workflows/ci.yml +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.github/workflows/commitlint.yml +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.github/workflows/lint.yml +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.github/workflows/test.yml +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.gitignore +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.pre-commit-config.yaml +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.python-version +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.vscode/extensions.json +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/.vscode/settings.json +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/CONTRIBUTING.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/LICENSE +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/README.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/CONTRIBUTING.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/actions.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/assets/uipath-logo.svg +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/assets.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/buckets.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/connections.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/context_grounding.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/getting_started_agent.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/getting_started_cli.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/getting_started_cloud.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/getting_started_sdk.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/index.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/jobs.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/processes.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/queues.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/docs/sdk.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/justfile +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/mkdocs.yml +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/py.typed +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/__init__.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/README.md +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/__init__.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_auth/_auth_server.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_auth/_models.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_auth/_oidc_utils.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_auth/_portal_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_auth/_utils.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_auth/auth_config.json +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_auth/index.html +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_auth/localhost.crt +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_auth/localhost.key +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_runtime/_contracts.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_runtime/_logging.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_runtime/_runtime.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_templates/.psmdcp.template +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_templates/.rels.template +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_templates/[Content_Types].xml.template +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_templates/main.py.template +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_templates/package.nuspec.template +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_utils/_common.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_utils/_input_args.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/_utils/_parse_ast.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/cli_auth.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/cli_deploy.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/cli_init.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/cli_new.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/cli_pack.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/cli_publish.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/cli_run.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_cli/middlewares.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_config.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_execution_context.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_folder_context.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/__init__.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/_base_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/api_client.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/assets_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/buckets_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/connections_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/connections_service.pyi +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/context_grounding_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/folder_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/jobs_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/llm_gateway_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/processes_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_services/queues_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_uipath.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_utils/__init__.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_utils/_endpoint.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_utils/_infer_bindings.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_utils/_logs.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_utils/_request_override.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_utils/_request_spec.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_utils/_user_agent.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/_utils/constants.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/__init__.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/action_schema.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/actions.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/assets.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/connections.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/context_grounding.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/context_grounding_index.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/exceptions.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/interrupt_models.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/job.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/llm_gateway.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/processes.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/models/queues.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/py.typed +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/tracing/__init__.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/tracing/_otel_exporters.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/tracing/_traced.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/src/uipath/tracing/_utils.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/tests/__init__.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/tests/cli/test_init.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/tests/conftest.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/tests/sdk/services/test_llm_integration.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/tests/sdk/services/test_llm_service.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/tests/sdk/services/test_uipath_llm_integration.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/tests/sdk/test_config.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/tests/tracing/test_otel_exporters.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/tests/tracing/test_span_utils.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/tests/tracing/test_traced.py +0 -0
- {uipath-2.0.14 → uipath-2.0.15}/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.15
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "uipath"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.15"
|
|
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"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import uuid
|
|
3
3
|
from json import dumps
|
|
4
|
-
from typing import Any, Dict, Optional, Tuple
|
|
4
|
+
from typing import Any, Dict, List, Optional, Tuple
|
|
5
5
|
|
|
6
6
|
from .._config import Config
|
|
7
7
|
from .._execution_context import ExecutionContext
|
|
@@ -213,7 +213,7 @@ class ActionsService(FolderContext, BaseService):
|
|
|
213
213
|
(key, action_schema) = (
|
|
214
214
|
(app_key, None)
|
|
215
215
|
if app_key
|
|
216
|
-
else await self.
|
|
216
|
+
else await self._get_app_key_and_schema_async(app_name, app_folder_path)
|
|
217
217
|
)
|
|
218
218
|
spec = _create_spec(
|
|
219
219
|
title=title,
|
|
@@ -269,7 +269,9 @@ class ActionsService(FolderContext, BaseService):
|
|
|
269
269
|
Exception: If neither app_name nor app_key is provided for app-specific actions
|
|
270
270
|
"""
|
|
271
271
|
(key, action_schema) = (
|
|
272
|
-
(app_key, None)
|
|
272
|
+
(app_key, None)
|
|
273
|
+
if app_key
|
|
274
|
+
else self._get_app_key_and_schema(app_name, app_folder_path)
|
|
273
275
|
)
|
|
274
276
|
spec = _create_spec(
|
|
275
277
|
title=title,
|
|
@@ -340,8 +342,8 @@ class ActionsService(FolderContext, BaseService):
|
|
|
340
342
|
|
|
341
343
|
return Action.model_validate(response.json())
|
|
342
344
|
|
|
343
|
-
async def
|
|
344
|
-
self, app_name: str
|
|
345
|
+
async def _get_app_key_and_schema_async(
|
|
346
|
+
self, app_name: str, app_folder_path: str
|
|
345
347
|
) -> Tuple[str, Optional[ActionSchema]]:
|
|
346
348
|
"""Retrieves an application's key and schema asynchronously.
|
|
347
349
|
|
|
@@ -362,7 +364,9 @@ class ActionsService(FolderContext, BaseService):
|
|
|
362
364
|
spec.method, spec.endpoint, params=spec.params, headers=spec.headers
|
|
363
365
|
)
|
|
364
366
|
try:
|
|
365
|
-
deployed_app =
|
|
367
|
+
deployed_app = self._extract_deployed_app(
|
|
368
|
+
response.json()["deployed"], app_folder_path
|
|
369
|
+
)
|
|
366
370
|
action_schema = deployed_app["actionSchema"]
|
|
367
371
|
deployed_app_key = deployed_app["systemName"]
|
|
368
372
|
except (KeyError, IndexError):
|
|
@@ -381,8 +385,8 @@ class ActionsService(FolderContext, BaseService):
|
|
|
381
385
|
except KeyError:
|
|
382
386
|
raise Exception("Failed to deserialize action schema") from KeyError
|
|
383
387
|
|
|
384
|
-
def
|
|
385
|
-
self, app_name: str
|
|
388
|
+
def _get_app_key_and_schema(
|
|
389
|
+
self, app_name: str, app_folder_path: str
|
|
386
390
|
) -> Tuple[str, Optional[ActionSchema]]:
|
|
387
391
|
if not app_name:
|
|
388
392
|
raise Exception("appName or appKey is required")
|
|
@@ -394,7 +398,9 @@ class ActionsService(FolderContext, BaseService):
|
|
|
394
398
|
)
|
|
395
399
|
|
|
396
400
|
try:
|
|
397
|
-
deployed_app =
|
|
401
|
+
deployed_app = self._extract_deployed_app(
|
|
402
|
+
response.json()["deployed"], app_folder_path
|
|
403
|
+
)
|
|
398
404
|
action_schema = deployed_app["actionSchema"]
|
|
399
405
|
deployed_app_key = deployed_app["systemName"]
|
|
400
406
|
except (KeyError, IndexError):
|
|
@@ -413,6 +419,21 @@ class ActionsService(FolderContext, BaseService):
|
|
|
413
419
|
except KeyError:
|
|
414
420
|
raise Exception("Failed to deserialize action schema") from KeyError
|
|
415
421
|
|
|
422
|
+
# should be removed after folder filtering support is added on apps API
|
|
423
|
+
def _extract_deployed_app(
|
|
424
|
+
self, deployed_apps: List[Dict[str, Any]], app_folder_path: Optional[str]
|
|
425
|
+
) -> Dict[str, Any]:
|
|
426
|
+
if len(deployed_apps) > 1 and not app_folder_path:
|
|
427
|
+
raise Exception("Multiple app schemas found")
|
|
428
|
+
try:
|
|
429
|
+
return next(
|
|
430
|
+
app
|
|
431
|
+
for app in deployed_apps
|
|
432
|
+
if app["deploymentFolder"]["fullyQualifiedName"] == app_folder_path
|
|
433
|
+
)
|
|
434
|
+
except StopIteration:
|
|
435
|
+
raise KeyError from StopIteration
|
|
436
|
+
|
|
416
437
|
@property
|
|
417
438
|
def custom_headers(self) -> Dict[str, str]:
|
|
418
439
|
return self.folder_headers
|