Files
windmill/python-client
Ruben Fiszel 0d21bf8ca5 chore(main): release 1.89.0 (#1429)
* chore(main): release 1.89.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2023-04-23 17:05:46 +02:00
..
2022-11-03 08:32:43 +01:00
2023-04-23 17:05:46 +02:00
2022-05-05 04:25:58 +02:00
2022-05-17 21:43:15 +02:00
2022-05-05 04:25:58 +02:00
2022-05-05 04:25:58 +02:00

wmill

The client for the Windmill platform

Quickstart

import wmill

# with a WM_TOKEN env variable
client = wmill.Client()

# without a WM_TOKEN env variable
client = wmill.Client(token="<mytoken>")

def main():

    version = client.get_version()
    resource = client.get_resource("u/user/resource_path")

    # run synchronously, will return the result
    res = client.run_script_sync(hash="000000000000002a", args={})
    print(res)

    for _ in range(3):
        # run asynchrnously, will return immediately. Can be scheduled
        client.run_script_async(hash="000000000000002a", args={}, scheduled_in_secs=10)