mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 08:01:25 +00:00
449974404a
In the README's example code for the wmill Python client, the method name `start_execution` has been changed to `run_script_async`. This change is in line with the recent updates we made to the client's public API. The naming adjustment adds more clarity to the method's functionality, and ensures that the sample code in the README is accurate and stays updated with the latest changes in the wmill Python client's API.
wmill
The core client for the Windmill platform.
Quickstart
import wmill
def main():
client = wmill.Windmill(
# token=... <- this is optional. otherwise the client will look for the WM_TOKEN env var
)
print(client.version)
print(client.get("u/user/resource_path"))
job_id = client.run_script_async(path="path/to/script")
print(job_id)
return client.run_script(path="path/to/script", args={"arg1": "value1"})