Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions sdk/python/kfp/kubeflow_client/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright 2026 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Kubeflow PipelinesClient — simplified, name-first KFP interface.

Can be used directly via ``from kfp.kubeflow_client import PipelinesClient``
or through the Kubeflow SDK re-export at ``kubeflow.pipelines``.
"""

from kfp.kubeflow_client import constants
from kfp.kubeflow_client.pipelines_client import PipelinesBackendConfig
from kfp.kubeflow_client.pipelines_client import PipelinesClient
from kfp.kubeflow_client.types import Experiment
from kfp.kubeflow_client.types import ListExperimentsResponse
from kfp.kubeflow_client.types import ListPipelinesResponse
from kfp.kubeflow_client.types import ListPipelineVersionsResponse
from kfp.kubeflow_client.types import ListRunsResponse
from kfp.kubeflow_client.types import Pipeline
from kfp.kubeflow_client.types import PipelineVersion
from kfp.kubeflow_client.types import Run

__all__ = [
'constants',
'Experiment',
'ListExperimentsResponse',
'ListPipelinesResponse',
'ListPipelineVersionsResponse',
'ListRunsResponse',
'Pipeline',
'PipelinesBackendConfig',
'PipelinesClient',
'PipelineVersion',
'Run',
]
48 changes: 48 additions & 0 deletions sdk/python/kfp/kubeflow_client/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright 2026 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Run state constants for PipelinesClient."""

__all__ = [
'RUN_SUCCEEDED',
'RUN_FAILED',
'RUN_SKIPPED',
'RUN_ERROR',
'RUN_CANCELED',
'RUN_CANCELING',
'RUN_RUNNING',
'RUN_PENDING',
'RUN_PAUSED',
'RUN_COMPLETE',
'TERMINAL_STATES',
]

RUN_SUCCEEDED = 'succeeded'
RUN_FAILED = 'failed'
RUN_SKIPPED = 'skipped'
RUN_ERROR = 'error'
RUN_CANCELED = 'canceled'
RUN_CANCELING = 'canceling'
RUN_RUNNING = 'running'
RUN_PENDING = 'pending'
RUN_PAUSED = 'paused'

RUN_COMPLETE = RUN_SUCCEEDED

TERMINAL_STATES = frozenset({
RUN_SUCCEEDED,
RUN_FAILED,
RUN_SKIPPED,
RUN_ERROR,
RUN_CANCELED,
})
Loading
Loading