wmill 1.246.0__py3-none-any.whl → 1.246.2__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
@@ -220,7 +220,7 @@ class Windmill:
220
220
  return self.get(f"/w/{self.workspace}/jobs_u/get/{job_id}").json()
221
221
 
222
222
  def get_id_token(self, audience: str) -> dict:
223
- return self.get(f"/w/{self.workspace}/oidc/token/{audience}").text
223
+ return self.post(f"/w/{self.workspace}/oidc/token/{audience}").text
224
224
 
225
225
  def get_job_status(self, job_id: str) -> JobStatus:
226
226
  job = self.get_job(job_id)
@@ -575,6 +575,13 @@ def run_script_by_path_sync(
575
575
  )
576
576
 
577
577
 
578
+ @init_global_client
579
+ def get_id_token(audience: str) -> str:
580
+ """
581
+ Get a JWT token for the given audience for OIDC purposes to login into third parties like AWS, Vault, GCP, etc.
582
+ """
583
+ return _client.get_id_token(audience)
584
+
578
585
  @init_global_client
579
586
  def get_job_status(job_id: str) -> JobStatus:
580
587
  return _client.get_job_status(job_id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wmill
3
- Version: 1.246.0
3
+ Version: 1.246.2
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
@@ -0,0 +1,7 @@
1
+ wmill/__init__.py,sha256=nGZnQPezTdrBnBW1D0JqUtm75Gdf_xi3tAcPGwHRZ5A,46
2
+ wmill/client.py,sha256=7_qmqybUxlPr1ZLFeNCjpniAAhOpgjXfUUwpNf0NivQ,23143
3
+ wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
4
+ wmill/s3_types.py,sha256=axVibTMtpynBwaCVK0O6bBao56no01qflyIGRaVyV6s,1149
5
+ wmill-1.246.2.dist-info/METADATA,sha256=qaFcaIMPTOb1zq0304CHAMR4_e-N2-aupkBMZesf8y0,2699
6
+ wmill-1.246.2.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
7
+ wmill-1.246.2.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- wmill/__init__.py,sha256=nGZnQPezTdrBnBW1D0JqUtm75Gdf_xi3tAcPGwHRZ5A,46
2
- wmill/client.py,sha256=9IxaslfIug9tQ4JVbaovh-Uhmn5i9rgTIzpelmkF2xI,22907
3
- wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
4
- wmill/s3_types.py,sha256=axVibTMtpynBwaCVK0O6bBao56no01qflyIGRaVyV6s,1149
5
- wmill-1.246.0.dist-info/METADATA,sha256=cnOARc27yJUWQAOrs570U3e-YAjb9Y95-309qThfifM,2699
6
- wmill-1.246.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
7
- wmill-1.246.0.dist-info/RECORD,,