Skip to main content

Python wrapper for Kubernetes which matches the interface of Docker

Project description

kompatible

This package exposes a subset of the Kubernetes Python Client with an interface which matches that of the Docker SDK for Python.

Examples

First, checkout this project, and install dependencies: pip install -r requirements-dev.txt. Then, make sure you have installed and started Docker and Minikube

With those tools in place, the following lines will produce the same output, regardless of the underlying technology. Either import docker as sdk or import kompatible as sdk and then

>>> client = sdk.from_env()
>>> client.containers.run("alpine", "echo hello world")
b'hello world\n'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kompatible, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size kompatible-0.0.1-py2.py3-none-any.whl (3.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size kompatible-0.0.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page