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.



Metadata

Release files for python-k8sclient 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-k8sclient 0.4.0
File Size Uploaded Provenance
python-k8sclient-0.4.0.tar.gz 288.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for python-k8sclient 0.4.0
File Interpreter ABI Platform
python_k8sclient-0.4.0-py2-none-any.whl Python 2 none any Details

Total release size: 914.6 kB

Release files / python-k8sclient-0.4.0.tar.gz

Download URL python-k8sclient-0.4.0.tar.gz
Size 288.4 kB
Tags Source
SHA-256 checksum
How to use checksums
114700e0255a5437ecd242e4a66e9aee415912b6ebc4481b0cf5b8fe880cec9d
BLAKE2b-256 checksum
How to use checksums
f1e36d8b46575ae79138d45d092394a2e04ba75f43d4a36b483d652cd0106999
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_k8sclient-0.4.0-py2-none-any.whl

Download URL python_k8sclient-0.4.0-py2-none-any.whl
Size 626.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
d8a70ecc7af04f3622056b3b432dcfb402cd6a33d791e7491b113a0b8e453f44
BLAKE2b-256 checksum
How to use checksums
a52fb66627fd2130360dbdf5e67505771bea354e9de083fdb071807f21ba0685
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-k8sclient 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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