Skip to main content

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.

Project description

python-k8sclient - Kubernetes API client code
=============================================

.. image:: https://img.shields.io/pypi/v/python-k8sclient.svg
:target: https://pypi.python.org/pypi/oslo.messaging/
:alt: Latest Version

.. image:: https://img.shields.io/pypi/dm/python-k8sclient.svg
:target: https://pypi.python.org/pypi/oslo.messaging/
:alt: Downloads

This python library can be used to invoke Kubernetes API. This code was
generated by swagger-codegen. Kubernetes provide swagger-spec to generate
client code for different versions. The specs live in the Kubernetes
repository.

* 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 Magnum repo::

git clone https://github.com/openstack/python-k8sclient.git

* 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

* 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.

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

python-k8sclient-0.1.0.tar.gz (99.3 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.1.0-py2-none-any.whl (222.4 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for python-k8sclient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88613894dbda82d4f59f1c9f0fd18bd42340c53cf2025acbc98e1e128dd5a2fd
MD5 94c680052ce99c1e4d85aad53201ff5e
BLAKE2b-256 782583d00b82ebc44d65b7d34c4b342e3b66f7acf4bbc0cf2796b02b4647663d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_k8sclient-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 0de2b37ecdd1277dd43812198217e9faac3d1583e8ce93e11249997c60605ec9
MD5 c08c813d55c504c8a66873ef7ed7ded7
BLAKE2b-256 ec38d2594be6b4e1e4a729425dc9fc540b30dcba5f75ca0c9bcdb4be67224757

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page