Skip to main content

cloudcoil

Typed Kubernetes clients, controllers and admission policies for Python 3.14.

PyPI CI License: Apache-2.0

Use Pydantic resource classes for typed API calls. Build controllers that return changed resources, define CRDs from Python models, and add admission policies to built-in or custom resources.

Installation

uv add 'cloudcoil[kubernetes]'
# Include HTTPS hosting for admission:
uv add 'cloudcoil[operator,kubernetes]'

The Kubernetes extra currently installs published 1.32 models. Until supported model packages are released, follow the checkout installation instructions to generate matching models. See VERSIONING.md for Kubernetes support and migration details.

Read resources

from cloudcoil.models.kubernetes.core.v1 import Pod

for pod in Pod.list(namespace="default").items:
    print(pod.name)

Async applications use await Pod.async_list(...). Cloudcoil uses your kubeconfig locally and ServiceAccount credentials in a Pod.

Write a controller

from cloudcoil.controller import Controller, Request
from cloudcoil.models.kubernetes.core.v1 import ConfigMap
from cloudcoil.application import Application

async def reconcile(request: Request[ConfigMap]) -> ConfigMap | None:
    obj = request.resource
    if obj is None or (obj.metadata and obj.metadata.deletion_timestamp):
        return None
    obj.data = {**(obj.data or {}), "managed-by": "cloudcoil"}
    return obj

app = Application(
    "configmap-labeler",
    Controller(ConfigMap, reconcile, label_selector="example.com/manage=true"),
)

if __name__ == "__main__":
    app.main()

Save as app.py. Run python app.py manifests to review generated permissions, or python app.py run to start reconciliation. Cloudcoil handles watch recovery, retries, guarded main/status patches and shutdown. Unchanged returns cause no write. See the quickstart to try it against a cluster.

Documentation

The documentation site contains the full guides. The same pages are available in this checkout:

Task Guide
Install and run your first controller Getting started
API operations and builders Resources
Workload logs Logs
CRD/OpenAPI model generation and typing Models
Define CRDs from Python Custom resources
Reconcile, manage children and write status Controllers
Live clients and informer reads Reads
Admission on built-in and custom resources Admission
Manifests, RBAC, TLS and deployment Applications
Executable controller/operator examples Patterns
Caching, leadership and observability Caching, runtime
Kubernetes integration tests Testing
Existing model packages Integrations

The Widget demo builds and deploys a complete operator with a CRD, ConfigMap, Deployment, Service, readiness and HTTPS admission.

Licensed under Apache-2.0.

Metadata

Release files for cloudcoil 0.7.1

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

Source distribution (sdist)

Source distribution for cloudcoil 0.7.1
File Size Uploaded
cloudcoil-0.7.1.tar.gz 691.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cloudcoil 0.7.1
File Interpreter ABI Platform
cloudcoil-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 854.5 kB

Release files / cloudcoil-0.7.1.tar.gz

Download URL cloudcoil-0.7.1.tar.gz
Size 691.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c4aa0f02f2cefea90f60b9fabe307e898b7f58fd1c5b86f4c0fe328608dd5b01
BLAKE2b-256 checksum
How to use checksums
ae6ea422cc66eef28e3982d7eb698d4a1f5e7183b09c5157212d24bd73e049ba
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

Release files / cloudcoil-0.7.1-py3-none-any.whl

Download URL cloudcoil-0.7.1-py3-none-any.whl
Size 163.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
784fd8c4af3f364ec4ed46b2b4d6b9f86800d138298d3fc266fb2842c30a4eb8
BLAKE2b-256 checksum
How to use checksums
4fb62ef2a20788f071756d1deb22072aef19085c78814fed00595a8bfa3833b6
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

Release history Release notifications | RSS feed

0.8.0

2 release files

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.34

2 release files

0.0.33

2 release files

0.0.32

2 release files

0.0.31

2 release files

0.0.30

2 release files

0.0.29

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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