# kfp

> Kubeflow Pipelines SDK

- **URL**: https://www.freshcrate.ai/projects/kfp
- **Author**: The Kubeflow Authors
- **Category**: Frameworks
- **Latest version**: `2.16.1` (2026-05-05)
- **License**: Unknown
- **Source**: https://github.com/kubeflow/pipelines/issues
- **Homepage**: https://github.com/kubeflow/pipelines
- **Language**: Python
- **GitHub**: 4,125 stars, 1,985 forks
- **Registry**: pypi (`kfp`)
- **Tags**: `pypi`

## Description

Kubeflow Pipelines is a platform for building and deploying portable, scalable machine learning workflows based on Docker containers within the [Kubeflow](https://www.kubeflow.org/) project.

Use Kubeflow Pipelines to compose a multi-step workflow ([pipeline](https://www.kubeflow.org/docs/components/pipelines/concepts/pipeline/)) as a [graph](https://www.kubeflow.org/docs/components/pipelines/concepts/graph/) of containerized [tasks](https://www.kubeflow.org/docs/components/pipelines/concepts/step/) using Python code and/or YAML. Then, [run](https://www.kubeflow.org/docs/components/pipelines/concepts/run/) your pipeline with specified pipeline arguments, rerun your pipeline with new arguments or data, [schedule](https://www.kubeflow.org/docs/components/pipelines/concepts/run-trigger/) your pipeline to run on a recurring basis, organize your runs into [experiments](https://www.kubeflow.org/docs/components/pipelines/concepts/experiment/), save machine learning artifacts to compliant [artifact registries](https://www.kubeflow.org/docs/components/pipelines/concepts/metadata/), and visualize it all through the [Kubeflow Dashboard](https://www.kubeflow.org/docs/components/central-dash/overview/).

## Installation

To install `kfp`, run:

```sh
pip install kfp
```

## Getting started

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

```python
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
    })

```

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `2.16.1` | 2026-05-05 | High | ## What's Changed  - fix(backend): ensure log artifact index handling by @droctothorpe in ([#13334](https://github.com/kubeflow/pipelines/pull/13334)) ([#13340](https://github.com/kubeflow/pipelines/pull/13340)) - fix(metadata): cast DEBUG_FILES_SIZE and handle cleanup races by @samskelton1 in ([#13300](https://github.com/kubeflow/pipelines/pull/13300)) - fix(backend): resolve use_secret_as_env pipeline params in ParallelFor by @nsingla and @mprahl in ([#13128](https://github.com/kubeflow/pi |
| `2.16.0` | 2026-04-21 | Low | Imported from PyPI (2.16.0) |
| `sdk-2.16.0` | 2026-02-25 | Low | Release of:  - KFP SDK - KFP Kubernetes - KFP Server API - KFP Pipeline Spec  To install the KFP SDK:  ``` pip install kfp-pipeline-spec==2.16.0 pip install kfp-server-api==2.16.0 pip install kfp==2.16.0 pip install kfp-kubernetes==2.16.0 ```  For changelog, see [release notes](https://github.com/kubeflow/pipelines/blob/sdk-2.16.0/sdk/RELEASE.md). |
| `sdk-2.16.0` | 2026-02-25 | Low | Release of:  - KFP SDK - KFP Kubernetes - KFP Server API - KFP Pipeline Spec  To install the KFP SDK:  ``` pip install kfp-pipeline-spec==2.16.0 pip install kfp-server-api==2.16.0 pip install kfp==2.16.0 pip install kfp-kubernetes==2.16.0 ```  For changelog, see [release notes](https://github.com/kubeflow/pipelines/blob/sdk-2.16.0/sdk/RELEASE.md). |
| `sdk-2.16.0` | 2026-02-25 | Low | Release of:  - KFP SDK - KFP Kubernetes - KFP Server API - KFP Pipeline Spec  To install the KFP SDK:  ``` pip install kfp-pipeline-spec==2.16.0 pip install kfp-server-api==2.16.0 pip install kfp==2.16.0 pip install kfp-kubernetes==2.16.0 ```  For changelog, see [release notes](https://github.com/kubeflow/pipelines/blob/sdk-2.16.0/sdk/RELEASE.md). |
| `sdk-2.16.0` | 2026-02-25 | Low | Release of:  - KFP SDK - KFP Kubernetes - KFP Server API - KFP Pipeline Spec  To install the KFP SDK:  ``` pip install kfp-pipeline-spec==2.16.0 pip install kfp-server-api==2.16.0 pip install kfp==2.16.0 pip install kfp-kubernetes==2.16.0 ```  For changelog, see [release notes](https://github.com/kubeflow/pipelines/blob/sdk-2.16.0/sdk/RELEASE.md). |
| `sdk-2.16.0` | 2026-02-25 | Low | Release of:  - KFP SDK - KFP Kubernetes - KFP Server API - KFP Pipeline Spec  To install the KFP SDK:  ``` pip install kfp-pipeline-spec==2.16.0 pip install kfp-server-api==2.16.0 pip install kfp==2.16.0 pip install kfp-kubernetes==2.16.0 ```  For changelog, see [release notes](https://github.com/kubeflow/pipelines/blob/sdk-2.16.0/sdk/RELEASE.md). |
| `sdk-2.16.0` | 2026-02-25 | Low | Release of:  - KFP SDK - KFP Kubernetes - KFP Server API - KFP Pipeline Spec  To install the KFP SDK:  ``` pip install kfp-pipeline-spec==2.16.0 pip install kfp-server-api==2.16.0 pip install kfp==2.16.0 pip install kfp-kubernetes==2.16.0 ```  For changelog, see [release notes](https://github.com/kubeflow/pipelines/blob/sdk-2.16.0/sdk/RELEASE.md). |
| `sdk-2.16.0` | 2026-02-25 | Low | Release of:  - KFP SDK - KFP Kubernetes - KFP Server API - KFP Pipeline Spec  To install the KFP SDK:  ``` pip install kfp-pipeline-spec==2.16.0 pip install kfp-server-api==2.16.0 pip install kfp==2.16.0 pip install kfp-kubernetes==2.16.0 ```  For changelog, see [release notes](https://github.com/kubeflow/pipelines/blob/sdk-2.16.0/sdk/RELEASE.md). |
| `sdk-2.16.0` | 2026-02-25 | Low | Release of:  - KFP SDK - KFP Kubernetes - KFP Server API - KFP Pipeline Spec  To install the KFP SDK:  ``` pip install kfp-pipeline-spec==2.16.0 pip install kfp-server-api==2.16.0 pip install kfp==2.16.0 pip install kfp-kubernetes==2.16.0 ```  For changelog, see [release notes](https://github.com/kubeflow/pipelines/blob/sdk-2.16.0/sdk/RELEASE.md). |

## Citation

- HTML: https://www.freshcrate.ai/projects/kfp
- Markdown: https://www.freshcrate.ai/projects/kfp.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/kfp/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
