Skip to main content

Code Craft AI Interop - Kubernetes

The codecraftai-interop-kubernetes package is the Kubernetes interop client for the ccai suite. It wraps the official kubernetes Python client and exists to serve two distinct consumers: codecraftai-provisioning WorkloadVenue provisioners (CoreWeave, Sunk Slurm-on-K8s, self-hosted clusters) and landscaping packages that enumerate or interact with workloads on a cluster.

Highlights

  • KubernetesClient — the top-level client, constructed from a kubeconfig path, a kubeconfig dict, or an in-cluster service-account context.

  • A workload primitives layer — typed helpers for Job, Deployment, StatefulSet, PersistentVolumeClaim, Service, and Ingress, each exposing apply, delete, get, list, and waiter methods built on codecraftai-foundations.

  • Consistent typed return objects — every method returns a typed result object (DTOs under model/), not a raw dict.

  • Consistent failure shape — API errors are reclassified into named exceptions (KubernetesResourceNotFoundError, KubernetesConflictError, etc.) so callers do not decode ApiException status codes.

  • All public APIs normalize the underlying client to the ccai Aspects pattern — callers control timeouts, retries, and logging; no behaviour-modifying decorators.

Repository Structure

  • development/ - Runtime environment scripts.

  • repository-setup/ - Repository homing and setup scripts.

  • source/packages/ccai/interop/kubernetes/ - Package source code.

  • source/testroots/testbase/ccai/tests/interop/kubernetes/ - TestBase test roots.

  • specs/ - Requirements, design, and task documentation (Kiro-style).

  • userguide/ - Standards, conventions, and documentation.

Environment Setup

When working in a Codex container:

./development/setup-agent-container

For local development:

./repository-setup/rehome-repository
./development/setup-environment

Running Tests

source .venv/bin/activate
testbase testing run --root ./source/testroots/testbase --includes=testbase.ccai.tests

Standards and Conventions

  • Naming conventions: userguide/10-02-naming-conventions.rst

  • Code organization: userguide/10-01-code-organization.rst

  • Coding standards: userguide/10-00-coding-standards.rst

Additional Resources

  • User guide entry point: userguide/userguide.rst

Metadata

Release files for codecraftai-interop-kubernetes 1.2.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 codecraftai-interop-kubernetes 1.2.0
File Size Uploaded Provenance
codecraftai_interop_kubernetes-1.2.0.tar.gz 29.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for codecraftai-interop-kubernetes 1.2.0
File Interpreter ABI Platform
codecraftai_interop_kubernetes-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 78.6 kB

Release files / codecraftai_interop_kubernetes-1.2.0.tar.gz

Download URL codecraftai_interop_kubernetes-1.2.0.tar.gz
Size 29.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9dd1595bde9bb3f6cd729f7c0d1b657d7a3cf9c26430b8f458efae67385d4106
BLAKE2b-256 checksum
How to use checksums
a4e0dbd1fe9081f16658399d8e5cc202d1575c6e7afea04cb1b3675af2d69c8d
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 Oct 20, 2026.

Transparency log

Release files / codecraftai_interop_kubernetes-1.2.0-py3-none-any.whl

Download URL codecraftai_interop_kubernetes-1.2.0-py3-none-any.whl
Size 48.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19efda9ff9f6c5dd5d30189b0a352069f73f4b595bdccfc68c0c60667a4e43be
BLAKE2b-256 checksum
How to use checksums
5efc4cce6e2f5488e2a426d0c93746ac980e7d83aab47d81f84c7deb4fe632f9
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 Oct 20, 2026.

Transparency log

Security for codecraftai-interop-kubernetes 1.2.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for codecraftai_interop_kubernetes-1.2.0.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 Oct 20, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files Full 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