Files
windmill/python-client/wmill

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.start_execution(path="path/to/script")
    print(job_id)

    return client.run_script(path="path/to/script", args={"arg1": "value1"})