A client library for accessing Windmill server wrapping the Windmill client API
Project description
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)
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.43.2.post1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for wmill-1.43.2.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf601f162182d8a6a34ea526feb5307761f14d691d44d6b283509d7e20692248 |
|
MD5 | 6592a40eaf515d682399caed4be94dfd |
|
BLAKE2b-256 | 9cab7f2d35e551997d09ee291e211c8613c5beaee75ca80a33026f61e2da5d0e |