kubernetes
Kubernetes python client
Install
kubernetes on PyPI
pip
pip install kubernetesuv
uv add kubernetespoetry
poetry add kubernetesPackage facts
| License | Apache License Version 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 10 — certifi, six, python-dateutil, pyyaml, websocket-client, requests, requests-oauthlib, urllib3, durationpy, aiohttp |
| Maintenance | actively maintained — 31 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: kubernetes-36.0.3-py2.py3-none-any.whl
Keywords: Swagger, OpenAPI, Kubernetes
About kubernetes
from the package's own PyPI description — quoted content, verbatim
Kubernetes Python Client
CI (image) PyPI version (image) codecov (image) pypi supported versions (image) Client Capabilities (image) Client Support Level (image)
Python client for the kubernetes API.
Installation
From source:
``` git...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Official Python client library for interacting with Kubernetes clusters via their API, supporting both synchronous and asynchronous operations.
Low friction: pure Python wheel distribution with 10 well-established runtime dependencies. Active maintenance with releases every ~31 days and strong community support.
Apache License Version 2.0 (permissive) allows commercial use, modification, and distribution with minimal restrictions—standard for infrastructure tooling.
Usage
pip install kubernetes
from kubernetes import client, config
config.load_kube_config()
v1 = client.CoreV1Api()
pods = v1.list_pod_for_all_namespaces(watch=False)
for pod in pods.items:
print(pod.metadata.name)
Requires Python >=3.10; kubeconfig file or in-cluster service account credentials must be available for authentication.
Verdict: Production-ready official Kubernetes client with active maintenance, no known vulnerabilities, and permissive Apache License Version 2.0. Low install friction and broad Python 3.10+ support make it suitable for both synchronous and async Kubernetes automation.
Needs verification
- Whether aiohttp is a true async runtime dependency or optional—fact sheet lists it but usage examples show sync-first patterns.
- Whether all 10 runtime dependencies are always required or if some are conditional on feature use.
- Specific compatibility status with Python 3.13 and 3.14 given the recent release cycle.
Similar packages
unclear · top 1,000 on PyPI
synchronicitypermissive · top 1,000 on PyPI
apache-airflowpermissive · top 1,000 on PyPI
openapi-spec-validatorpermissive · top 1,000 on PyPI
google-cloud-containerpermissive · top 1,000 on PyPI
tree-sitter-bashpermissive · top 1,000 on PyPI
google-cloud-dataprocpermissive · top 1,000 on PyPI
toxpermissive · top 1,000 on PyPI
jsonschema-pathpermissive · top 1,000 on PyPI
h5pypermissive · top 1,000 on PyPI