Skip to main content

A client library for accessing Windmill server wrapping the Windmill client API

Project description

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)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wmill-1.1.0.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

wmill-1.1.0-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page