Skip to main content

A python module to interact with kubernetes REST API.

Project description

Easy-Kubernetes

This module has purpose to create easy and fast ways to communicate with the API from kubernetes, allowing the developer to create and manage their own data with their own way. Python is a great language and very well used for DevOps Automantions. With it, creating a kubernetes module will easy many steps and automantions allowing a better infrastructure automation or management with great performance. This version requires Python 3 or later; a Python 2 version is not available… yet.

Features

  • Handle kubernetes through your python script.

  • Free to manage the data from kubernetes API on your own way.

  • There’s functions to manage it too, if you don’t like the previous ideia.

  • Simplify most of the kubernetes client functions to simple and unique interactions.

  • Simple code, simple functions, simple management. Keep simple!

Installation

To install easy-kubernetes from PYPI:

$ pip install easy-kubernetes

To install easy-kubernetes manually (please download the source code from either PYPI or Github first):

$ python setup.py install

Usage

To use easy-kubernetes, just import this module with:

$ from kubernetes import kubernetes

Then, create a instance of the class with the functionality you desire:

# Cria instancia com dados de acesso ao clusterK8s $ k8s_config = kubernetes.config(url=<k8s_master_url>, token=<serviceaccount_token>)

# Cria instancia para funcionalidades prontas do k8s $ k8s_tools = kubernetes.tools()

# Cria instancia com chamadas para REST API $ k8s = kubernetes.core(configuration=k8s_config)

After this, you will be able to use and explore all functionalities.

Enjoy!

Citing

Please cite the following paper if you use easy-kubernetes in a published work:

Gustavo Toledo, Tiago Albuquerque. “Easy-Kubernetes: Improving kubernetes auto-management through Python 3”, 2018

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

easy-kubernetes-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

easy_kubernetes-0.1.0-py3.7.egg (8.8 kB view details)

Uploaded Source

File details

Details for the file easy-kubernetes-0.1.0.tar.gz.

File metadata

  • Download URL: easy-kubernetes-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

File hashes

Hashes for easy-kubernetes-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b31cdbc913512da37364225d48eaa1931d43afeec7d06d1f39172e33a4b32d58
MD5 eda01caca7dc2d7d611eee7f38251a64
BLAKE2b-256 39e27e1f10a5db7d452d05b316e5ac225ce00b19b6b40c37f6f03531cfb9e571

See more details on using hashes here.

File details

Details for the file easy_kubernetes-0.1.0-py3.7.egg.

File metadata

  • Download URL: easy_kubernetes-0.1.0-py3.7.egg
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

File hashes

Hashes for easy_kubernetes-0.1.0-py3.7.egg
Algorithm Hash digest
SHA256 d0b735614d90a0daea20eb6d536db94875eb9199250404767c252b28ed3fc8ea
MD5 87074ad0ce808ce6b3e6425aff0bc547
BLAKE2b-256 e0b90f068dd0f7756da7360be5c6700563a41db0cbe0c082aabc947797b63bd7

See more details on using hashes here.

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