Metadata-Version: 2.1
Name: wmill
Version: 1.2.0
Summary: A client library for accessing Windmill server wrapping the Windmill client API
Home-page: https://windmill.dev
License: Apache-2.0
Author: Ruben Fiszel
Author-email: ruben@rubenfiszel.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: attrs (>=20.1.0,<22.0.0)
Requires-Dist: psycopg2-binary
Requires-Dist: windmill-api (>=1.1.1,<2.0.0)
Project-URL: Documentation, https://docs.windmill.dev
Description-Content-Type: text/markdown

# wmill

The client for the [Windmill](https://windmill.dev) platform

## Quickstart

```python
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)
```

