Library that helps an application report progress to Argo Workflows.
Project description
awpr
Library that helps an application report progress to Argo Workflows.
Installation
pip install awpr
Usage
Set the environment variable and run your application:
ARGO_PROGRESS_FILE=/tmp/progress.txt
from awpr.awpr import ArgoWorkflowsProgressReporter
awpr = ArgoWorkflowsProgressReporter()
awpr.set_total_progress(100)
awpr.start_reporting()
awpr.set_current_progress(20)
awpr.set_current_progress(30)
awpr.get_progress_percent()
awpr.set_progress_complete()
awpr.get_progress_percent()
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
awpr-0.0.127.tar.gz
(2.5 kB
view hashes)
Built Distribution
awpr-0.0.127-py3-none-any.whl
(3.7 kB
view hashes)