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

@@ -577,16 +577,14 @@ class UiPathBaseRuntime(ABC):
577
577
  runtime = cls(context)
578
578
  return runtime
579
579
 
580
- @property
581
- def get_binding_resources(self) -> List[BindingResource]:
580
+ async def get_binding_resources(self) -> List[BindingResource]:
582
581
  """Get binding resources for this runtime.
583
582
 
584
583
  Returns: A list of binding resources.
585
584
  """
586
585
  raise NotImplementedError()
587
586
 
588
- @property
589
- def get_entrypoint(self) -> Entrypoint:
587
+ async def get_entrypoint(self) -> Entrypoint:
590
588
  """Get entrypoint for this runtime.
591
589
 
592
590
  Returns: A entrypoint for this runtime.
@@ -3,7 +3,6 @@
3
3
  import logging
4
4
  import os
5
5
  import uuid
6
- from functools import cached_property
7
6
  from pathlib import Path
8
7
  from typing import Any, Awaitable, Callable, List, Optional, TypeVar
9
8
 
@@ -116,9 +115,8 @@ class UiPathScriptRuntime(UiPathRuntime):
116
115
  """Create runtime instance from context."""
117
116
  return UiPathScriptRuntime(context, context.entrypoint or "")
118
117
 
119
- @cached_property
120
118
  @override
121
- def get_binding_resources(self) -> List[BindingResource]:
119
+ async def get_binding_resources(self) -> List[BindingResource]:
122
120
  """Get binding resources for script runtime.
123
121
 
124
122
  Returns: A list of binding resources.
@@ -128,9 +126,8 @@ class UiPathScriptRuntime(UiPathRuntime):
128
126
  bindings = generate_bindings(script_path)
129
127
  return bindings.resources
130
128
 
131
- @cached_property
132
129
  @override
133
- def get_entrypoint(self) -> Entrypoint:
130
+ async def get_entrypoint(self) -> Entrypoint:
134
131
  working_dir = self.context.runtime_dir or os.getcwd()
135
132
  script_path = get_user_script(working_dir, entrypoint=self.context.entrypoint)
136
133
  if not script_path:
uipath/_cli/cli_init.py CHANGED
@@ -1,4 +1,5 @@
1
1
  # type: ignore
2
+ import asyncio
2
3
  import importlib.resources
3
4
  import json
4
5
  import logging
@@ -218,15 +219,15 @@ def init(entrypoint: str, infer_bindings: bool, no_agents_md_override: bool) ->
218
219
  "entrypoint": script_path,
219
220
  }
220
221
 
221
- def initialize() -> None:
222
+ async def initialize() -> None:
222
223
  try:
223
224
  runtime = generate_runtime_factory().new_runtime(**context_args)
224
225
  bindings = Bindings(
225
226
  version="2.0",
226
- resources=runtime.get_binding_resources,
227
+ resources=await runtime.get_binding_resources(),
227
228
  )
228
229
  config_data = RuntimeSchema(
229
- entryPoints=[runtime.get_entrypoint],
230
+ entryPoints=[await runtime.get_entrypoint()],
230
231
  bindings=bindings,
231
232
  )
232
233
  config_path = write_config_file(config_data)
@@ -234,4 +235,4 @@ def init(entrypoint: str, infer_bindings: bool, no_agents_md_override: bool) ->
234
235
  except Exception as e:
235
236
  console.error(f"Error creating configuration file:\n {str(e)}")
236
237
 
237
- initialize()
238
+ asyncio.run(initialize())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.1.109
3
+ Version: 2.1.110
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
@@ -12,7 +12,7 @@ uipath/_cli/cli_debug.py,sha256=-s6Nmy0DnDyITjZAf6f71hZ1YDDt0Yl57XklEkuL0FU,4068
12
12
  uipath/_cli/cli_deploy.py,sha256=KPCmQ0c_NYD5JofSDao5r6QYxHshVCRxlWDVnQvlp5w,645
13
13
  uipath/_cli/cli_dev.py,sha256=nEfpjw1PZ72O6jmufYWVrueVwihFxDPOeJakdvNHdOA,2146
14
14
  uipath/_cli/cli_eval.py,sha256=44DLzz4NDpjgqtYf-YTk4FulAF_BI4i3mCNZV0o3Otk,5037
