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.4.0.tar.gz (2.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pykube-0.4.0.tar.gz
Algorithm Hash digest
SHA256 634abfd011b2bcd84ae868a8b3393b0c487d729db99a2564d39049bcce1b4e37
MD5 f82f9c613b8fc35e66772ccffdde1dc3
BLAKE2b-256 ff786f3d610353fcc493431691430c205d1e79254f4b8ed2fc13883ff9b55fbc

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