An asynchronous Kubernetes client for Python, and the libraries around it. Everything is typed with Pydantic v2 and runs on asyncio or trio.
Documentation: https://kubex.codemageddon.me/
| Project | What it is |
|---|---|
| kubex | The client: typed resources, watch, logs, exec and port-forward, over httpx or aiohttp. PyPI |
| kubex-core | Base models and types shared by kubex and the generated model packages. PyPI |
| k8s-1.32 … k8s-1.38 | Generated models, one repository per Kubernetes version: 1.32 · 1.33 · 1.34 · 1.35 · 1.36 · 1.37 · 1.38. Installed as an extra, e.g. pip install "kubex[k8s-1.35]" (package kubex-k8s-1-35) |
| kubex-codegen | The generator for those models, from the Kubernetes OpenAPI spec |
| kubex-runtime | Watchers, reflectors, controllers and finalizers for building operators. In development, not on PyPI yet |
| pydantic-jsonpointer | JSON Pointer (RFC 6901) for Pydantic models, dicts and lists |
| pydantic-jsonpatch | JSON Patch (RFC 6902) for Pydantic |
pip install "kubex[httpx,k8s-1.35]"Contributions are welcome: see the contributing guide and the code of conduct. To report a vulnerability, follow the security policy.