wmill 1.296.0__py3-none-any.whl → 1.297.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
@@ -349,7 +349,7 @@ class Windmill:
349
349
  def set_flow_user_state(self, key: str, value: Any) -> None:
350
350
  """Set the user state of a flow at a given key"""
351
351
  flow_id = self.get_root_job_id()
352
- r = client.post(f"/w/{self.workspace}/jobs/flow/user_states/{flow_id}/{key}", json=value, raise_for_status=False)
352
+ r = self.post(f"/w/{self.workspace}/jobs/flow/user_states/{flow_id}/{key}", json=value, raise_for_status=False)
353
353
  if r.status_code == 404:
354
354
  print(f"Job {flow_id} does not exist or is not a flow")
355
355
 
@@ -357,7 +357,7 @@ class Windmill:
357
357
  def get_flow_user_state(self, key: str) -> Any:
358
358
  """Get the user state of a flow at a given key"""
359
359
  flow_id = self.get_root_job_id()
360
- r = client.get(f"/w/{self.workspace}/jobs/flow/user_states/{flow_id}/{key}", raise_for_status=False)
360
+ r = self.get(f"/w/{self.workspace}/jobs/flow/user_states/{flow_id}/{key}", raise_for_status=False)
361
361
  if r.status_code == 404:
362
362
  print(f"Job {flow_id} does not exist or is not a flow")
363
363
  return None
@@ -876,6 +876,7 @@ def get_flow_user_state(key: str) -> Any:
876
876
  """
877
877
  return _client.get_flow_user_state(key)
878
878
 
879
+ @init_global_client
879
880
  def set_flow_user_state(key: str, value: Any) -> None:
880
881
  """
881
882
  Set the user state of a flow at a given key
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wmill
3
- Version: 1.296.0
3
+ Version: 1.297.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,8 +1,8 @@
1
1
  wmill/__init__.py,sha256=nGZnQPezTdrBnBW1D0JqUtm75Gdf_xi3tAcPGwHRZ5A,46
2
- wmill/client.py,sha256=UD1-AznglprFsOk78XxrY34D5mRokiqeZefh8fSdReE,31295
2
+ wmill/client.py,sha256=PnN-dmPTTAC91rzvK_UizaX1a-FOxGbE_2uFWUKJj3I,31311
3
3
  wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
4
4
  wmill/s3_reader.py,sha256=ZznXPIdMkP7S17CJ5scBJAyLDHBKAaqZB-B_l9pRIzA,1575
5
5
  wmill/s3_types.py,sha256=axVibTMtpynBwaCVK0O6bBao56no01qflyIGRaVyV6s,1149
6
- wmill-1.296.0.dist-info/METADATA,sha256=wiHDPOduy-99mchoGL89EFK4CzrNIk6HlKe0d9ZivVs,2699
7
- wmill-1.296.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
8
- wmill-1.296.0.dist-info/RECORD,,
6
+ wmill-1.297.0.dist-info/METADATA,sha256=hzjfJnR3UCxPMbzKpvQ7vcq8_UwPN24fwEPgoNir5cs,2699
7
+ wmill-1.297.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
8
+ wmill-1.297.0.dist-info/RECORD,,