wmill 1.150.0__py3-none-any.whl → 1.151.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 wmill might be problematic. Click here for more details.

wmill/client.py CHANGED
@@ -2,6 +2,7 @@ from typing import Any, Union, Dict
2
2
  from typing import Generic, TypeVar, TypeAlias
3
3
 
4
4
  import os
5
+ import json
5
6
 
6
7
  from time import sleep
7
8
  from windmill_api.models.whoami_response_200 import WhoamiResponse200
@@ -163,7 +164,12 @@ def get_resource(path: str | None = None, none_if_undefined: bool = False) -> An
163
164
  path = path or get_state_path()
164
165
  parsed = get_resource_api.sync_detailed(
165
166
  workspace=get_workspace(), path=path, client=create_client()
166
- ).parsed
167
+ )
168
+ try:
169
+ parsed = json.loads(parsed.content.decode("utf-8"))
170
+ except:
171
+ parsed = None
172
+
167
173
  if parsed is None:
168
174
  if none_if_undefined:
169
175
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wmill
3
- Version: 1.150.0
3
+ Version: 1.151.0
4
4
  Summary: A client library for accessing Windmill server wrapping the Windmill client API
5
5
  Home-page: https://windmill.dev
6
6
  License: Apache-2.0
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.8
14
14
  Classifier: Programming Language :: Python :: 3.9
15
15
  Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
- Requires-Dist: windmill-api (>=1.150.0,<2.0.0)
17
+ Requires-Dist: windmill-api (>=1.151.0,<2.0.0)
18
18
  Project-URL: Documentation, https://windmill.dev
19
19
  Description-Content-Type: text/markdown
20
20
 
@@ -0,0 +1,6 @@
1
+ wmill/__init__.py,sha256=d0Q6Fn44e7wFfLabDOBxpcJ1DPKWlFunGYDUBmO-4hA,22
2
+ wmill/client.py,sha256=In3qWF3opMsE3t38dUmEjaBKEtuBZI0esShITDciyVA,9938
3
+ wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
4
+ wmill-1.151.0.dist-info/WHEEL,sha256=vxFmldFsRN_Hx10GDvsdv1wroKq8r5Lzvjp6GZ4OO8c,88
5
+ wmill-1.151.0.dist-info/METADATA,sha256=MJg0RKTrKnBrIr-VLAvGH5pMeru_WKvsojZeDEFCivk,1571
6
+ wmill-1.151.0.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- wmill/__init__.py,sha256=d0Q6Fn44e7wFfLabDOBxpcJ1DPKWlFunGYDUBmO-4hA,22
2
- wmill/client.py,sha256=wVrv1ULw1VGBs1G_6G1Ap08uT0NG8FU7y9BtjR2dlDE,9829
3
- wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
4
- wmill-1.150.0.dist-info/WHEEL,sha256=vxFmldFsRN_Hx10GDvsdv1wroKq8r5Lzvjp6GZ4OO8c,88
5
- wmill-1.150.0.dist-info/METADATA,sha256=ivPvZd06wA5awGe3ylLMzH1975fuUD72mMFSYTy1Op8,1571
6
- wmill-1.150.0.dist-info/RECORD,,