Metadata-Version: 2.1
Name: fsai-awrp
Version: 0.1.3
Summary: Library that helps an application report progress to Argo Workflows.
Home-page: https://github.com/fsai-dev/fsai-awrp
License: MIT
Author: Michael Mohamed
Author-email: michael@foundationstack.com
Requires-Python: >=3.7.1,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: loguru (>=0.6.0,<0.7.0)
Project-URL: Repository, https://github.com/fsai-dev/fsai-awrp
Description-Content-Type: text/markdown

# fsai-awrp
Library that helps an application report progress to Argo Workflows.


## Installation 
```shell
pip install fsai-awrp
```

## Usage
Set the environment variable and run your application:
`ARGO_PROGRESS_FILE=/tmp/progress.txt`

```shell
from fsai_awrp.fsai_awrp import ArgoWorkflowsReportProgress

awrp = ArgoWorkflowsReportProgress()
awrp.set_total_progress(100)
awrp.start_reporting()

awrp.set_current_progress(20)
awrp.set_current_progress(30)
awrp.get_progress_percent()
```
