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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kompatible-0.0.1.tar.gz
.
File metadata
- Download URL: kompatible-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e14054f7f497c981e037335a0640bca869e13daa6639787484d28f5ba48e6f9c |
|
MD5 | 346a01a0a1dafccb70875d2aaf5f920e |
|
BLAKE2b-256 | db79697693a9b0fbdf81a44b8a37f60cab516bc6ba3937c2e78eeec283e86c98 |
File details
Details for the file kompatible-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: kompatible-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7444600d3e3cc51931eeee04ae3b3b5f25a4165f54ff8488c54123bf5d73e310 |
|
MD5 | 586095ee057d6ad09787558763dc6286 |
|
BLAKE2b-256 | 7ba227f51d1575a0af5c5817151c1a9b29ecc4fa7affe6443c764ce1a3e19043 |