kubernetes-stubs
Type stubs for the Kubernetes Python API client
Decision gist · record as of 2026-08-14
Yes, if you are using Kubernetes client version 22.6.x and need type checking support. No, if you use a newer client version—the stubs are outdated and will not reflect current API. Check whether the upstream package now includes inline type hints or whether an actively maintained alternative exists before installing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with no runtime dependencies.
- However, the package is abandoned—last release was 1577 days ago—so it will not track upstream Kubernetes API changes or receive maintenance.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without copyleft obligations.
last release 2022-04-20 (1577 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 654,583 downloads/mo, #5,522 on PyPI
Alternatives
Verify before relying
pip install kubernetes-stubs- Whether these stubs remain accurate for current versions of the Kubernetes Python API client
- Compatibility with Python versions beyond 3.10 (the newest explicitly declared in classifiers)
What it is and what it does
kubernetes-stubs is a type-stub package that mirrors the Kubernetes Python API client's public interface, allowing static type checkers and IDEs to understand the types and signatures of client calls. Type stubs are metadata-only files that describe what types a library exposes; they don't add runtime behavior.
The package is useful if you write type-checked Python code that uses the Kubernetes client library. Its version numbers track the upstream package, so version 22.6.0.post1 corresponds to Kubernetes client 22.6.0. However, the package has not been updated since 2022-04-20 and is no longer maintained, meaning it will not reflect API changes in newer client releases.
Use it for
- Enable type checking in scripts that call the Kubernetes Python client
- Get IDE autocompletion and inline type hints when writing Kubernetes client code
- Verify at development time that your API calls match the client's expected signatures
- Maintain a typed codebase that depends on the Kubernetes client without type errors
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are using Kubernetes client version 22.6.x and need type checking support.
No, if you use a newer client version—the stubs are outdated and will not reflect current API. Check whether the upstream package now includes inline type hints or whether an actively maintained alternative exists before installing.
Install
kubernetes-stubs on PyPI
Before you install
Installation is straightforward with no runtime dependencies. However, the package is abandoned—last release was 1577 days ago—so it will not track upstream Kubernetes API changes or receive maintenance.
License in practice
Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without copyleft obligations.
Quickstart
pip install kubernetes-stubs
Verify before relying
- Whether these stubs remain accurate for current versions of the Kubernetes Python API client
- Compatibility with Python versions beyond 3.10 (the newest explicitly declared in classifiers)
Package facts
| License | Apache-2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,577 days since the last release |
| First released | |
| Downloads | 654,583 / month, #5,522 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: kubernetes_stubs-22.6.0.post1-py2.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 › “k8s api client types”
- kubernetes-stubsProvides Python type stubs for the Kubernetes API client, enabling…
- kubernetes-typedA mypy plugin that adds type checking support for Kubernetes objects,…
- kubernetes-asyncioAsynchronous Python client for the Kubernetes API, 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-elephant-fork · kubernetes-typed · lightkube-models · k8 · kubernetes · kubernetes-asyncio · asyncpg-stubs · pykube-ng · kubernetes-validate · scipy-stubs