Skip to main content

kfp-local

Pipelines built with kfp(kubeflow pipeline) 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

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 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

Metadata

Release files for kfp-local 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kfp-local 1.1.0
File Size Uploaded Provenance Actions
kfp-local-1.1.0.tar.gz 13.3 kB Without provenance Details for kfp-local-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kfp-local 1.1.0
File Interpreter ABI Platform Actions
kfp_local-1.1.0-py3-none-any.whl Python 3 none any Details for kfp_local-1.1.0-py3-none-any.whl

Total release size: 27.9 kB

Release files / kfp-local-1.1.0.tar.gz

Download URL kfp-local-1.1.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
118463dd41db5b17eb4efbb5abe0fcd326e320f1c1b8122bd0c3f40bb935caa1
BLAKE2b-256 checksum
How to use checksums
f61dfcb72e8c5c88289034489c98db92ff8214076cfd3d0d301df1ef1c0105cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.13

Release files / kfp_local-1.1.0-py3-none-any.whl

Download URL kfp_local-1.1.0-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a994bbd32e88e38bddb5b233ed17043860914cef703171f3e01bbb11ff13783e
BLAKE2b-256 checksum
How to use checksums
6f7ca071db6273b6e2e88b10246cc730a67b44e4dc0df6649b3074bad9af59ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.13

Security for kfp-local 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page