$npx skillfedfor your agent

kubernetes-typed

Collection of mypy plugins and stubs for kubernetes

With conditionsPyPI Software DevelopmentReleased Sep 2024171.4K downloads / moApache License Version 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — kubernetes_typed-18.20.2-py3-none-any.whl
v18.20.2 · released 2024-09-02 · Python >=3.8 · 5 runtime deps: jsonschema-typed-v2, jsonschema, mypy, mypy-extensions, PyYAML

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

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
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache License Version 2.0 permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
jsonschema-typed-v2jsonschemamypymypy-extensionsPyYAML
MaintenanceDormant 711 days since the last release
Last repo commit
First released
Downloads171,421 / month, #10,367 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
kubernetes type checking mypymypy plugin kubernetescustom resource definition typingkubernetes python client typesk8s type stubskubernetes crd type hintsmypy kubernetes plugin
Topics
kubernetestype-checkingmypy-plugin
PyPI keywords
KubernetesMyPyStubsTyping

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also kubernetes-stubs · kr8s · lightkube-models · openshift · kubernetes-validate · k8 · kubernetes-stubs-elephant-fork · kubernetes-asyncio · kubernetes · pulumi-kubernetes