wmill 1.203.0__py3-none-any.whl → 1.204.1__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
|
@@ -207,7 +207,8 @@ def get_resource(path: str | None = None, none_if_undefined: bool = False) -> An
|
|
|
207
207
|
workspace=get_workspace(), path=path, client=create_client()
|
|
208
208
|
)
|
|
209
209
|
try:
|
|
210
|
-
|
|
210
|
+
content = parsed.content.decode("utf-8")
|
|
211
|
+
parsed = json.loads(content)
|
|
211
212
|
except:
|
|
212
213
|
parsed = None
|
|
213
214
|
|
|
@@ -216,7 +217,7 @@ def get_resource(path: str | None = None, none_if_undefined: bool = False) -> An
|
|
|
216
217
|
return None
|
|
217
218
|
else:
|
|
218
219
|
raise Exception(
|
|
219
|
-
f"Resource at path {path} does not exist or you do not have read permissions on it"
|
|
220
|
+
f"Resource at path {path} does not exist or you do not have read permissions on it: {content}"
|
|
220
221
|
)
|
|
221
222
|
|
|
222
223
|
return parsed
|
|
@@ -331,13 +332,14 @@ def get_variable(path: str) -> str:
|
|
|
331
332
|
|
|
332
333
|
res = get_variable_api.sync_detailed(
|
|
333
334
|
workspace=get_workspace(), path=path, client=create_client()
|
|
334
|
-
)
|
|
335
|
-
|
|
335
|
+
)
|
|
336
|
+
parsed = res.parsed
|
|
337
|
+
if parsed is None:
|
|
336
338
|
raise Exception(
|
|
337
|
-
f"Variable at path {path} does not exist or you do not have read permissions on it"
|
|
339
|
+
f"Variable at path {path} does not exist or you do not have read permissions on it: {res.content.decode('utf-8')}"
|
|
338
340
|
)
|
|
339
341
|
|
|
340
|
-
return
|
|
342
|
+
return parsed
|
|
341
343
|
|
|
342
344
|
|
|
343
345
|
def set_variable(path: str, value: str) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wmill
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.204.1
|
|
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.
|
|
17
|
+
Requires-Dist: windmill-api (>=1.204.1,<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=B5GPnEkWOXprmg_8sNjpt8OnQllQnm5bcVG0aR7bBAI,11245
|
|
3
|
+
wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
|
|
4
|
+
wmill-1.204.1.dist-info/METADATA,sha256=yW2HTraNGMcJL9ZAr6-TiGszrzgqmZyxsTjKlXDglf8,1571
|
|
5
|
+
wmill-1.204.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
6
|
+
wmill-1.204.1.dist-info/RECORD,,
|
wmill-1.203.0.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
wmill/__init__.py,sha256=d0Q6Fn44e7wFfLabDOBxpcJ1DPKWlFunGYDUBmO-4hA,22
|
|
2
|
-
wmill/client.py,sha256=WFzuwHLxeVFondKSxd5Hv6Huw0QNcJgcKal0E_o4-yI,11154
|
|
3
|
-
wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
|
|
4
|
-
wmill-1.203.0.dist-info/METADATA,sha256=lzAhjyZRnIFP6rJrFssOr-yb0J5TLg4YjJNHCN_cmM8,1571
|
|
5
|
-
wmill-1.203.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
6
|
-
wmill-1.203.0.dist-info/RECORD,,
|
|
File without changes
|