k8
Kubernetes Python Models
Decision gist · record as of 2026-08-14
Yes, if you need type-safe Kubernetes models and can tolerate dormant maintenance. The low install friction, permissive license, and stable API surface make it suitable for production use in applications that don't require frequent Kubernetes API updates. Not recommended if you need active maintenance or support for the latest Kubernetes features.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later.
- Low install friction with a pure-Python wheel.
- Maintenance is dormant—last release was in May 2024, though the repository remains active.
License · maintenance · safety
permissive license (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it safe for both open-source and commercial projects.
last release 2024-05-23 (813 days) · last repo commit 2024-05-23
0 known vulnerabilities (OSV.dev, 2026-08-14) · 305,114 downloads/mo, #7,798 on PyPI
Alternatives
Verify before relying
pip install k8
from k8 import models
# Use Kubernetes model types for API interactions
deployment = models.Deployment(...)- Whether the generated models cover all current Kubernetes API versions or only a specific version.
- How frequently the models need regeneration to stay aligned with Kubernetes API changes.
- Whether pydantic v2 or v1 compatibility is maintained.
What it is and what it does
k8 is a Python package that provides type-safe models for Kubernetes resources. It generates these models from OpenAPI specifications, allowing developers to work with Kubernetes API objects as strongly-typed Python classes rather than raw dictionaries. The package depends on pydantic for data validation and aenum for enumeration support, making it suitable for applications that need to programmatically interact with Kubernetes clusters or manifests.
The package is generated via a refresh script, suggesting it is derived from upstream Kubernetes OpenAPI definitions. It targets Python 3.11 and maintains a permissive MIT license. Maintenance is dormant with the last release on 2024-05-23. This makes it appropriate for stable, read-heavy use cases but not for projects requiring active development or rapid API updates.
Use it for
- Generate type-checked Python code for Kubernetes manifests and configurations.
- Build CLI tools or automation scripts that interact with Kubernetes APIs with IDE autocomplete.
- Validate Kubernetes resource definitions programmatically before deployment.
- Integrate Kubernetes object models into Python-based infrastructure-as-code frameworks.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need type-safe Kubernetes models and can tolerate dormant maintenance.
The low install friction, permissive license, and stable API surface make it suitable for production use in applications that don't require frequent Kubernetes API updates. Not recommended if you need active maintenance or support for the latest Kubernetes features.
Install
k8 on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintenance is dormant—last release was in May 2024, though the repository remains active. Suitable for stable use cases but expect no updates.
Requires Python 3.11 or later.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it safe for both open-source and commercial projects.
Quickstart
pip install k8
from k8 import models
# Use Kubernetes model types for API interactions
deployment = models.Deployment(...)
Verify before relying
- Whether the generated models cover all current Kubernetes API versions or only a specific version.
- How frequently the models need regeneration to stay aligned with Kubernetes API changes.
- Whether pydantic v2 or v1 compatibility is maintained.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespydanticaenum |
| Maintenance | Dormant 813 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 305,114 / month, #7,798 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: k8-29.0.9-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 python models”
- k8Provides Python type models for Kubernetes resources, generated from…
- lightkube-modelsProvides Python type definitions and model classes for Kubernetes…
- kserveKServe Python SDK provides server and client libraries for deploying…
Give your agent the search over MCP, or paste the wish link into any chat.
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework that enables you to define and call remote procedures across network boundaries using protocol buffers for serialization.
Install it if you need RPC communication in a distributed system or are integrating with existing gRPC services.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
Cloudpickle extends Python's standard pickle module to serialize lambda functions, interactively-defined functions and classes, and other constructs that the default pickle cannot handle, making it suitable for cluster computing and remote code execution.
Install it if you need to serialize lambda functions, interactively-defined code, or non-standard Python constructs for cluster computing or distributed execution.
Provides a unified, open()-compatible Python API for streaming large files from remote storage (S3, GCS, Azure, HDFS, SFTP, HTTP) and local filesystems, with transparent compression support.
Install it if you work with large files on cloud storage or remote systems and want to avoid writing boilerplate around multiple SDKs.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
Ray is a distributed computing framework that scales Python applications from a single machine to multi-node clusters, providing abstractions for parallel tasks, stateful actors, and shared objects.
See also openresponses-types · lightkube-models · kopf · kubernetes-asyncio · turnkey-sdk-types · sigstore-rekor-types · connector-sdk-types · cdk8s · kubernetes-stubs · openccu-loom-types