OpenShift Python Wrapper
A Python wrapper for the Kubernetes client with support for OpenShift and Container Virtualization. Standardize resource operations with a simple, intuitive interface.
Quick Start
Get up and running with OpenShift Python Wrapper in minutes
1
Install the package
Install using pip or uv:
2
Configure cluster access
Ensure you have a valid kubeconfig file with access to your cluster:The wrapper uses your existing Kubernetes configuration automatically.
3
Create your first resource
Create a Pod using the wrapper’s intuitive interface:
Expected output
Expected output
4
Execute commands in containers
The wrapper provides simplified access to pod operations:
Key Features
Everything you need to work with Kubernetes and OpenShift resources
Unified CRUD Interface
Standardized Create, Read, Update, and Delete operations for all resource types
Context Managers
Automatic resource lifecycle management with Python context managers
OpenShift Virtualization
First-class support for KubeVirt and Container Virtualization resources
Pod Operations
Execute commands, stream logs, and interact with containers easily
Class Generator
Auto-generate wrapper classes for any Kubernetes resource
Fake Client
Test your code without a real cluster using the fake Kubernetes client
Ready to get started?
Install the package and create your first resource in minutes
View Quickstart Guide