Skip to main content

Python client library for Kubernetes

Project description

======
pykube
======

*Python client for Kubernetes*

.. image:: https://img.shields.io/pypi/dm/pykube.svg
:target: https://pypi-hypernode.com/pypi/pykube/

.. image:: https://img.shields.io/pypi/v/pykube.svg
:target: https://pypi-hypernode.com/pypi/pykube/

.. image:: https://img.shields.io/badge/license-apache-blue.svg
:target: https://pypi-hypernode.com/pypi/pykube/


Client library written in Python to interface to Kubernetes.

Features
========

* HTTP interface using requests using kubeconfig for authentication

Requirements
============

* Python 2.7 or 3.4
* requests (included in ``install_requires``)
* PyYAML (included in ``install_requires``)

Example
=======

Given a kubeconfig at `/etc/kubectl-config/kubeconfig`:

kind: Config
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: "..."
server: https://127.0.0.1
name: cluster1
users:
- name: user1
user:
client-certificate-data: "..."
client-key-data: "..."
token: "..."
contexts:
- context:
cluster: cluster1
user: user1
name: context1

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

pykube-0.3.0.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file pykube-0.3.0.tar.gz.

File metadata

  • Download URL: pykube-0.3.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pykube-0.3.0.tar.gz
Algorithm Hash digest
SHA256 355125281ed0059e2a1b9de54af9fbf04496b35302bdaf4d380feba2a4e5805d
MD5 f0a328748c5f5b3d7d75e08cd9295f66
BLAKE2b-256 0e3833ced1624e10685a7a4ced873d09d84d9036945a0b81ebb76cd02accb7f3

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