pipelines/sdk/python
hsteude a9ac0b95bc
fix(sdk): print docker error messages (#9595)
Without this commit, `kfp component build` doesn't print any error
messages that docker emits, e.g. if docker push fails.

Co-authored-by: Christian Geier <geier@lostpackets.de>
2023-06-13 00:47:02 +00:00
..
kfp fix(sdk): print docker error messages (#9595) 2023-06-13 00:47:02 +00:00
test_data feat(sdk): support compiling components with `dsl.PipelineTaskFinalStatus` type (#9082) 2023-05-12 22:14:28 +00:00
tests chore(sdk): clean up kfp code style (#8027) 2022-07-15 00:06:34 +00:00
MANIFEST.in add registry json to package data (#7987) 2022-07-07 10:48:40 -06:00
README.md Fix the example pipeline in sdk/python/README.md (#8206) 2022-08-30 14:55:45 -06:00
build.sh chore: update python version for build.sh (#5799) 2021-06-03 23:07:36 -07:00
requirements-deprecated.txt chore(sdk): remove v1 dependencies from SDK v2 (#8668) 2023-01-19 12:53:27 -08:00
requirements-dev.txt chore(sdk): remove v1 dependencies from SDK v2 (#8668) 2023-01-19 12:53:27 -08:00
requirements.in chore(sdk): loosen python kubernetes version requirement (#9545) 2023-06-01 19:17:06 +00:00
requirements.txt chore(sdk): release KFP SDK 2.0.0-rc.1 (#9429) 2023-05-16 18:23:00 +00:00
setup.py chore(sdk): add kfp-kubernetes as kfp extras_require (#9152) 2023-04-17 10:08:22 -07:00

README.md

Note: This is a pre-release and is not yet stable. Please report bugs and provide feedback via GitHub Issues.

Kubeflow Pipelines is a platform for building and deploying portable, scalable machine learning workflows based on Docker containers within the Kubeflow project.

Use Kubeflow Pipelines to compose a multi-step workflow (pipeline) as a graph of containerized tasks using Python code and/or YAML. Then, run your pipeline with specified pipeline arguments, rerun your pipeline with new arguments or data, schedule your pipeline to run on a recurring basis, organize your runs into experiments, save machine learning artifacts to compliant artifact registries, and visualize it all through the Kubeflow Dashboard.

Installation

To install the kfp pre-release, run:

pip install --pre kfp

Getting started

The following is an example of a simple pipeline that uses the kfp v2 syntax:

from kfp import dsl
import kfp


@dsl.component
def add(a: float, b: float) -> float:
    '''Calculates sum of two arguments'''
    return a + b


@dsl.pipeline(
    name='Addition pipeline',
    description='An example pipeline that performs addition calculations.')
def add_pipeline(
    a: float = 1.0,
    b: float = 7.0,
):
    first_add_task = add(a=a, b=4.0)
    second_add_task = add(a=first_add_task.output, b=b)


client = kfp.Client(host='<my-host-url>')
client.create_run_from_pipeline_func(
    add_pipeline, arguments={
        'a': 7.0,
        'b': 8.0
    })