Skip to main content

Kubeflow Pipelines SDK

Project description

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 kfp, run:

pip install 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
    })

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

kfp-2.16.1.tar.gz (317.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kfp-2.16.1-py3-none-any.whl (421.6 kB view details)

Uploaded Python 3

File details

Details for the file kfp-2.16.1.tar.gz.

File metadata

  • Download URL: kfp-2.16.1.tar.gz
  • Upload date:
  • Size: 317.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kfp-2.16.1.tar.gz
Algorithm Hash digest
SHA256 67fffff19960bb4624836d1ee0a4449e6e326092646883f7d57e9d1cc402bce2
MD5 576b69587723818ba9dddceb0b99ad92
BLAKE2b-256 24d84b72f7ffaf8918f629873766db81d444c7dd65a2c7342829b7b9df3d0cc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for kfp-2.16.1.tar.gz:

Publisher: publish-packages.yml on kubeflow/pipelines

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kfp-2.16.1-py3-none-any.whl.

File metadata

  • Download URL: kfp-2.16.1-py3-none-any.whl
  • Upload date:
  • Size: 421.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kfp-2.16.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d90742de35d1fee871240ddf619b29f5c25103f522eddaf97d2b24cb2483d3ba
MD5 3c7ed2147511bdce0dd1b32e99b4db5e
BLAKE2b-256 b764c2393ab7410017cefd5fd5693811a77d7d55d5b02faf09a9e6402c4d187c

See more details on using hashes here.

Provenance

The following attestation bundles were made for kfp-2.16.1-py3-none-any.whl:

Publisher: publish-packages.yml on kubeflow/pipelines

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page