Skip to content

Commit ba21d69

Browse files
committed
chore: move platform module to uipath-platform lib
1 parent 4cc54b2 commit ba21d69

160 files changed

Lines changed: 291 additions & 44067 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[project]
22
name = "uipath"
3-
version = "2.8.49"
3+
version = "2.9.0"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
8-
"uipath-core>=0.5.0, <0.6.0",
9-
"uipath-runtime>=0.9.0, <0.10.0",
8+
"uipath-core>=0.5.2, <0.6.0",
9+
"uipath-runtime>=0.9.1, <0.10.0",
10+
"uipath-platform>=0.0.1, < 0.1.0",
1011
"click>=8.3.1",
1112
"httpx>=0.28.1",
1213
"pyjwt>=2.10.1",

src/uipath/_cli/_auth/_portal_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import click
44
import httpx
5+
from uipath.platform.common import TokenData
56
from uipath.runtime.errors import (
67
UiPathErrorCategory,
78
UiPathErrorCode,
@@ -10,7 +11,6 @@
1011

1112
from ..._utils._auth import update_env_file
1213
from ..._utils._ssl_context import get_httpx_client_kwargs
13-
from ...platform.common import TokenData
1414
from .._utils._console import ConsoleLogger
1515
from ._models import OrganizationInfo, TenantInfo, TenantsAndOrganizationInfoResponse
1616
from ._oidc_utils import OidcUtils

src/uipath/_cli/_auth/_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
import os
33
from pathlib import Path
44

5+
from uipath.platform.common import TokenData
6+
57
from ..._utils._auth import parse_access_token
6-
from ...platform.common import TokenData
78
from ._models import AccessTokenData
89

910

src/uipath/_cli/_chat/_bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
UiPathConversationToolCallConfirmationInterruptStartEvent,
1919
UiPathConversationToolCallConfirmationValue,
2020
)
21-
from uipath.runtime import UiPathResumeTrigger
21+
from uipath.core.triggers import UiPathResumeTrigger
2222
from uipath.runtime.chat import UiPathChatProtocol
2323
from uipath.runtime.context import UiPathRuntimeContext
2424

src/uipath/_cli/_debug/_bridge.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from pydantic import BaseModel
1111
from rich.console import Console
1212
from rich.tree import Tree
13+
from uipath.core.serialization import serialize_object
14+
from uipath.core.triggers import UiPathResumeTriggerType
1315
from uipath.runtime import (
1416
UiPathBreakpointResult,
1517
UiPathRuntimeContext,
@@ -18,9 +20,6 @@
1820
)
1921
from uipath.runtime.debug import UiPathDebugProtocol, UiPathDebugQuitError
2022
from uipath.runtime.events import UiPathRuntimeStateEvent, UiPathRuntimeStatePhase
21-
from uipath.runtime.resumable import UiPathResumeTriggerType
22-
23-
from uipath._cli._utils._common import serialize_object
2423

2524
logger = logging.getLogger(__name__)
2625

src/uipath/_cli/_evals/_console_progress_reporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from rich.console import Console
77
from rich.rule import Rule
88
from rich.table import Table
9+
from uipath.core.events import EventBus
910

10-
from uipath._events._event_bus import EventBus
1111
from uipath._events._events import (
1212
EvalRunCreatedEvent,
1313
EvalRunUpdatedEvent,

src/uipath/_cli/_evals/_evaluate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
from uipath.core.events import EventBus
12
from uipath.core.tracing import UiPathTraceManager
23
from uipath.runtime import (
34
UiPathRuntimeFactoryProtocol,
45
UiPathRuntimeResult,
56
)
67

78
from uipath._cli._evals._runtime import UiPathEvalContext, UiPathEvalRuntime
8-
from uipath._events._event_bus import EventBus
99

1010

1111
async def evaluate(

src/uipath/_cli/_evals/_progress_reporter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
from opentelemetry import trace
1212
from pydantic import BaseModel
1313
from rich.console import Console
14+
from uipath.core.events import EventBus
15+
from uipath.platform import UiPath
16+
from uipath.platform.common import UiPathConfig
1417

1518
from uipath._cli._evals._models._evaluation_set import (
1619
EvaluationItem,
@@ -21,7 +24,6 @@
2124
StudioWebProgressItem,
2225
)
2326
from uipath._cli._utils._console import ConsoleLogger
24-
from uipath._events._event_bus import EventBus
2527
from uipath._events._events import (
2628
EvalRunCreatedEvent,
2729
EvalRunUpdatedEvent,
@@ -41,8 +43,6 @@
4143
)
4244
from uipath.eval.evaluators.base_evaluator import GenericBaseEvaluator
4345
from uipath.eval.models import EvalItemResult, ScoreType
44-
from uipath.platform import UiPath
45-
from uipath.platform.common import UiPathConfig
4646

4747
logger = logging.getLogger(__name__)
4848

src/uipath/_cli/_evals/_runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use_span,
2929
)
3030
from pydantic import BaseModel
31+
from uipath.core.events import EventBus
3132
from uipath.core.tracing import UiPathTraceManager
3233
from uipath.core.tracing.processors import UiPathExecutionBatchTraceProcessor
3334
from uipath.runtime import (
@@ -55,7 +56,6 @@
5556
generate_llm_input,
5657
)
5758

58-
from ..._events._event_bus import EventBus
5959
from ..._events._events import (
6060
EvalItemExceptionDetails,
6161
EvalRunCreatedEvent,

src/uipath/_cli/_evals/_telemetry.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
import time
1010
from typing import Any, Dict, Optional
1111

12+
from uipath.core.events import EventBus
13+
from uipath.platform.common import UiPathConfig
14+
1215
from uipath._cli._utils._common import get_claim_from_token
13-
from uipath._events._event_bus import EventBus
1416
from uipath._events._events import (
1517
EvalRunCreatedEvent,
1618
EvalRunUpdatedEvent,
1719
EvalSetRunCreatedEvent,
1820
EvalSetRunUpdatedEvent,
1921
EvaluationEvents,
2022
)
21-
from uipath.platform.common._config import UiPathConfig
2223
from uipath.telemetry._track import is_telemetry_enabled, track_event
2324

2425
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)