Skip to main content

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


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.7.tar.gz (14.8 kB view hashes)

Uploaded Source

Built Distribution

k9-0.0.7-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page