windmill-api 1.523.0__py3-none-any.whl → 1.525.0__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 windmill-api might be problematic. Click here for more details.

@@ -0,0 +1,101 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...types import Response
9
+
10
+
11
+ def _get_kwargs(
12
+ workspace: str,
13
+ id: str,
14
+ ) -> Dict[str, Any]:
15
+ pass
16
+
17
+ return {
18
+ "method": "get",
19
+ "url": "/w/{workspace}/jobs_u/get_completed_logs_tail/{id}".format(
20
+ workspace=workspace,
21
+ id=id,
22
+ ),
23
+ }
24
+
25
+
26
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
27
+ if client.raise_on_unexpected_status:
28
+ raise errors.UnexpectedStatus(response.status_code, response.content)
29
+ else:
30
+ return None
31
+
32
+
33
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
34
+ return Response(
35
+ status_code=HTTPStatus(response.status_code),
36
+ content=response.content,
37
+ headers=response.headers,
38
+ parsed=_parse_response(client=client, response=response),
39
+ )
40
+
41
+
42
+ def sync_detailed(
43
+ workspace: str,
44
+ id: str,
45
+ *,
46
+ client: Union[AuthenticatedClient, Client],
47
+ ) -> Response[Any]:
48
+ """get completed job logs tail
49
+
50
+ Args:
51
+ workspace (str):
52
+ id (str):
53
+
54
+ Raises:
55
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
56
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
57
+
58
+ Returns:
59
+ Response[Any]
60
+ """
61
+
62
+ kwargs = _get_kwargs(
63
+ workspace=workspace,
64
+ id=id,
65
+ )
66
+
67
+ response = client.get_httpx_client().request(
68
+ **kwargs,
69
+ )
70
+
71
+ return _build_response(client=client, response=response)
72
+
73
+
74
+ async def asyncio_detailed(
75
+ workspace: str,
76
+ id: str,
77
+ *,
78
+ client: Union[AuthenticatedClient, Client],
79
+ ) -> Response[Any]:
80
+ """get completed job logs tail
81
+
82
+ Args:
83
+ workspace (str):
84
+ id (str):
85
+
86
+ Raises:
87
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
88
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
89
+
90
+ Returns:
91
+ Response[Any]
92
+ """
93
+
94
+ kwargs = _get_kwargs(
95
+ workspace=workspace,
96
+ id=id,
97
+ )
98
+
99
+ response = await client.get_async_httpx_client().request(**kwargs)
100
+
101
+ return _build_response(client=client, response=response)
@@ -5,21 +5,29 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...types import Response
8
+ from ...types import UNSET, Response, Unset
9
9
 
10
10
 
11
11
  def _get_kwargs(
12
12
  workspace: str,
13
13
  id: str,
14
+ *,
15
+ remove_ansi_warnings: Union[Unset, None, bool] = UNSET,
14
16
  ) -> Dict[str, Any]:
15
17
  pass
16
18
 
19
+ params: Dict[str, Any] = {}
20
+ params["remove_ansi_warnings"] = remove_ansi_warnings
21
+
22
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
23
+
17
24
  return {
18
25
  "method": "get",
19
26
  "url": "/w/{workspace}/jobs_u/get_logs/{id}".format(
20
27
  workspace=workspace,
21
28
  id=id,
22
29
  ),
30
+ "params": params,
23
31
  }
24
32
 
25
33
 
@@ -44,12 +52,14 @@ def sync_detailed(
44
52
  id: str,
45
53
  *,
46
54
  client: Union[AuthenticatedClient, Client],
55
+ remove_ansi_warnings: Union[Unset, None, bool] = UNSET,
47
56
  ) -> Response[Any]:
48
57
  """get job logs
49
58
 
50
59
  Args:
51
60
  workspace (str):
52
61
  id (str):
62
+ remove_ansi_warnings (Union[Unset, None, bool]):
53
63
 
54
64
  Raises:
55
65
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -62,6 +72,7 @@ def sync_detailed(
62
72
  kwargs = _get_kwargs(
63
73
  workspace=workspace,
64
74
  id=id,
75
+ remove_ansi_warnings=remove_ansi_warnings,
65
76
  )
66
77
 
67
78
  response = client.get_httpx_client().request(
@@ -76,12 +87,14 @@ async def asyncio_detailed(
76
87
  id: str,
77
88
  *,
78
89
  client: Union[AuthenticatedClient, Client],
90
+ remove_ansi_warnings: Union[Unset, None, bool] = UNSET,
79
91
  ) -> Response[Any]:
80
92
  """get job logs
