Metadata-Version: 2.1
Name: kube_api
Version: 0.1.50
Summary: A simple Kubernetes Python API
Home-page: https://github.com/labdave/kube_api
Author: Qiu Qin
Author-email: qiuosier@gmail.com
License: UNKNOWN
Description: # Kubernetes Python API
        This repository contains a simple Kubernetes Python API (Kube API). This API is built using the [Official Python client library](https://github.com/kubernetes-client/python) (Official API) for [kubernetes](http://kubernetes.io/)
        
        ## Loading the Configurations
        A configuration file is required for calling the APIs. There are two ways for loading configurations:
        1. Set the "KUBERNETES_CONFIG" environment variable to the path of the configuration file. The configurations will be loaded automatically.
        2. Explicitly call `config.load_configuration(config_file_path)`.
        
        ## Handling Exceptions
        The official API raises exceptions when there is an error. Kube API will catch the ApiException and return an error message instead. This is implemented by wrapping the function calls to the official API using the `api_request()` function in `utils.py`.
        
        When there is an error calling the official API, Kube API will return a JSON response containing the body of the ApiException (which is a dictionary-like object), plus three (3) additional fields:
        * status, the status returned in the ApiException
        * error, the reason of the error
        * headers, the header of the ApiException
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
