Automation Helper for K8 (Kubernetes)
Project description
K9
What is K9? It is a helper library to simplify the automation of Kubernetes.
Tested with:
kubernetes v10.0.1
Getting Started
Installing the library:
pip install -i https://test.pypi.org/simple/ k9==0.0.6
Here is a quick test, test.py
import pprint
pp = pprint.PrettyPrinter(indent=2)
pp.pprint(helper.list_namespaces())
Run it by:
python3 test.py
API Definition
Utility Functions
def last_word(value: str)
This function returns the last word separated by a forward slash. This is helpful when parsing out object names in strings delimited by forward slashes. For example:
pod = last_word("pods/my-pod")
# The value of pod is: my-pod
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
k9-0.0.8.tar.gz
(15.4 kB
view hashes)
Built Distribution
k9-0.0.8-py3-none-any.whl
(11.5 kB
view hashes)