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
=============================================
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 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
* 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.
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 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
* 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.
Project details
Release history Release notifications | RSS feed
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.2.0.tar.gz
(287.9 kB
view hashes)
Built Distribution
Close
Hashes for python_k8sclient-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a02008d92697fc372f245079a39eba49fb58e6825abdcb39ac1ce2995d0b681 |
|
MD5 | ed411a4d6c1b1fa7bf226abeda6baf98 |
|
BLAKE2b-256 | e58d9e16bad9c7f86f2aab472c5d659e41aa8c429852ec7554e0c0f101bf4704 |