wmill 1.242.0__py3-none-any.whl → 1.244.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
|
@@ -250,7 +250,7 @@ class Windmill:
|
|
|
250
250
|
"""Get variable from Windmill"""
|
|
251
251
|
return self.get(f"/w/{self.workspace}/variables/get_value/{path}").json()
|
|
252
252
|
|
|
253
|
-
def set_variable(self, path: str, value: str) -> None:
|
|
253
|
+
def set_variable(self, path: str, value: str, is_secret: bool = False) -> None:
|
|
254
254
|
"""Set variable from Windmill"""
|
|
255
255
|
# check if variable exists
|
|
256
256
|
r = self.get(f"/w/{self.workspace}/variables/get/{path}", raise_for_status=False)
|
|
@@ -261,7 +261,7 @@ class Windmill:
|
|
|
261
261
|
json={
|
|
262
262
|
"path": path,
|
|
263
263
|
"value": value,
|
|
264
|
-
"is_secret":
|
|
264
|
+
"is_secret": is_secret,
|
|
265
265
|
"description": "",
|
|
266
266
|
},
|
|
267
267
|
)
|
|
@@ -689,11 +689,11 @@ def get_variable(path: str) -> str:
|
|
|
689
689
|
|
|
690
690
|
|
|
691
691
|
@init_global_client
|
|
692
|
-
def set_variable(path: str, value: str) -> None:
|
|
692
|
+
def set_variable(path: str, value: str, is_secret: bool = False) -> None:
|
|
693
693
|
"""
|
|
694
694
|
Set the variable at a given path as a string, creating it if it does not exist
|
|
695
695
|
"""
|
|
696
|
-
return _client.set_variable(path, value)
|
|
696
|
+
return _client.set_variable(path, value, is_secret)
|
|
697
697
|
|
|
698
698
|
|
|
699
699
|
@init_global_client
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
wmill/__init__.py,sha256=nGZnQPezTdrBnBW1D0JqUtm75Gdf_xi3tAcPGwHRZ5A,46
|
|
2
|
+
wmill/client.py,sha256=Vj42TKJ8YV_6q7Ul3xfbdKjhARJctQbBmZHPhTBV1G4,22780
|
|
3
|
+
wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
|
|
4
|
+
wmill/s3_types.py,sha256=axVibTMtpynBwaCVK0O6bBao56no01qflyIGRaVyV6s,1149
|
|
5
|
+
wmill-1.244.0.dist-info/METADATA,sha256=CcXbxisrItKgRYEMtWqJpC-cwLHbVttwnyI_roULZnY,2699
|
|
6
|
+
wmill-1.244.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
7
|
+
wmill-1.244.0.dist-info/RECORD,,
|
wmill-1.242.0.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
wmill/__init__.py,sha256=nGZnQPezTdrBnBW1D0JqUtm75Gdf_xi3tAcPGwHRZ5A,46
|
|
2
|
-
wmill/client.py,sha256=31O36Phf34lbPpOIeJBmt-9ERNjyqUf6FGGHhDWE0rw,22715
|
|
3
|
-
wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
|
|
4
|
-
wmill/s3_types.py,sha256=axVibTMtpynBwaCVK0O6bBao56no01qflyIGRaVyV6s,1149
|
|
5
|
-
wmill-1.242.0.dist-info/METADATA,sha256=mjlmPEhW8tPJfw68pO9-hxjOqGMtpei3KL7BDiGKsA0,2699
|
|
6
|
-
wmill-1.242.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
7
|
-
wmill-1.242.0.dist-info/RECORD,,
|
|
File without changes
|