pykube-ng
Python client library for Kubernetes
Decision gist · record as of 2026-08-14
Yes, with conditions. pykube-ng is stable and has low install friction, making it suitable for existing projects or scripts that already depend on it. However, do not adopt it for new projects: the package is abandoned (no releases in 1155+ days), so it will not receive security patches or updates for newer Kubernetes API versions. For new work, consider the actively maintained official Kubernetes Python client (kubernetes) instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later and a valid kubeconfig file (typically ~/.kube/config) to authenticate with a Kubernetes cluster.
- Low install friction with only three runtime dependencies (urllib3, pyyaml, requests).
- However, the package is marked abandoned with no releases for over 1155 days, so maintenance and security updates are not expected.
License · maintenance · safety
Apache (permissive) — Licensed under Apache License 2.0, a permissive open-source license that allows use in commercial and private projects with minimal restrictions.
last release 2023-06-16 (1155 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 252,860 downloads/mo, #8,531 on PyPI
Alternatives
Verify before relying
pip install pykube-ng
import pykube
api = pykube.HTTPClient(pykube.KubeConfig.from_file())
pods = pykube.Pod.objects(api).filter(namespace="default")
for pod in pods:
print(pod.name)- Whether the package works with recent Kubernetes API versions given the 1155+ day gap since last release.
- Current status of the upstream repository and whether security patches are backported or planned.
What it is and what it does
pykube-ng is a lightweight Python client for Kubernetes that wraps the Kubernetes API in native Python objects. It uses requests for HTTP communication and kubeconfig for authentication, allowing you to query, filter, create, and delete Kubernetes resources (Pods, Deployments, Jobs, etc.) programmatically. The library exposes Kubernetes objects as Python classes with methods for common operations like filtering by namespace or selector, watching for changes, and accessing raw API attributes.
The package is a maintained fork of the original pykube project, which was archived. It supports Python 3.8 through 3.10 and depends on urllib3, pyyaml, and requests. While it provides a simpler, more Pythonic interface than direct API calls, it is no longer actively maintained—the last release was over 1155 days ago, so compatibility with recent Kubernetes versions and security updates are not guaranteed.
Use it for
- Programmatically query and filter Kubernetes resources (pods, deployments, jobs) by namespace, label, or field selector.
- Automate Kubernetes resource creation and deletion (e.g., spinning up deployments or cleaning up jobs) from Python scripts.
- Watch Kubernetes resources for changes in real time and react to ADDED, MODIFIED, or DELETED events.
- Build Python-based tools or operators that need to interact with a Kubernetes cluster without shelling out to kubectl.
- Access raw Kubernetes object attributes and metadata through a Python object interface.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
pykube-ng is stable and has low install friction, making it suitable for existing projects or scripts that already depend on it. However, do not adopt it for new projects: the package is abandoned (no releases in 1155+ days), so it will not receive security patches or updates for newer Kubernetes API versions. For new work, consider the actively maintained official Kubernetes Python client (kubernetes) instead.
Install
pykube-ng on PyPI
Before you install
Low install friction with only three runtime dependencies (urllib3, pyyaml, requests). However, the package is marked abandoned with no releases for over 1155 days, so maintenance and security updates are not expected.
Requires Python 3.8 or later and a valid kubeconfig file (typically ~/.kube/config) to authenticate with a Kubernetes cluster.
License in practice
Licensed under Apache License 2.0, a permissive open-source license that allows use in commercial and private projects with minimal restrictions.
Quickstart
pip install pykube-ng
import pykube
api = pykube.HTTPClient(pykube.KubeConfig.from_file())
pods = pykube.Pod.objects(api).filter(namespace="default")
for pod in pods:
print(pod.name)
Verify before relying
- Whether the package works with recent Kubernetes API versions given the 1155+ day gap since last release.
- Current status of the upstream repository and whether security patches are backported or planned.
Package facts
| License | Apache permissive |
| Python support | Supports the current Python release >=3.8,<4 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesurllib3pyyamlrequests |
| Maintenance | Abandoned 1,155 days since the last release |
| First released | |
| Downloads | 252,860 / month, #8,531 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseLicense :: Other/Proprietary LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: pykube_ng-23.6.0-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 library”
- pykube-ngpykube-ng is a Python client library for querying, creating, and…
- kubernetes-asyncioAsynchronous Python client for the Kubernetes API, enabling…
- kubernetes-validateValidates Kubernetes resource definitions against official Kubernetes…
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 kr8s · portforward · kubernetes-asyncio · kubernetes · pyhelm3 · openshift · pulumi-kubernetes · k8s-agent-sandbox · kfp-kubernetes · kubernetes-stubs