Skip to main content
=============================================
python-k8sclient - Kubernetes API client code
=============================================

Overview
--------

This is Kubernetes API python client code. This code is generated by
swagger-codegen. Kubernetes provide swagger-spec to generate client code for
different versions. The specs live in Kubernetes repo.

* Free software: Apache license
* Documentation: http://docs.openstack.org/developer/python-k8sclient
* Source: http://git.openstack.org/cgit/openstack/python-k8sclient
* Bugs: http://bugs.launchpad.net/python-k8sclient

See also
--------

* swagger-codegen: https://github.com/swagger-api/swagger-codegen
* Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-spec

Prerequisites
-------------

You need to install required packages for swagger codegen. Please refer to
`<https://github.com/swagger-api/swagger-codegen#prerequisites>`_

Steps to generate API client code
---------------------------------

Steps to generate Kubernetes client code for v1:

* Clone the python-k8sclient repo::

git clone https://git.openstack.org/openstack/python-k8sclient

* Clone the swagger-codegen repo. It is recommended to checkout a release
(e.g. v2.1.3) instead of using the master branch::

git clone https://github.com/swagger-api/swagger-codegen.git
cd swagger-codegen/
git checkout tags/v2.1.3

* Build swagger-codegen::

mvn package

* Update the v1.json from latest Kubernetes release::

curl -o ./k8sclient/templates/v1.json https://raw.githubusercontent.com/kubernetes/kubernetes/v1.2.2/api/swagger-spec/v1.json

* Run below command to generate the API client code for Kubernetes::

cd ..
java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \
generate \
-i ./k8sclient/templates/v1.json \
-l python -o ./KubernetesClientCode

Now you can check the code at location ./KubernetesClientCode.



Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-k8sclient-0.4.0.tar.gz (288.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_k8sclient-0.4.0-py2-none-any.whl (626.2 kB view details)

Uploaded Python 2

File details

Details for the file python-k8sclient-0.4.0.tar.gz.

File metadata

File hashes

Hashes for python-k8sclient-0.4.0.tar.gz
Algorithm Hash digest
SHA256 114700e0255a5437ecd242e4a66e9aee415912b6ebc4481b0cf5b8fe880cec9d
MD5 c8afd934f9b084924ab8dfe5847261f2
BLAKE2b-256 f1e36d8b46575ae79138d45d092394a2e04ba75f43d4a36b483d652cd0106999

See more details on using hashes here.

File details

Details for the file python_k8sclient-0.4.0-py2-none-any.whl.

File metadata

File hashes

Hashes for python_k8sclient-0.4.0-py2-none-any.whl
Algorithm Hash digest
SHA256 d8a70ecc7af04f3622056b3b432dcfb402cd6a33d791e7491b113a0b8e453f44
MD5 bf1bacb6926ffe83eff3e780bbdf4458
BLAKE2b-256 a52fb66627fd2130360dbdf5e67505771bea354e9de083fdb071807f21ba0685

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page