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

@@ -3,7 +3,7 @@ import time
3
3
  from typing import Optional
4
4
 
5
5
  import click
6
- import requests
6
+ import httpx
7
7
 
8
8
  from .._utils._console import ConsoleLogger
9
9
  from ._models import TenantsAndOrganizationInfoResponse, TokenData
@@ -16,6 +16,7 @@ from ._utils import (
16
16
  )
17
17
 
18
18
  console = ConsoleLogger()
19
+ client = httpx.Client(follow_redirects=True)
19
20
 
20
21
 
21
22
  class PortalService:
@@ -44,10 +45,10 @@ class PortalService:
44
45
 
45
46
  def get_tenants_and_organizations(self) -> TenantsAndOrganizationInfoResponse:
46
47
  url = f"https://{self.domain}.uipath.com/{self.prt_id}/portal_/api/filtering/leftnav/tenantsAndOrganizationInfo"
47
- response = requests.get(
48
+ response = client.get(
48
49
  url, headers={"Authorization": f"Bearer {self.access_token}"}
49
50
  )
50
- if response.ok:
51
+ if response.status_code < 400:
51
52
  result = response.json()
52
53
  self._tenants_and_organizations = result
53
54
  return result
@@ -82,8 +83,8 @@ class PortalService:
82
83
 
83
84
  headers = {"Content-Type": "application/x-www-form-urlencoded"}
84
85
 
85
- response = requests.post(url, data=data, headers=headers)
86
- if response.ok:
86
+ response = client.post(url, data=data, headers=headers)
87
+ if response.status_code < 400:
87
88
  return response.json()
88
89
  elif response.status_code == 401:
89
90
  console.error("Unauthorized")
@@ -147,7 +148,7 @@ class PortalService:
147
148
 
148
149
  try:
149
150
  [try_enable_first_run_response, acquire_license_response] = [
150
- requests.post(
151
+ client.post(
151
152
  url,
152
153
  headers={"Authorization": f"Bearer {self.access_token}"},
153
154
  )
@@ -1,17 +1,18 @@
1
1
  from typing import Optional, Tuple
2
2
 
3
- import requests
3
+ import httpx
4
4
 
5
5
  from ._console import ConsoleLogger
6
6
 
7
7
  console = ConsoleLogger()
8
+ client = httpx.Client(follow_redirects=True)
8
9
 
9
10
 
10
11
  def get_personal_workspace_info(
11
12
  base_url: str, token: str
12
13
  ) -> Tuple[Optional[str], Optional[str]]:
13
14
  user_url = f"{base_url}/orchestrator_/odata/Users/UiPath.Server.Configuration.OData.GetCurrentUserExtended?$expand=PersonalWorkspace"
14
- user_response = requests.get(user_url, headers={"Authorization": f"Bearer {token}"})
15
+ user_response = client.get(user_url, headers={"Authorization": f"Bearer {token}"})
15
16
 
16
17
  if user_response.status_code != 200:
17
18
  console.error("Error: Failed to fetch user info. Please try reauthenticating.")
@@ -2,11 +2,12 @@ import json
2
2
  import urllib.parse
3
3
  from typing import Any
4
4
 
5
- import requests
5
+ import httpx
6
6
 
7
7
  from ._console import ConsoleLogger
8
8
 
9
9
  console = ConsoleLogger()
10
+ client = httpx.Client(follow_redirects=True)
10
11
 
11
12
 
12
13
  def get_release_info(
@@ -18,7 +19,7 @@ def get_release_info(
18
19
  }
19
20
 
20
21
  release_url = f"{base_url}/orchestrator_/odata/Releases/UiPath.Server.Configuration.OData.ListReleases?$select=Id,Key&$top=1&$filter=Name%20eq%20%27{urllib.parse.quote(package_name)}%27"
21
- response = requests.get(release_url, headers=headers)
22
+ response = client.get(release_url, headers=headers)
22
23
  if response.status_code == 200:
23
24
  try:
24
25
  data = json.loads(response.text)
uipath/_cli/cli_invoke.py CHANGED
@@ -4,7 +4,7 @@ import os
4
4
  from typing import Optional
5
5
 
6
6
  import click
7
- import requests
7
+ import httpx
8
8
  from dotenv import load_dotenv
9
9
 
10
10
  from ._utils._console import ConsoleLogger
@@ -21,6 +21,7 @@ from ._utils._processes import get_release_info
21
21
  logger = logging.getLogger(__name__)
22
22
  load_dotenv()
23
23
  console = ConsoleLogger()
24
+ client = httpx.Client(follow_redirects=True)
24
25
 
25
26
 
26
27
  def _read_project_name() -> str:
@@ -74,7 +75,7 @@ def invoke(entrypoint: Optional[str], input: Optional[str]) -> None:
74
75
  "x-uipath-organizationunitid": str(personal_workspace_folder_id),
75
76
  }
76
77
 
77
- response = requests.post(url, json=payload, headers=headers)
78
+ response = client.post(url, json=payload, headers=headers)
78
79
 
79
80
  if response.status_code == 201:
80
81
  job_key = None
@@ -3,7 +3,7 @@ import json
3
3
  import os
4
4
 
5
5
  import click
6
- import requests
6
+ import httpx
7
7
  from dotenv import load_dotenv
8
8
 
9
9
  from ._utils._common import get_env_vars
@@ -12,6 +12,7 @@ from ._utils._folders import get_personal_workspace_info
12
12
  from ._utils._processes import get_release_info
13
13
 
14
14
  console = ConsoleLogger()
15
+ client = httpx.Client(follow_redirects=True)
15
16
 
16
17
 
17
18
  def get_most_recent_package():
@@ -33,7 +34,7 @@ def get_available_feeds(
33
34
  base_url: str, headers: dict[str, str]
34
35
  ) -> list[tuple[str, str]]:
35
36
  url = f"{base_url}/orchestrator_/api/PackageFeeds/GetFeeds"
36
- response = requests.get(url, headers=headers)
37
+ response = httpx.get(url, headers=headers)
37
38
  if response.status_code != 200:
38
39
  console.error(
39
40
  f"Failed to fetch available feeds. Please check your connection. Status code: {response.status_code} {response.text}"
@@ -122,7 +123,7 @@ def publish(feed):
122
123
 
123
124
  with open(package_to_publish_path, "rb") as f:
124
125
  files = {"file": (package_to_publish_path, f, "application/octet-stream")}
125
- response = requests.post(url, headers=headers, files=files)
126
+ response = client.post(url, headers=headers, files=files)
126
127
 
127
128
  if response.status_code == 200:
128
129
  console.success("Package published successfully!")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.0.35
3
+ Version: 2.0.36
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
@@ -18,13 +18,10 @@ Requires-Dist: httpx>=0.28.1
18
18
  Requires-Dist: opentelemetry-sdk>=1.32.1
19
19
  Requires-Dist: pathlib>=1.0.1
20
20
  Requires-Dist: pydantic>=2.11.1
21
- Requires-Dist: pytest-asyncio>=0.25.3
22
21
  Requires-Dist: python-dotenv>=1.0.1
23
- Requires-Dist: requests>=2.32.3
24
22
  Requires-Dist: rich>=13.0.0
25
23
  Requires-Dist: tenacity>=9.0.0
26
24
  Requires-Dist: tomli>=2.2.1
27
- Requires-Dist: types-requests>=2.32.0.20250306
28
25
  Provides-Extra: langchain
29
26
  Requires-Dist: uipath-langchain<0.1.0,>=0.0.88; extra == 'langchain'
30
27
  Description-Content-Type: text/markdown
@@ -9,17 +9,17 @@ uipath/_cli/__init__.py,sha256=vGz3vJHkUvgK9_lKdzqiwwHkge1TCALRiOzGGwyr-8E,1885
9
9
  uipath/_cli/cli_auth.py,sha256=O-hbaYxLXBPXgnjW2gGa1lbvmVh1ui2-U9BzrLUU708,3707
10
10
  uipath/_cli/cli_deploy.py,sha256=lnGwwhDDY6La0fj_-duqx9saGUvY2iNNW28rQCI3hsU,308
11
11
  uipath/_cli/cli_init.py,sha256=qleaHOuXZyqQ001XXFX3m8W2y3pW-miwuvMBl6rHCa4,3699
12
- uipath/_cli/cli_invoke.py,sha256=o0iNl_aWQqFaYV9YYpCpSJtpTxmqP5TqpZZ69dTCoog,3238
12
+ uipath/_cli/cli_invoke.py,sha256=OjsiwVq6g_Ah2E2Iv1OWmFR-Cpvf8-0YmsHXL8rfphg,3278
13
13
  uipath/_cli/cli_new.py,sha256=dZGdyPDk16L17JdmDh_cY6MNSvf0CwNrrAQmzUo-eUw,2069
14
14
  uipath/_cli/cli_pack.py,sha256=FZr7P5WZvPkrP56fjn4dTONv76NuoEhVtQwzG3CxGQs,14667
15
- uipath/_cli/cli_publish.py,sha256=qhuYQq8kogUbCDd-x7_vV4Px8t-0UeAjm96lE7KQBHM,5679
15
+ uipath/_cli/cli_publish.py,sha256=ozastFqfKZVZIKZLvRTXJq0ZXm4p-ZEVgwc5MeccisI,5716
16
16
  uipath/_cli/cli_run.py,sha256=ke4UQiqzagv4ST60-mvcC7nh1dQMw_Z6GQ2hAbnspU0,5074
17
17
  uipath/_cli/middlewares.py,sha256=IiJgjsqrJVKSXx4RcIKHWoH-SqWqpHPbhzkQEybmAos,3937
18
18
  uipath/_cli/spinner.py,sha256=bS-U_HA5yne11ejUERu7CQoXmWdabUD2bm62EfEdV8M,1107
19
19
  uipath/_cli/_auth/_auth_server.py,sha256=GRdjXUcvZO2O2GecolFJ8uMv7_DUD_VXeBJpElqmtIQ,7034
20
20
  uipath/_cli/_auth/_models.py,sha256=sYMCfvmprIqnZxStlD_Dxx2bcxgn0Ri4D7uwemwkcNg,948
21
21
  uipath/_cli/_auth/_oidc_utils.py,sha256=WaX9jDlXrlX6yD8i8gsocV8ngjaT72Xd1tvsZMmSbco,2127
22
- uipath/_cli/_auth/_portal_service.py,sha256=dANFBaFFYbkprYHDLjCVxcD6bITAxZuyyW_GPpyyEvY,7160
22
+ uipath/_cli/_auth/_portal_service.py,sha256=EXpUXhA20iFtwFJi7I72UJzuA4lEE_ZWt6MdfuW65c4,7226
23
23
  uipath/_cli/_auth/_utils.py,sha256=9nb76xe5XmDZ0TAncp-_1SKqL6FdwRi9eS3C2noN1lY,1591
24
24
  uipath/_cli/_auth/auth_config.json,sha256=NTb_ZZor5xEgya2QbK51GiTL5_yVqG_QpV4VYIp8_mk,342
25
25
  uipath/_cli/_auth/index.html,sha256=ML_xDOcKs0ETYucufJskiYfWSvdrD_E26C0Qd3qpGj8,6280
@@ -35,10 +35,10 @@ uipath/_cli/_templates/main.py.template,sha256=QB62qX5HKDbW4lFskxj7h9uuxBITnTWqu
35
35
  uipath/_cli/_templates/package.nuspec.template,sha256=YZyLc-u_EsmIoKf42JsLQ55OGeFmb8VkIU2VF7DFbtw,359
36
36
  uipath/_cli/_utils/_common.py,sha256=h0-lvaAzz-4iM7WuEqZhlTo5QadBpsQyAdlggx73-PA,1123
37
37
  uipath/_cli/_utils/_console.py,sha256=rj4V3yeR1wnJzFTHnaE6wcY9OoJV-PiIQnLg_p62ClQ,6664
38
- uipath/_cli/_utils/_folders.py,sha256=-JilzZ4DM-nvpRkgaKZyV_xm1vq_8Ul9hRgOJ2yJJ5w,916
38
+ uipath/_cli/_utils/_folders.py,sha256=YfU-DS2GONeB0dMN7VFPonc4Eh1-tCNX8r6v_5J5tzI,956
39
39
  uipath/_cli/_utils/_input_args.py,sha256=pyQhEcQXHdFHYTVNzvfWp439aii5StojoptnmCv5lfs,4094
40
40
  uipath/_cli/_utils/_parse_ast.py,sha256=3XVjnhJNnSfjXlitct91VOtqSl0l-sqDpoWww28mMc0,20663
41
- uipath/_cli/_utils/_processes.py,sha256=TOtmF5LW7hbSGy4j0LqUfK-iPtl_cWWKjLb0lkPc9vI,1356
41
+ uipath/_cli/_utils/_processes.py,sha256=b2CMYFEqMsAPeAFRfx9-8QftujdB28gXJ4sVTT4UVvw,1396
42
42
  uipath/_services/__init__.py,sha256=VPbwLDsvN26nWZgvR-8_-tc3i0rk5doqjTJbSrK0nN4,818
43
43
  uipath/_services/_base_service.py,sha256=3YClCoZBkVQGNJZGy-4NTk-HGsGA61XtwVQFYv9mwWk,7955
44
44
  uipath/_services/actions_service.py,sha256=PQ6HGEfX1vRBkFsjP2ykBRc9xOIf7wVKJC7Dkhka3HM,15623
@@ -79,8 +79,8 @@ uipath/tracing/__init__.py,sha256=GimSzv6qkCOlHOG1WtjYKJsZqcXpA28IgoXfR33JhiA,13
79
79
  uipath/tracing/_otel_exporters.py,sha256=x0PDPmDKJcxashsuehVsSsqBCzRr6WsNFaq_3_HS5F0,3014
80
80
  uipath/tracing/_traced.py,sha256=GFxOp73jk0vGTN_H7YZOOsEl9rVLaEhXGztMiYKIA-8,16634
81
81
  uipath/tracing/_utils.py,sha256=5SwsTGpHkIouXBndw-u8eCLnN4p7LM8DsTCCuf2jJgs,10165
82
- uipath-2.0.35.dist-info/METADATA,sha256=eYjELs27kjHhg50HaE92krP3uJ0Rd5TiL46S6VfO4Ec,6303
83
- uipath-2.0.35.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
84
- uipath-2.0.35.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
85
- uipath-2.0.35.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
86
- uipath-2.0.35.dist-info/RECORD,,
82
+ uipath-2.0.36.dist-info/METADATA,sha256=9vPeDC9H9gBQp9jHdWcXWWNfgC-nAopQ-c-75KmUt6U,6186
83
+ uipath-2.0.36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
84
+ uipath-2.0.36.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
85
+ uipath-2.0.36.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
86
+ uipath-2.0.36.dist-info/RECORD,,