Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[project]
name = "uipath"
version = "2.1.168"
version = "2.1.169"
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"
dependencies = [
"click>=8.1.8",
"httpx>=0.28.1",
"pyjwt>=2.10.1",
"opentelemetry-sdk>=1.31.1",
"opentelemetry-instrumentation>=0.52b1",
"pydantic>=2.11.1",
Expand All @@ -15,7 +16,6 @@ dependencies = [
"tomli>=2.2.1",
"pathlib>=1.0.1",
"rich>=13.0.0",
"azure-monitor-opentelemetry>=1.6.8",
"truststore>=0.10.1",
"textual>=5.3.0",
"pyperclip>=1.9.0",
Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import click

from ..telemetry import track
from ._utils._console import ConsoleLogger
from ._utils._constants import EVALS_DIRECTORY_NAME
from ._utils._resources import Resources
Expand Down Expand Up @@ -85,7 +84,6 @@ def create_evaluator(evaluator_name):
@click.command()
@click.argument("resource", required=True)
@click.argument("args", nargs=-1)
@track
def add(resource: str, args: tuple[str]) -> None:
"""Create a local resource.

Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import click

from ..telemetry import track
from ._auth._auth_service import AuthService
from ._utils._common import environment_options
from ._utils._console import ConsoleLogger
Expand Down Expand Up @@ -46,7 +45,6 @@
default="OR.Execution",
help="Space-separated list of OAuth scopes to request (e.g., 'OR.Execution OR.Queues'). Defaults to 'OR.Execution'",
)
@track
def auth(
environment: str,
force: bool = False,
Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_deploy.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# type: ignore
import click

from ..telemetry import track
from .cli_pack import pack
from .cli_publish import publish

Expand Down Expand Up @@ -29,7 +28,6 @@
help="Folder name to publish to (skips interactive selection)",
)
@click.argument("root", type=str, default="./")
@track
def deploy(root, feed, folder):
"""Pack and publish the project."""
ctx = click.get_current_context()
Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from uipath._cli._utils._debug import setup_debugging
from uipath._cli.cli_init import init # type: ignore[attr-defined]
from uipath._cli.middlewares import Middlewares
from uipath.telemetry import track

console = ConsoleLogger()

Expand All @@ -29,7 +28,6 @@
default=5678,
help="Port for the debug server (default: 5678)",
)
@track
def dev(interface: Optional[str], debug: bool, debug_port: int) -> None:
"""Launch interactive debugging interface."""
project_file = os.path.join(os.getcwd(), "uipath.json")
Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

from .._config import UiPathConfig
from .._utils.constants import ENV_TELEMETRY_ENABLED
from ..telemetry import track
from ..telemetry._constants import _PROJECT_KEY, _TELEMETRY_CONFIG_FILE
from ._runtime._runtime import get_user_script
from ._runtime._runtime_factory import generate_runtime_factory
Expand Down Expand Up @@ -178,7 +177,6 @@ def write_config_file(config_data: Dict[str, Any] | RuntimeSchema) -> None:
default=False,
help="Won't override existing .agent files and AGENTS.md file.",
)
@track
def init(entrypoint: str, infer_bindings: bool, no_agents_md_override: bool) -> None:
"""Create uipath.json with input/output schemas and bindings."""
with console.spinner("Initializing UiPath project ..."):
Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_invoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import tomli as tomllib

from .._utils._ssl_context import get_httpx_client_kwargs
from ..telemetry import track
from ._utils._common import get_env_vars
from ._utils._folders import get_personal_workspace_info_async
from ._utils._processes import get_release_info
Expand Down Expand Up @@ -51,7 +50,6 @@ def _read_project_details() -> [str, str]:
type=click.Path(exists=True),
help="File path for the .json input",
)
@track
def invoke(
entrypoint: Optional[str], input: Optional[str], file: Optional[str]
) -> None:
Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import click

from ..telemetry import track
from ._utils._console import ConsoleLogger
from .middlewares import Middlewares

Expand Down Expand Up @@ -39,7 +38,6 @@ def generate_pyproject(target_directory, project_name):

@click.command()
@click.argument("name", type=str, default="")
@track
def new(name: str):
"""Generate a quick-start project."""
directory = os.getcwd()
Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from uipath._config import UiPathConfig
from uipath._utils.constants import EVALS_FOLDER, LEGACY_EVAL_FOLDER

from ..telemetry import track
from ..telemetry._constants import _PROJECT_KEY, _TELEMETRY_CONFIG_FILE
from ._utils._console import ConsoleLogger
from ._utils._project_files import (
Expand Down Expand Up @@ -336,7 +335,6 @@ def display_project_info(config):
is_flag=True,
help="Skip running uv lock and exclude uv.lock from the package",
)
@track
def pack(root, nolock):
"""Pack the project."""
version = get_project_version(root)
Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import httpx

from .._utils._ssl_context import get_httpx_client_kwargs
from ..telemetry import track
from ._utils._common import get_env_vars
from ._utils._console import ConsoleLogger
from ._utils._folders import get_personal_workspace_info_async
Expand Down Expand Up @@ -118,7 +117,6 @@ def find_feed_by_folder_name(
type=str,
help="Folder name to publish to (skips interactive selection)",
)
@track
def publish(feed, folder):
"""Publish the package."""
[base_url, token] = get_env_vars()
Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import click

from .._config import UiPathConfig
from ..telemetry import track
from ._utils._console import ConsoleLogger
from ._utils._project_files import (
InteractiveConflictHandler,
Expand All @@ -25,7 +24,6 @@
type=click.Path(exists=False, file_okay=False, dir_okay=True, path_type=Path),
default=Path("."),
)
@track
def pull(root: Path) -> None:
"""Pull remote project files from Studio Web Project.

Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from uipath.models.exceptions import EnrichedException

from .._config import UiPathConfig
from ..telemetry import track
from ._push.sw_file_handler import SwFileHandler, UpdateEvent
from ._utils._console import ConsoleLogger
from ._utils._project_files import (
Expand Down Expand Up @@ -71,7 +70,6 @@ async def upload_source_files_to_project(
is_flag=True,
help="Skip running uv lock and exclude uv.lock from the package",
)
@track
def push(root: str, nolock: bool) -> None:
"""Push local project files to Studio Web Project.

Expand Down
2 changes: 0 additions & 2 deletions src/uipath/_cli/cli_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import click

from ..telemetry import track
from ._evals._helpers import register_evaluator
from ._utils._console import ConsoleLogger
from ._utils._resources import Resources
Expand All @@ -15,7 +14,6 @@
@click.command()
@click.argument("resource", required=True)
@click.argument("args", nargs=-1)
@track
def register(resource: str, args: tuple[str]) -> None:
"""Register a local resource.

Expand Down
7 changes: 0 additions & 7 deletions src/uipath/telemetry/_track.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from logging import INFO, WARNING, LogRecord, getLogger
from typing import Any, Callable, Dict, Optional, Union

from azure.monitor.opentelemetry import configure_azure_monitor
from opentelemetry.sdk._logs import LoggingHandler
from opentelemetry.util.types import Attributes

Expand All @@ -26,7 +25,6 @@
_CODE_FILEPATH,
_CODE_FUNCTION,
_CODE_LINENO,
_CONNECTION_STRING,
_OTEL_RESOURCE_ATTRIBUTES,
_PROJECT_KEY,
_SDK_VERSION,
Expand Down Expand Up @@ -104,11 +102,6 @@ def _initialize():
os.environ["OTEL_TRACES_EXPORTER"] = "none"
os.environ["APPLICATIONINSIGHTS_STATSBEAT_DISABLED_ALL"] = "true"

configure_azure_monitor(
connection_string=_CONNECTION_STRING,
disable_offline_storage=True,
)

getLogger("azure").setLevel(WARNING)
_logger.addHandler(_AzureMonitorOpenTelemetryEventHandler())
_logger.setLevel(INFO)
Expand Down
Loading