A client for the Windmill API
Project description
windmill_client
Overview
windmill_client
is a Python package designed to interact with the Windmill API. It provides a convenient way to manage jobs, resources, and states within the Windmill environment, offering functionalities like job creation, execution, status tracking, and state management.
It's designed to remain api-compatible with the wmill
package, but with some added features and a more direct usage
of Windmill's REST API.
Installation
To install windmill_client
, run the following command:
pip install windmill-client
Usage
Basic Example
Here's a basic example of how to use windmill_client
:
import windmill_client as wmill
client = wmill.Windmill()
# Create a new job
job_id = client.start_execution(path="path/to/script")
# Check job status
status = client.get_job_status(job_id)
print(f"Job Status: {status}")
# run a script synchronously
result = client.run_script(path="path/to/script")
print(f"Script Result: {result}")
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
windmill_client-0.5.4.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for windmill_client-0.5.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f300d1b2712756da6ddc40fe162b221d5c5ee03130d7c44b3c9bc76402263da |
|
MD5 | bbb6cd937b2ceb11b0f775f4117eb4f7 |
|
BLAKE2b-256 | 2e9322be58908d1c15501d992b84a5334a6684262f9147e340b390acb1703878 |