semvec/pypi-packages huggingface dataset:
kfp-local 1.1.0
kfp local client runs pipelines on local host or in docker container
Requires Python: >=3.7
Keywords: kubeflow,kfp,local

# kfp-local
Pipelines built with [kfp(kubeflow pipeline)](https://github.com/kubeflow/pipelines) execute in k8s cluster.

During the development of kubeflow pipeline components, we usually upload the pipeline to kfp server and run it in k8s, if anything wrong we fix it locally and upload it again.

It should be helpful for the development efficiency if the above process takes place in local host, that's what `kfp-local` cares.

## Installation
```
pip install kfp-local
```

## Usage
```python
from kfp_local import LocalClient

local_client = LocalClient()
result = local_client.create_run_from_pipeline_func(
            pipeline_func,
            arguments={"foo": "bar"},
            execution_mode=LocalClient.ExecutionMode("local"),
        )
if result.success:
    a_output_filepath = result.get_output_file(task_name="a-task", output="a_output_name")

```

## Additional configuration

The demo code in [Usage](#Usage) executes pipeline in local process with *ExecutionMode('local')*, `ExecutionMode` controls how the pipline executes.

There are some options of `ExecutionMode`:
* mode: Default execution mode, default 'docker'

* images_to_exclude: If the image of op is in images_to_exclude, the op is
    executed in the mode different from default_mode.

* tasks_to_exclude: If the name of task is in tasks_to_exclude, the op is executed in the mode different from default_mode.

* docker_options: Docker options used in docker mode, e.g. docker_options=["-e", "foo=bar"].

For more information about how to make use of kfp_local, please refer to unit test.

## kfp compatibility
kfp-local is tested with kfp>=1.8.9,<2.0 for now.

Supports:
* Control flow: Condition, ParallelFor, ExitHandler
* Data passing: InputPath, OutputPath, Input

Don't support for now:
* Importer
* Artifact iterator
* Caching
PBar2 2.2.2
Display customizable progress bars on the terminal easily.
Requires Python: >=3.9

<a href="https://darvil82.github.io/PBar/"><img width=50% src="https://user-images.githubusercontent.com/48654552/136713737-aebdd652-061b-428a-b750-2faa29cd60b3.png"><br></a>

<a href="https://github.com/DarviL82/PBar/pulls"> <img src="https://img.shields.io/badge/contributions-welcome-brightgreen?style=flat-square"> </a> <img src="https://img.shields.io/pypi/dw/pbar2?style=flat-square"> <br>
<a href="https://pypi.org/project/PBar2/"> <img src="https://img.shields.io/pypi/v/pbar2?style=flat-square"> </a>
<a href="https://aur.archlinux.org/packages/python-pbar/"> <img src="https://img.shields.io/aur/version/python-pbar?style=flat-square"> </a>
<img src="https://img.shields.io/pypi/pyversions/pbar2?style=flat-square">


---

### PBar is a small Python library to display highly customizable progress bars on the terminal easily. Contributions are welcome!


https://user-images.githubusercontent.com/48654552/140072905-f83a1ff4-fba7-481d-925d-727caed6c3e8.mp4


<details>
	<summary><b> More examples </b></summary>

https://user-images.githubusercontent.com/48654552/148692560-87e005f7-076a-48cc-9ae9-4c168ee040bc.mp4

Source available [here.](https://github.com/DarviL82/PBar/blob/main/resources/examples/relative_pos.py)


https://user-images.githubusercontent.com/48654552/134776865-c7516cf1-0c66-44da-ae2c-f2cbedd2527c.mp4

Source available [here.](https://github.com/DarviL82/PBar/blob/main/resources/examples/anim.py)


https://user-images.githubusercontent.com/48654552/137568056-aafa1ba1-35c2-4ecd-84f8-99ca0093cab5.mp4

Source available [here.](https://github.com/DarviL82/PBar/blob/main/resources/examples/conds.py)

</details>

<br>

## Wiki
Please visit the different wiki pages available **[here](https://github.com/DarviL82/PBar/wiki)** to see all the features of this package!


## Requirements
- Python 3.9+
- A terminal that can display VT100 sequences and escape codes such as `\v`.
Windows CMD and PowerShell do not support some of these entirely, though Windows Terminal does.


## Installation
### Pip
PBar is available on the *Python Package Index*:

`pip install pbar2`

You can also install this package through *GitHub* with pip:

`pip install git+https://github.com/DarviL82/PBar`

For uninstalling:

`pip uninstall pbar2`

### AUR
There is also an [*Arch User Repository package*](https://aur.archlinux.org/packages/python-pbar/) made by **MithicSpirit**.


## Additional Credits
| User       | Task          |
|------------|---------------|
| DrMeepster | Type Checking |