windmill-api 1.394.4__py3-none-any.whl → 1.394.6__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.
- windmill_api/api/helpers/load_table_row_count.py +216 -0
- windmill_api/models/load_table_row_count_response_200.py +58 -0
- {windmill_api-1.394.4.dist-info → windmill_api-1.394.6.dist-info}/METADATA +1 -1
- {windmill_api-1.394.4.dist-info → windmill_api-1.394.6.dist-info}/RECORD +6 -4
- {windmill_api-1.394.4.dist-info → windmill_api-1.394.6.dist-info}/LICENSE +0 -0
- {windmill_api-1.394.4.dist-info → windmill_api-1.394.6.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,216 @@
|
|
|
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 ...models.load_table_row_count_response_200 import LoadTableRowCountResponse200
|
|
9
|
+
from ...types import UNSET, Response, Unset
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
workspace: str,
|
|
14
|
+
path: str,
|
|
15
|
+
*,
|
|
16
|
+
search_col: Union[Unset, None, str] = UNSET,
|
|
17
|
+
search_term: Union[Unset, None, str] = UNSET,
|
|
18
|
+
storage: Union[Unset, None, str] = UNSET,
|
|
19
|
+
) -> Dict[str, Any]:
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
params: Dict[str, Any] = {}
|
|
23
|
+
params["search_col"] = search_col
|
|
24
|
+
|
|
25
|
+
params["search_term"] = search_term
|
|
26
|
+
|
|
27
|
+
params["storage"] = storage
|
|
28
|
+
|
|
29
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
30
|
+
|
|
31
|
+
return {
|
|
32
|
+
"method": "get",
|
|
33
|
+
"url": "/w/{workspace}/job_helpers/load_table_count/{path}".format(
|
|
34
|
+
workspace=workspace,
|
|
35
|
+
path=path,
|
|
36
|
+
),
|
|
37
|
+
"params": params,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _parse_response(
|
|
42
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
43
|
+
) -> Optional[LoadTableRowCountResponse200]:
|
|
44
|
+
if response.status_code == HTTPStatus.OK:
|
|
45
|
+
response_200 = LoadTableRowCountResponse200.from_dict(response.json())
|
|
46
|
+
|
|
47
|
+
return response_200
|
|
48
|
+
if client.raise_on_unexpected_status:
|
|
49
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
50
|
+
else:
|
|
51
|
+
return None
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def _build_response(
|
|
55
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
56
|
+
) -> Response[LoadTableRowCountResponse200]:
|
|
57
|
+
return Response(
|
|
58
|
+
status_code=HTTPStatus(response.status_code),
|
|
59
|
+
content=response.content,
|
|
60
|
+
headers=response.headers,
|
|
61
|
+
parsed=_parse_response(client=client, response=response),
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def sync_detailed(
|
|
66
|
+
workspace: str,
|
|
67
|
+
path: str,
|
|
68
|
+
*,
|
|
69
|
+
client: Union[AuthenticatedClient, Client],
|
|
70
|
+
search_col: Union[Unset, None, str] = UNSET,
|
|
71
|
+
search_term: Union[Unset, None, str] = UNSET,
|
|
72
|
+
storage: Union[Unset, None, str] = UNSET,
|
|
73
|
+
) -> Response[LoadTableRowCountResponse200]:
|
|
74
|
+
"""Load the table row count
|
|
75
|
+
|
|
76
|
+
Args:
|
|
77
|
+
workspace (str):
|
|
78
|
+
path (str):
|
|
79
|
+
search_col (Union[Unset, None, str]):
|
|
80
|
+
search_term (Union[Unset, None, str]):
|
|
81
|
+
storage (Union[Unset, None, str]):
|
|
82
|
+
|
|
83
|
+
Raises:
|
|
84
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
85
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
86
|
+
|
|
87
|
+
Returns:
|
|
88
|
+
Response[LoadTableRowCountResponse200]
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = _get_kwargs(
|
|
92
|
+
workspace=workspace,
|
|
93
|
+
path=path,
|
|
94
|
+
search_col=search_col,
|
|
95
|
+
search_term=search_term,
|
|
96
|
+
storage=storage,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
response = client.get_httpx_client().request(
|
|
100
|
+
**kwargs,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
return _build_response(client=client, response=response)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def sync(
|
|
107
|
+
workspace: str,
|
|
108
|
+
path: str,
|
|
109
|
+
*,
|
|
110
|
+
client: Union[AuthenticatedClient, Client],
|
|
111
|
+
search_col: Union[Unset, None, str] = UNSET,
|
|
112
|
+
search_term: Union[Unset, None, str] = UNSET,
|
|
113
|
+
storage: Union[Unset, None, str] = UNSET,
|
|
114
|
+
) -> Optional[LoadTableRowCountResponse200]:
|
|
115
|
+
"""Load the table row count
|
|
116
|
+
|
|
117
|
+
Args:
|
|
118
|
+
workspace (str):
|
|
119
|
+
path (str):
|
|
120
|
+
search_col (Union[Unset, None, str]):
|
|
121
|
+
search_term (Union[Unset, None, str]):
|
|
122
|
+
storage (Union[Unset, None, str]):
|
|
123
|
+
|
|
124
|
+
Raises:
|
|
125
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
126
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
127
|
+
|
|
128
|
+
Returns:
|
|
129
|
+
LoadTableRowCountResponse200
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
return sync_detailed(
|
|
133
|
+
workspace=workspace,
|
|
134
|
+
path=path,
|
|
135
|
+
client=client,
|
|
136
|
+
search_col=search_col,
|
|
137
|
+
search_term=search_term,
|
|
138
|
+
storage=storage,
|
|
139
|
+
).parsed
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
async def asyncio_detailed(
|
|
143
|
+
workspace: str,
|
|
144
|
+
path: str,
|
|
145
|
+
*,
|
|
146
|
+
client: Union[AuthenticatedClient, Client],
|
|
147
|
+
search_col: Union[Unset, None, str] = UNSET,
|
|
148
|
+
search_term: Union[Unset, None, str] = UNSET,
|
|
149
|
+
storage: Union[Unset, None, str] = UNSET,
|
|
150
|
+
) -> Response[LoadTableRowCountResponse200]:
|
|
151
|
+
"""Load the table row count
|
|
152
|
+
|
|
153
|
+
Args:
|
|
154
|
+
workspace (str):
|
|
155
|
+
path (str):
|
|
156
|
+
search_col (Union[Unset, None, str]):
|
|
157
|
+
search_term (Union[Unset, None, str]):
|
|
158
|
+
storage (Union[Unset, None, str]):
|
|
159
|
+
|
|
160
|
+
Raises:
|
|
161
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
162
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
163
|
+
|
|
164
|
+
Returns:
|
|
165
|
+
Response[LoadTableRowCountResponse200]
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
kwargs = _get_kwargs(
|
|
169
|
+
workspace=workspace,
|
|
170
|
+
path=path,
|
|
171
|
+
search_col=search_col,
|
|
172
|
+
search_term=search_term,
|
|
173
|
+
storage=storage,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
177
|
+
|
|
178
|
+
return _build_response(client=client, response=response)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
async def asyncio(
|
|
182
|
+
workspace: str,
|
|
183
|
+
path: str,
|
|
184
|
+
*,
|
|
185
|
+
client: Union[AuthenticatedClient, Client],
|
|
186
|
+
search_col: Union[Unset, None, str] = UNSET,
|
|
187
|
+
search_term: Union[Unset, None, str] = UNSET,
|
|
188
|
+
storage: Union[Unset, None, str] = UNSET,
|
|
189
|
+
) -> Optional[LoadTableRowCountResponse200]:
|
|
190
|
+
"""Load the table row count
|
|
191
|
+
|
|
192
|
+
Args:
|
|
193
|
+
workspace (str):
|
|
194
|
+
path (str):
|
|
195
|
+
search_col (Union[Unset, None, str]):
|
|
196
|
+
search_term (Union[Unset, None, str]):
|
|
197
|
+
storage (Union[Unset, None, str]):
|
|
198
|
+
|
|
199
|
+
Raises:
|
|
200
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
201
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
202
|
+
|
|
203
|
+
Returns:
|
|
204
|
+
LoadTableRowCountResponse200
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
return (
|
|
208
|
+
await asyncio_detailed(
|
|
209
|
+
workspace=workspace,
|
|
210
|
+
path=path,
|
|
211
|
+
client=client,
|
|
212
|
+
search_col=search_col,
|
|
213
|
+
search_term=search_term,
|
|
214
|
+
storage=storage,
|
|
215
|
+
)
|
|
216
|
+
).parsed
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="LoadTableRowCountResponse200")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class LoadTableRowCountResponse200:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
count (Union[Unset, float]):
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
count: Union[Unset, float] = UNSET
|
|
19
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
|
+
|
|
21
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
22
|
+
count = self.count
|
|
23
|
+
|
|
24
|
+
field_dict: Dict[str, Any] = {}
|
|
25
|
+
field_dict.update(self.additional_properties)
|
|
26
|
+
field_dict.update({})
|
|
27
|
+
if count is not UNSET:
|
|
28
|
+
field_dict["count"] = count
|
|
29
|
+
|
|
30
|
+
return field_dict
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
34
|
+
d = src_dict.copy()
|
|
35
|
+
count = d.pop("count", UNSET)
|
|
36
|
+
|
|
37
|
+
load_table_row_count_response_200 = cls(
|
|
38
|
+
count=count,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
load_table_row_count_response_200.additional_properties = d
|
|
42
|
+
return load_table_row_count_response_200
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def additional_keys(self) -> List[str]:
|
|
46
|
+
return list(self.additional_properties.keys())
|
|
47
|
+
|
|
48
|
+
def __getitem__(self, key: str) -> Any:
|
|
49
|
+
return self.additional_properties[key]
|
|
50
|
+
|
|
51
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
52
|
+
self.additional_properties[key] = value
|
|
53
|
+
|
|
54
|
+
def __delitem__(self, key: str) -> None:
|
|
55
|
+
del self.additional_properties[key]
|
|
56
|
+
|
|
57
|
+
def __contains__(self, key: str) -> bool:
|
|
58
|
+
return key in self.additional_properties
|
|
@@ -104,6 +104,7 @@ windmill_api/api/helpers/load_csv_preview.py,sha256=oqt5nXtxRwS9ncQFFjrFVvcMOdlp
|
|
|
104
104
|
windmill_api/api/helpers/load_file_metadata.py,sha256=ILWX7sXLi43pFUHGque5ysWATB4BOQtDq6psGYj4cCQ,4947
|
|
105
105
|
windmill_api/api/helpers/load_file_preview.py,sha256=2mHo3Ju1YktxM7edRbKdDb9foSq66wr9rH_h043bajk,9111
|
|
106
106
|
windmill_api/api/helpers/load_parquet_preview.py,sha256=TzmAtVEG36SZ_Oxywit-0xlbfN6tGpq-Rxu0dmd7QtM,4971
|
|
107
|
+
windmill_api/api/helpers/load_table_row_count.py,sha256=Yn9otykCvRBJ6EGuyhDpNqpLPNVYww1ckml_0tKZl0A,6093
|
|
107
108
|
windmill_api/api/helpers/move_s3_file.py,sha256=XaSdHiqeqgWb2RX4JSetO_odu27eJD2Qwx_-D-dcZhw,3417
|
|
108
109
|
windmill_api/api/helpers/polars_connection_settings.py,sha256=cVegjp2PBCuQRpn3ctjigLWUtvEEJxC0fco8G3SBths,5038
|
|
109
110
|
windmill_api/api/helpers/polars_connection_settings_v2.py,sha256=L_8zy2D5JE_r6CAdsQPHpmFUtL34Ti_iotkQKtr5F8s,5091
|
|
@@ -2190,6 +2191,7 @@ windmill_api/models/listable_variable_extra_perms.py,sha256=viMFDewwc-Q5iYf-nywe
|
|
|
2190
2191
|
windmill_api/models/load_file_metadata_response_200.py,sha256=NggKsh-6uMj07SWnhiR6Qk57PCvOOy6T3CM7zkLfh4w,3550
|
|
2191
2192
|
windmill_api/models/load_file_preview_response_200.py,sha256=cvqfLlkgTWLHCexILwu3DA-0QcfYTCyW8NMjlHtx8Gs,2307
|
|
2192
2193
|
windmill_api/models/load_file_preview_response_200_content_type.py,sha256=AIp0F_XNVgiUqF3ZMXvcEIShsIhzEFEs3Ia5CZ1YVjw,230
|
|
2194
|
+
windmill_api/models/load_table_row_count_response_200.py,sha256=lMJcjpJTzOkQQUVlSMElhSG-LaablH6NMhb56HqSHw8,1616
|
|
2193
2195
|
windmill_api/models/login.py,sha256=8kYSPOr_V5qjayFZCD9ddCuT38VXsHNPW_OkCpYPlY0,1576
|
|
2194
2196
|
windmill_api/models/login_json_body.py,sha256=hLOZv-B3Z-QihGO5os3pEurzNBNDbfbxLyoEbvJauYk,1622
|
|
2195
2197
|
windmill_api/models/login_with_oauth_json_body.py,sha256=Py7cg3OgmtpEV4XHTtuYEPXl8cave-9SaJIAA1wbNNo,1802
|
|
@@ -2628,7 +2630,7 @@ windmill_api/models/workspace_git_sync_settings_repositories_item_exclude_types_
|
|
|
2628
2630
|
windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1lixwUUXG6CXs,2037
|
|
2629
2631
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
2630
2632
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
2631
|
-
windmill_api-1.394.
|
|
2632
|
-
windmill_api-1.394.
|
|
2633
|
-
windmill_api-1.394.
|
|
2634
|
-
windmill_api-1.394.
|
|
2633
|
+
windmill_api-1.394.6.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
2634
|
+
windmill_api-1.394.6.dist-info/METADATA,sha256=PGvEYnOkCd5aNHU9OI1F2ZR450XJLuBiiVg83WxqCxI,5023
|
|
2635
|
+
windmill_api-1.394.6.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
2636
|
+
windmill_api-1.394.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|