kubernetes-typed
Collection of mypy plugins and stubs for kubernetes
Decision gist · record as of 2026-08-14
Yes, if you use mypy for Python Kubernetes tooling and want type safety for manifests and client code. The low install friction and permissive license make it a straightforward addition to a mypy workflow. However, dormant maintenance and known limitations mean it is best suited for stable, non-bleeding-edge use cases. No known security vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires mypy to be installed and configured; CRDs using additionalProperties are not supported.
- Low install friction with a pure-wheel distribution.
- Maintenance is dormant—last release was 711 days ago, though the repository remains active with a recent commit on 2024-09-08.
License · maintenance · safety
Apache License Version 2.0 (permissive) — Apache License Version 2.0 is permissive, allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.
last release 2024-09-02 (711 days) · last repo commit 2024-09-08 · 26 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 171,421 downloads/mo, #10,367 on PyPI
Alternatives
Verify before relying
pip install kubernetes-typed
# Configure mypy to use the plugin:
# [mypy]
# plugins = kubernetes_typed.plugin
from kubernetes_typed.client import V1PodDict
pod_manifest: V1PodDict = {
"apiVersion": "v1",
"kind": "Pod",
"metadata": {"name": "test-pod"},
}- Whether the plugin works reliably with mypy versions beyond those tested during development
- Performance impact when type-checking large numbers of custom resources
- Compatibility with recent kubernetes-client library versions
What it is and what it does
kubernetes-typed is a mypy plugin that generates type definitions for Kubernetes objects at static analysis time. It works in two modes: it can type-check custom resource definitions by reading their YAML schemas and generating TypedDict types, or it can provide type stubs for the kubernetes-client library to enable type checking of standard Kubernetes objects. The plugin integrates directly into mypy's type-checking pipeline, allowing developers to catch type errors in Kubernetes manifests and client code before runtime.
The package depends on mypy, jsonschema, PyYAML, mypy-extensions, and jsonschema-typed-v2. It supports Python 3.8 through 3.12 and follows the kubernetes-client versioning scheme, so the MAJOR.MINOR version matches the client version for which stubs were generated. It is currently in beta and dormant—no active development is expected, though the repository is not archived.
Use it for
- Type-check custom resource definitions in YAML files to catch schema violations early in development
- Enable IDE autocomplete and type hints when working with kubernetes-client library classes
- Validate Kubernetes manifest dictionaries before submitting them to the API
- Catch typos and incorrect field names in Pod, Deployment, and other standard resource specs
- Enforce consistent typing across a team's Kubernetes automation and operator code
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use mypy for Python Kubernetes tooling and want type safety for manifests and client code.
The low install friction and permissive license make it a straightforward addition to a mypy workflow. However, dormant maintenance and known limitations mean it is best suited for stable, non-bleeding-edge use cases. No known security vulnerabilities.
Install
kubernetes-typed on PyPI
Before you install
Low install friction with a pure-wheel distribution. Maintenance is dormant—last release was 711 days ago, though the repository remains active with a recent commit on 2024-09-08. Suitable for stable use but expect no active development.
Requires mypy to be installed and configured; CRDs using additionalProperties are not supported.
License in practice
Apache License Version 2.0 is permissive, allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install kubernetes-typed
# Configure mypy to use the plugin:
# [mypy]
# plugins = kubernetes_typed.plugin
from kubernetes_typed.client import V1PodDict
pod_manifest: V1PodDict = {
"apiVersion": "v1",
"kind": "Pod",
"metadata": {"name": "test-pod"},
}
Verify before relying
- Whether the plugin works reliably with mypy versions beyond those tested during development
- Performance impact when type-checking large numbers of custom resources
- Compatibility with recent kubernetes-client library versions
Package facts
| License | Apache License Version 2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesjsonschema-typed-v2jsonschemamypymypy-extensionsPyYAML |
| Maintenance | Dormant 711 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 171,421 / month, #10,367 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: ConsoleEnvironment :: PluginsIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software DevelopmentTyping :: Typed |
Evidence: kubernetes_typed-18.20.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “kubernetes type checking mypy”
- kubernetes-typedA mypy plugin that adds type checking support for Kubernetes objects,…
- kubernetes-stubs-elephant-forkProvides type stubs for the Kubernetes Python API client, enabling…
- kubernetes-stubsProvides Python type stubs for the Kubernetes API client, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also kubernetes-stubs · kr8s · lightkube-models · openshift · kubernetes-validate · k8 · kubernetes-stubs-elephant-fork · kubernetes-asyncio · kubernetes · pulumi-kubernetes