81
93
 
82
94
  Args:
83
95
  workspace (str):
84
96
  id (str):
97
+ remove_ansi_warnings (Union[Unset, None, bool]):
85
98
 
86
99
  Raises:
87
100
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -94,6 +107,7 @@ async def asyncio_detailed(
94
107
  kwargs = _get_kwargs(
95
108
  workspace=workspace,
96
109
  id=id,
110
+ remove_ansi_warnings=remove_ansi_warnings,
97
111
  )
98
112
 
99
113
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.523.0
3
+ Version: 1.525.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -194,6 +194,7 @@ windmill_api/api/job/delete_completed_job.py,sha256=oHCZcuHd7AsHB5ouCMzYgK7O6vlD
194
194
  windmill_api/api/job/force_cancel_queued_job.py,sha256=SSYppL4M6IhfoG1j--urqXvJXN85M_qS0-V6WmoqJdI,2902
195
195
  windmill_api/api/job/get_completed_count.py,sha256=G4RSTMiOAv05qnJYhEbw7zK14acv7obYIiEEwIByJhA,3886
196
196
  windmill_api/api/job/get_completed_job.py,sha256=GzqDheSmiz4IeWTZ0F-0Bxx__z2HkkPdvj28A-acNts,4077
197
+ windmill_api/api/job/get_completed_job_logs_tail.py,sha256=F4F57ESLm8c5x8rboGjr1IGfzJnIP4CAmIVgSLM9U9s,2455
197
198
  windmill_api/api/job/get_completed_job_result.py,sha256=gov1zjQ1rywDsetFH8FcC6YYEGSE3jcs_ADKd_0QMzo,3991
198
199
  windmill_api/api/job/get_completed_job_result_maybe.py,sha256=0eUCIgLim-WhTTdrpVpWRdE-sCjr7_ArJbTzL9HC1T4,5130
199
200
  windmill_api/api/job/get_db_clock.py,sha256=7lfDbvRHSN2V4lQLa0L8ZX1-rzp-Rz5Ddk6fR9AuPVY,3041
@@ -201,7 +202,7 @@ windmill_api/api/job/get_flow_debug_info.py,sha256=xsjdM-FnlYEoUY4zBF77sjFPGId_R
201
202
  windmill_api/api/job/get_flow_user_state.py,sha256=98dDuVsEL1wr9cJszCd2CXaTS_gC9dwKBaZ5Z8hV_bw,2667
202
203
  windmill_api/api/job/get_job.py,sha256=8DVd8kj_o-lgTUE2Fjzqcg6Nd19_nzCFOKXHWkLxC64,6223
203
204
  windmill_api/api/job/get_job_args.py,sha256=8UcnOBapvioNbo0IZivAq8PZJMohBYISJV9WuRvqs_o,2476
204
- windmill_api/api/job/get_job_logs.py,sha256=NHgIOhCw47B9e_k4MuyQmIGeAmTbiIVNLRuwkmycRoA,2410
205
+ windmill_api/api/job/get_job_logs.py,sha256=ReT9jgHUCtFmCrYvHhyRSs4cyHq5PDktYO-EjbEjI78,3028
205
206
  windmill_api/api/job/get_job_updates.py,sha256=3b-eFnrSrTnAMFsWCch7ms60evzSgUTsRMmh8_qKlm0,7190
206
207
  windmill_api/api/job/get_job_updates_sse.py,sha256=CjR4EZ3H3iQ68RP2LzzfZWyDxmZkpHvw2do8u36FUaU,4690
207
208
  windmill_api/api/job/get_log_file_from_store.py,sha256=sOpxKqaWBm8oMtz-SxWrIAewTL5DCXHGr6BphHyOy5U,2474
@@ -4399,7 +4400,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
4399
4400
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
4400
4401
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
4401
4402
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
4402
- windmill_api-1.523.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
4403
- windmill_api-1.523.0.dist-info/METADATA,sha256=gfZVGPKEG4g6ms6WVI0w4wwyPVHoP1YKI-R4ff9NZzw,5023
4404
- windmill_api-1.523.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
4405
- windmill_api-1.523.0.dist-info/RECORD,,
4403
+ windmill_api-1.525.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
4404
+ windmill_api-1.525.0.dist-info/METADATA,sha256=tnjJhmfRwQY03T3oMGt6KfeUVX0Q0XZ3jdN-VrLs6D0,5023
4405
+ windmill_api-1.525.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
4406
+ windmill_api-1.525.0.dist-info/RECORD,,