15
- uipath/_cli/cli_init.py,sha256=hAPMV_0HGZD0cDh7KqHDwMRlUfLoJl2NCp4T3Ilw8y0,7487
15
+ uipath/_cli/cli_init.py,sha256=AXLZyN_PJju6BmHZNcgTx3tO-la60fUKQNJDIj_jgyo,7537
16
16
  uipath/_cli/cli_invoke.py,sha256=m-te-EjhDpk_fhFDkt-yQFzmjEHGo5lQDGEQWxSXisQ,4395
17
17
  uipath/_cli/cli_new.py,sha256=9378NYUBc9j-qKVXV7oja-jahfJhXBg8zKVyaon7ctY,2102
18
18
  uipath/_cli/cli_pack.py,sha256=U5rXVbUnHFgdEsXyhkjmWza8dfob1wU9lyl4yrYnUss,11076
@@ -72,11 +72,11 @@ uipath/_cli/_evals/mocks/mockito_mocker.py,sha256=opwfELnvuh3krnPAg0MupkHTEmhCpQ
72
72
  uipath/_cli/_evals/mocks/mocks.py,sha256=IrvhtTtIuU5geopvCRglNhxKoOcChnnjQZMoYygx0PU,2225
73
73
  uipath/_cli/_push/models.py,sha256=K3k6QUMkiNIb3M4U0EgDlKz1UELxeMXLNVAj3qyhZ4U,470
74
74
  uipath/_cli/_push/sw_file_handler.py,sha256=ivHj0qzCvEP45M3x-Oi2edO5I-uhyHzgnidDF3JRoTk,36192
75
- uipath/_cli/_runtime/_contracts.py,sha256=fj88vbuNq4-f69LQg6Ykt49ScEksJMYdkC20CtVEZ3s,36232
75
+ uipath/_cli/_runtime/_contracts.py,sha256=op8dyKTayWXKsKqVqGj_vGxwthLU8nLxqIx48-ol5Kg,36216
76
76
  uipath/_cli/_runtime/_escalation.py,sha256=x3vI98qsfRA-fL_tNkRVTFXioM5Gv2w0GFcXJJ5eQtg,7981
77
77
  uipath/_cli/_runtime/_hitl.py,sha256=JAwTUKvxO4HpnZMwE4E0AegAPw_uYOwgt0OYcu6EvTg,11474
78
78
  uipath/_cli/_runtime/_logging.py,sha256=srjAi3Cy6g7b8WNHiYNjaZT4t40F3XRqquuoGd2kh4Y,14019
79
- uipath/_cli/_runtime/_runtime.py,sha256=Y20NFvnrLvnRi9u6D1HmUT9H7vbbsa423w-CkIRtTlA,4756
79
+ uipath/_cli/_runtime/_runtime.py,sha256=th_7d-aV4TZ0LhwblI_OP9RWKaNEgOR1zD3L5uwz5Ds,4688
80
80
  uipath/_cli/_runtime/_runtime_factory.py,sha256=8wbJeTTFQwCZ-Zm7tRec2YjBCJGhWdEwxl9yMkPwz6U,640
81
81
  uipath/_cli/_runtime/_script_executor.py,sha256=zRAGQw_7gM93W3hGH4ml_Qn6KEEUxwJIe96odu-dMNA,9803
82
82
  uipath/_cli/_templates/.psmdcp.template,sha256=C7pBJPt98ovEljcBvGtEUGoWjjQhu9jls1bpYjeLOKA,611
@@ -224,8 +224,8 @@ uipath/tracing/_utils.py,sha256=zMjiKjNpSN3YQNEU4-u5AAvPtUsi8QuEqNLya89jfAU,1446
224
224
  uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
225
225
  uipath/utils/_endpoints_manager.py,sha256=tnF_FiCx8qI2XaJDQgYkMN_gl9V0VqNR1uX7iawuLp8,8230
226
226
  uipath/utils/dynamic_schema.py,sha256=w0u_54MoeIAB-mf3GmwX1A_X8_HDrRy6p998PvX9evY,3839
227
- uipath-2.1.109.dist-info/METADATA,sha256=PaFViCqEm8YjQLsrxkX43IMJFRdHCqsmHTLx6rQLmJ0,6626
228
- uipath-2.1.109.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
229
- uipath-2.1.109.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
230
- uipath-2.1.109.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
231
- uipath-2.1.109.dist-info/RECORD,,
227
+ uipath-2.1.110.dist-info/METADATA,sha256=kECcmHAYumtR_e3ktndmcdtaQbiNuacXEn9AJ9p_93I,6626
228
+ uipath-2.1.110.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
229
+ uipath-2.1.110.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
230
+ uipath-2.1.110.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
231
+ uipath-2.1.110.dist-info/RECORD,,