Files
windmill/python-client/wmill
Jakub Kołodziejczak 52f6db2e81 fix(python-client): provide backwards compatibility down to python3.7 (#738) (#739)
this reverts 79b176cbbd introducing
alternative way of avoiding bug described in
https://github.com/windmill-labs/windmill/issues/736#issuecomment-1279679730

the improvement here is that we're able to support more python versions
now
2022-10-15 10:27:07 +02:00
..
2022-05-05 04:25:58 +02:00

wmill

The core client for the Windmill platform.

It is a convenient wrapper around the exhaustive, automatically generated from OpenApi but less user-friendly windmill-api.

Quickstart

import wmill


def main():
    #os.environ.set("WM_TOKEN", "<mytoken>") OPTIONAL to set token used by the wmill client
    version = wmill.get_version()
    resource = wmill.get_resource("u/user/resource_path")

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

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