kubernetes-stubs-elephant-fork
Type stubs for the Kubernetes Python API client
Decision gist · record as of 2026-08-14
Yes, if you use the Kubernetes Python client and want static type checking or IDE support. It has no runtime cost, low install friction, and is actively maintained. The main caveat is verifying that the stubs match your installed Kubernetes client version—check the fork's release notes to confirm coverage for your version.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Actively maintained with recent releases; the maintainer runs automated builds to track new Kubernetes releases, so stubs stay current.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), so you can use this freely in commercial and open-source projects without significant restrictions.
last release 2026-07-20 (25 days) · last repo commit 2026-07-20 · 12 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,028,322 downloads/mo, #2,782 on PyPI
Alternatives
Verify before relying
pip install kubernetes-stubs-elephant-fork
# Then use with your type checker (mypy, pyright, etc.)
# Your IDE will now provide autocomplete for kubernetes library imports
import kubernetes.client
api = kubernetes.client.CoreV1Api()- Whether stubs cover all Kubernetes client versions >= 7.0 or only specific releases
- Compatibility with the main kubernetes package version you're using
- Whether this fork is actively maintained beyond the automated release tracking
What it is and what it does
This package provides type stub files (.pyi) for the Kubernetes Python API client library. Type stubs allow static type checkers like mypy and Pyright to understand the Kubernetes library's API surface, and they enable IDE features like autocomplete and inline documentation. The package exists as a fork because the upstream kubernetes-stubs project had not kept pace with Kubernetes releases; this fork automates stub generation to track new Kubernetes releases.
You install it alongside the main kubernetes package. It has no runtime dependencies and does not affect how your code runs—it only improves the development experience by making type information available to your tools. The maintainer uses GitHub Actions to detect new Kubernetes releases and automatically build corresponding stubs, so the package stays synchronized with the upstream library.
Use it for
- Enable mypy or Pyright to type-check code that uses the Kubernetes Python client without false positives.
- Get IDE autocomplete and inline API documentation when writing Kubernetes client code in VSCode or PyCharm.
- Catch Kubernetes API usage errors at development time rather than at runtime.
- Maintain type safety in large projects that orchestrate or manage Kubernetes clusters via Python.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use the Kubernetes Python client and want static type checking or IDE support.
It has no runtime cost, low install friction, and is actively maintained. The main caveat is verifying that the stubs match your installed Kubernetes client version—check the fork's release notes to confirm coverage for your version.
Install
kubernetes-stubs-elephant-fork on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained with recent releases; the maintainer runs automated builds to track new Kubernetes releases, so stubs stay current.
License in practice
Licensed under Apache-2.0 (permissive), so you can use this freely in commercial and open-source projects without significant restrictions.
Quickstart
pip install kubernetes-stubs-elephant-fork
# Then use with your type checker (mypy, pyright, etc.)
# Your IDE will now provide autocomplete for kubernetes library imports
import kubernetes.client
api = kubernetes.client.CoreV1Api()
Verify before relying
- Whether stubs cover all Kubernetes client versions >= 7.0 or only specific releases
- Compatibility with the main kubernetes package version you're using
- Whether this fork is actively maintained beyond the automated release tracking
Package facts
| License | Apache-2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,028,322 / month, #2,782 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.11Programming 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_elephant_fork-36.0.3.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 › “kubernetes type stubs”
- kubernetes-stubs-elephant-forkProvides type stubs for the Kubernetes Python API client, enabling…
- kubernetes-stubsProvides Python type stubs for the Kubernetes API client, enabling…
- kubernetes-typedA mypy plugin that adds type checking support for Kubernetes objects,…
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 · kubernetes-typed · appdirs-stubs · k8 · asyncpg-stubs · mypy-boto3 · types-sqlalchemy-utils · scipy-stubs · confluent-kafka-stubs · kubernetes