wmill 1.242.0__tar.gz → 1.244.0__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wmill
3
- Version: 1.242.0
3
+ Version: 1.244.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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wmill"
3
- version = "1.242.0"
3
+ version = "1.244.0"
4
4
  description = "A client library for accessing Windmill server wrapping the Windmill client API"
5
5
  license = "Apache-2.0"
6
6
  homepage = "https://windmill.dev"
@@ -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": False,
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
File without changes
File without changes
File without changes
File without changes