openshift
OpenShift python client
Decision gist · record as of 2026-08-14
Yes, but with caution. The package is suitable for existing OpenShift/Kubernetes Python automation projects and provides a clean dynamic API that avoids code generation. However, the project is abandoned—no updates since 2023-07-25—so verify compatibility with your target Kubernetes and OpenShift versions before adopting it in new projects. For actively maintained alternatives, check the kubernetes client directly or newer OpenShift-specific libraries.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid Kubernetes configuration file (typically ~/.kube/config) or explicit cluster credentials to authenticate and connect to a Kubernetes or OpenShift cluster.
- Low install friction with three runtime dependencies.
- However, maintenance status is abandoned—the last release was 2023-07-25, and the repository shows no recent activity despite being unarchived.
License · maintenance · safety
Apache License Version 2.0 (permissive) — Licensed under Apache License Version 2.0, a permissive open-source license. You may use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license and state significant changes.
last release 2023-07-25 (1116 days) · last repo commit 2023-07-25 · 225 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 528,536 downloads/mo, #6,165 on PyPI
Alternatives
Verify before relying
pip install openshift
from kubernetes import client, config
from openshift.dynamic import DynamicClient
k8s_client = config.new_client_from_config()
dyn_client = DynamicClient(k8s_client)
v1_services = dyn_client.resources.get(api_version='v1', kind='Service')
service_list = v1_services.get(namespace='default')- Compatibility with current Kubernetes and OpenShift API versions beyond 2023-07-25
- Whether the dynamic client approach fully replaces the deprecated swagger-generated models
- Support status for Python versions beyond 3.5 given the Alpha development status classifier
What it is and what it does
The openshift package is a Python client for the Kubernetes and OpenShift REST APIs. It wraps the kubernetes client and provides a dynamic resource model that lets you interact with any Kubernetes or OpenShift resource—built-in types like Services and Routes, as well as custom resources defined via Custom Resource Definitions—without needing resource-specific generated code. The library depends on kubernetes, python-string-utils, and six.
You instantiate a DynamicClient from a Kubernetes API client, then call `resources.get()` to retrieve a resource type by API version and kind, and use standard methods like `get()`, `create()`, `delete()`, `patch()`, `replace()`, and `watch()` to interact with instances. The package includes helper utilities for authentication, such as username/password login to OpenShift clusters. Because the project is abandoned and has not been updated since 2023-07-25, compatibility with recent Kubernetes or OpenShift releases is uncertain.
Use it for
- Automate OpenShift cluster operations—create, list, and delete projects, services, and routes programmatically
- Manage custom resources and Custom Resource Definitions in Kubernetes clusters without writing resource-specific client code
- Build Python-based deployment or orchestration tools that work with multiple Kubernetes API versions and custom resource types
- Authenticate to OpenShift clusters using username and password credentials and retrieve API tokens
- Write integration tests or monitoring scripts that query and manipulate Kubernetes resources generically
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with caution.
The package is suitable for existing OpenShift/Kubernetes Python automation projects and provides a clean dynamic API that avoids code generation. However, the project is abandoned—no updates since 2023-07-25—so verify compatibility with your target Kubernetes and OpenShift versions before adopting it in new projects. For actively maintained alternatives, check the kubernetes client directly or newer OpenShift-specific libraries.
Install
openshift on PyPI
Before you install
Low install friction with three runtime dependencies. However, maintenance status is abandoned—the last release was 2023-07-25, and the repository shows no recent activity despite being unarchived. New projects should verify compatibility with current Kubernetes and OpenShift versions.
Requires a valid Kubernetes configuration file (typically ~/.kube/config) or explicit cluster credentials to authenticate and connect to a Kubernetes or OpenShift cluster.
License in practice
Licensed under Apache License Version 2.0, a permissive open-source license. You may use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license and state significant changes.
Quickstart
pip install openshift
from kubernetes import client, config
from openshift.dynamic import DynamicClient
k8s_client = config.new_client_from_config()
dyn_client = DynamicClient(k8s_client)
v1_services = dyn_client.resources.get(api_version='v1', kind='Service')
service_list = v1_services.get(namespace='default')
Verify before relying
- Compatibility with current Kubernetes and OpenShift API versions beyond 2023-07-25
- Whether the dynamic client approach fully replaces the deprecated swagger-generated models
- Support status for Python versions beyond 3.5 given the Alpha development status classifier
Package facts
| License | Apache License Version 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packageskubernetespython-string-utilssix |
| Maintenance | Abandoned 1,116 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 528,536 / month, #6,165 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Topic :: Utilities |
Evidence: openshift-0.13.2-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 › “openshift python client”
- openshiftPython client library for interacting with Kubernetes and OpenShift…
- assisted-service-clientA Python client library for the OpenShift Assisted Service API,…
- azure-mgmt-redhatopenshiftProvides Python bindings to manage Red Hat OpenShift clusters running…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also kr8s · openshift-client · redfish · kubernetes-asyncio · kubernetes-typed · k8s-agent-sandbox · pykube-ng · pulumi-kubernetes · azure-mgmt-redhatopenshift · assisted-service-client