cloudcoil-models-kpack
Versioned kpack models for cloudcoil.
🔧 Installation
Using uv (recommended):
# Install with kpack support
uv add cloudcoil.models.kpack
Using pip:
pip install cloudcoil.models.kpack
Usage
Cloudcoil 0.7 generates a typed lookup function so callers do not need to depend on schema-derived module names:
from cloudcoil.models.kpack import get_model
Image = get_model("Image", api_version="kpack.io/v1alpha2")
resource = Image.model_validate({
"metadata": {"name": "example"},
"spec": {'tag': 'example.com/app:latest', 'builder': {'name': 'builder', 'kind': 'ClusterBuilder'}, 'source': {'git': {'url': 'https://example.com/repo', 'revision': 'main'}}},
})
resource.create()
Generated resources support validation, fluent builders, and the Cloudcoil client API.
Development
uv sync --dev
make gen-models
make lint test
uv build
Generation uses the namespace and input configuration in pyproject.toml, with automatic resource identity and field alias inference. Generated modules are built on release branches; pull requests regenerate and test them before publishing.
schemas/lifecycle.json supplies the lifecycle API definitions omitted from the upstream v0.18.0 OpenAPI document, matching the upstream Go types. Other Kubernetes types are generated with this package, so a separate Kubernetes model dependency is unnecessary.
Metadata
Release files for cloudcoil.models.kpack 0.18.0.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 | |
|---|---|---|---|
| cloudcoil_models_kpack-0.18.0.1.tar.gz | 116.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloudcoil_models_kpack-0.18.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 169.5 kB
Release files / cloudcoil_models_kpack-0.18.0.1.tar.gz
| Download URL | cloudcoil_models_kpack-0.18.0.1.tar.gz |
|---|---|
| Size | 116.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82f2ee85b27778ce7275e6934fc937c494cb66e2f836d49aa14be27f40a440d8
|
|
BLAKE2b-256 checksum How to use checksums |
7c9f0677dab28933fbb79dc715caa0c42c63089765901e231849762a9deee846
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 7, 2026.
Transparency logRelease files / cloudcoil_models_kpack-0.18.0.1-py3-none-any.whl
| Download URL | cloudcoil_models_kpack-0.18.0.1-py3-none-any.whl |
|---|---|
| Size | 52.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02c8db640d0db8c52fab4b14c1a749b832d91364a891f9057203cc1ce7cd0f5d
|
|
BLAKE2b-256 checksum How to use checksums |
e849a7be9dd3f9eec3cee5619699c72f19204e2effd4b3d60cd9330ad8b8774b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 7, 2026.
Transparency log