$npx skillfedfor your agent

kr8s

A Kubernetes API library

Worth itPyPI Distributed ComputingReleased Jan 2026912.7K downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — kr8s-0.20.15-py3-none-any.whl
v0.20.15 · released 2026-01-16 · Python >=3.9 · 11 runtime deps: anyio, cachetools, cryptography, exceptiongroup, httpx-ws, httpx, packaging, python-box

Yes. kr8s is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It solves a real problem—making Kubernetes automation accessible to Python developers without requiring deep API knowledge. The kubectl-inspired design and async support make it suitable for both simple scripts and production automation.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >=3.9 and a running Kubernetes cluster or valid kubeconfig for authentication.
  • Low friction: pure Python wheel with 11 runtime dependencies (httpx, pyyaml, cryptography, and others) all common and well-maintained.
  • Active maintenance with a recent commit on 2026-08-12 and 963 repository stars.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use this in commercial or proprietary projects with minimal restrictions, provided you include the license text.

last release 2026-01-16 (210 days) · last repo commit 2026-08-12 · 963 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 912,699 downloads/mo, #4,741 on PyPI

Verify before relying

pip install kr8s

import kr8s

for node in kr8s.get("nodes"):
    print(node.name)
  • Whether sensible defaults for authentication work seamlessly in all common deployment environments (local, cloud, CI/CD).
  • Performance characteristics when querying large clusters or handling high-frequency operations.
  • Scope of kubectl-inspired utilities beyond the documented examples (pod operations, scaling, labeling).
Same gist for agents: .md · .json

What it is and what it does

kr8s is a Python client for Kubernetes designed to feel familiar to users of kubectl. Instead of wrestling with Swagger-generated code or low-level API calls, you work with human-readable objects and methods that mirror kubectl's command structure. It handles authentication with sensible defaults, reducing boilerplate setup.

The library provides both synchronous and asynchronous APIs (compatible with asyncio and trio), client-side caching to avoid redundant API calls, and batteries-included utilities for common tasks like pod execution, port forwarding, node cordoning, and deployment scaling. You can list resources with label selectors, generate objects from templates, and manipulate cluster state in a Pythonic way.

Use it for

  • Automate cluster operations (scaling deployments, cordoning nodes, adding labels) in Python scripts or applications.
  • Build monitoring or admin dashboards that query Kubernetes resources without learning the raw API.
  • Execute commands in pods or set up port forwards programmatically for debugging or data transfer.
  • Write integration tests that create, inspect, and clean up Kubernetes resources in a familiar syntax.
  • Migrate kubectl workflows into Python-based CI/CD pipelines or infrastructure-as-code tools.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

kr8s is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It solves a real problem—making Kubernetes automation accessible to Python developers without requiring deep API knowledge. The kubectl-inspired design and async support make it suitable for both simple scripts and production automation.

Install

kr8s on PyPI

Before you install

Low friction: pure Python wheel with 11 runtime dependencies (httpx, pyyaml, cryptography, and others) all common and well-maintained. Active maintenance with a recent commit on 2026-08-12 and 963 repository stars.

Requires Python >=3.9 and a running Kubernetes cluster or valid kubeconfig for authentication.

License in practice

BSD-3-Clause is permissive; you can use this in commercial or proprietary projects with minimal restrictions, provided you include the license text.

Quickstart

pip install kr8s

import kr8s

for node in kr8s.get("nodes"):
    print(node.name)

Verify before relying

  • Whether sensible defaults for authentication work seamlessly in all common deployment environments (local, cloud, CI/CD).
  • Performance characteristics when querying large clusters or handling high-frequency operations.
  • Scope of kubectl-inspired utilities beyond the documented examples (pod operations, scaling, labeling).

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
11 packages
anyiocachetoolscryptographyexceptiongrouphttpx-wshttpxpackagingpython-boxpython-jsonpathpyyamltyping-extensions
MaintenanceActively maintained 210 days since the last release
Last repo commit
First released
Downloads912,699 / month, #4,741 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Programming Language :: Python :: 3

Evidence: kr8s-0.20.15-py3-none-any.whl

Tags

Capabilities
kubernetes python clientkubectl-like api libraryk8s cluster managementasync kubernetes clientpython kubernetes automationkubectl python wrapperkubernetes resource operations
Topics
kubernetesdevops-automationasync-ready
PyPI keywords
kubectlkubernetes

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 › “kubectl-like api library”

  • kr8sA Python client library for Kubernetes that mirrors kubectl's command…
  • restflyRESTfly is a framework for building libraries that interact with…
  • google-api-coreProvides shared infrastructure and utilities for Google API client…

Give your agent the search over MCP, or paste the wish link into any chat.

More Distributed Computing packages

grpcio Worth it
PyPI · Distributed Computing · released Jul 2026

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.

Apache-2.0compiled wheel · 3.10+
446.4Mdownloads / mo
execnet With conditions
PyPI · Libraries · released Nov 2025

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…

MITpure Python · 3.8+aging
172.1Mdownloads / mo
cloudpickle Worth it
PyPI · Scientific/Engineering · released Nov 2025

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.

BSD-3-Clausepure Python · 3.8+
148.4Mdownloads / mo
smart-open Worth it
PyPI · Distributed Computing · released Jul 2026

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.

MITpure Python
72.8Mdownloads / mo
portalocker Worth it
PyPI · Libraries · released Aug 2026

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.

BSD-3-Clausepure Python · 3.10+
65.1Mdownloads / mo
ray Worth it
PyPI · Distributed Computing · released Aug 2026

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.

permissive licensecompiled wheel · 3.10+
63.3Mdownloads / mo

See also k8s-agent-sandbox · kopf · openshift · portforward · pykube-ng · kubernetes-asyncio · duplocloud-client · kubernetes-typed · kubernetes · openshift-client