Kubeflow SDK
Overview
Kubeflow SDK is a unified Python SDK that streamlines the user experience for AI Practitioners to interact with various Kubeflow projects. It provides simple, consistent APIs across the Kubeflow ecosystem, enabling users to focus on building ML applications rather than managing complex infrastrutcure.
Kubeflow SDK Benefits
- Unified Experience: Single SDK to interact with multiple Kubeflow projects through consistent Python APIs
- Simplified AI Workflows: Abstract away Kubernetes complexity, allowing AI practitioners to work in familiar Python environments
- Seamless Integration: Designed to work together with all Kubeflow projects for end-to-end ML pipelines
- Local Development: First-class support for local development requiring only
pipinstallation
Get Started
Install Kubeflow SDK
pip install git+https://github.com/kubeflow/sdk.git@main
Run your first PyTorch distributed job
from kubeflow.trainer import TrainerClient, CustomTrainer
def get_torch_dist():
import os
import torch
import torch.distributed as dist
dist.init_process_group(backend="gloo")
print("PyTorch Distributed Environment")
print(f"WORLD_SIZE: {dist.get_world_size()}")
print(f"RANK: {dist.get_rank()}")
print(f"LOCAL_RANK: {os.environ['LOCAL_RANK']}")
# Create the TrainJob
job_id = TrainerClient().train(
runtime=TrainerClient().get_runtime("torch-distributed"),
trainer=CustomTrainer(
func=get_torch_dist,
num_nodes=3,
resources_per_node={
"cpu": 2,
},
),
)
# Wait for TrainJob to complete
TrainerClient().wait_for_job_status(job_id)
# Print TrainJob logs
print("\n".join(TrainerClient().get_job_logs(name=job_id)))
Supported Kubeflow Projects
| Project | Status | Description |
|---|---|---|
| Kubeflow Trainer | ✅ Available | Train and fine-tune AI models with various frameworks |
| Kubeflow Katib | 🚧 Planned | Hyperparameter optimization |
| Kubeflow Pipelines | 🚧 Planned | Build, run, and track AI workflows |
| Kubeflow Model Registry | 🚧 Planned | Manage model artifacts, versions and ML artifacts metadata |
Community
Getting Involved
- Slack: Join our #kubeflow-ml-experience Slack channel
- Meetings: Attend the Kubeflow SDK and ML Experience bi-weekly meetings
- GitHub: Discussions, issues and contributions at kubeflow/sdk
Contributing
Kubeflow SDK is a community project and is still under active development. We welcome contributions! Please see our CONTRIBUTING Guide for details.
Documentation
- Design Document: Kubeflow SDK design proposal
- Component Guides: Individual component documentation
- DeepWiki: AI-powered repository documentation
✨ Contributors
We couldn't have done it without these incredible people:
Metadata
Release files for kubeflow-test 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kubeflow_test-0.9.1.tar.gz | 606.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kubeflow_test-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 646.4 kB
Release files / kubeflow_test-0.9.1.tar.gz
| Download URL | kubeflow_test-0.9.1.tar.gz |
|---|---|
| Size | 606.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63a6f41d41df52f10a0c1580c1a6529c0225c5bfc74109b5fd5efb4d5e185660
|
|
BLAKE2b-256 checksum How to use checksums |
5b7df81db05cac88ff225a9e0987276ba241708b3786078fc312c95e40204b64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2025.
Transparency logRelease files / kubeflow_test-0.9.1-py3-none-any.whl
| Download URL | kubeflow_test-0.9.1-py3-none-any.whl |
|---|---|
| Size | 39.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0a4d245a1e5d7415c0ea1ded3d5281daea9c8353d8d438817f6961e3692e213
|
|
BLAKE2b-256 checksum How to use checksums |
0ad502808d56d40fcff716345a00b4e10191dbf7f1d59c0d27ff70bc9bc0929c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2025.
Transparency logSecurity for kubeflow-test 0.9.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for kubeflow_test-0.9.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2025.
Transparency logA 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.