skillfed

kubernetes

Kubernetes python client

kubernetes Permissive license Apache License Version 2.0 Active 7,649 v36.0.3 released

Install

kubernetes on PyPI

pip

pip install kubernetes

uv

uv add kubernetes

poetry

poetry add kubernetes

Package 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Utilities

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.
kubernetes api client pythonk8s cluster management librarykubernetes pod deployment automationkubernetes resource orchestrationasync kubernetes clientkubernetes watch eventskubernetes configuration loader

Similar packages