Files
windmill/python-client/wmill
Ruben Fiszel 3ebe03c02e chore(main): release 1.214.0 (#2669)
* chore(main): release 1.214.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2023-11-22 10:32:07 +01:00
..
2023-11-22 10:28:17 +01:00

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"})