Skip to main content

Kubernetes Python API

This repository contains a simple Kubernetes Python API (Kube API). This API is built using the Official Python client library (Official API) for kubernetes

Loading the Configurations

A configuration file is required for calling the APIs. There are two ways for loading configurations:

  1. Set the "KUBERNETES_CONFIG" environment variable to the path of the configuration file. The configurations will be loaded automatically.
  2. Explicitly call config.load_configuration(config_file_path).

Handling Exceptions

The official API raises exceptions when there is an error. Kube API will catch the ApiException and return an error message instead. This is implemented by wrapping the function calls to the official API using the api_request() function in utils.py.

When there is an error calling the official API, Kube API will return a JSON response containing the body of the ApiException (which is a dictionary-like object), plus three (3) additional fields:

  • status, the status returned in the ApiException
  • error, the reason of the error
  • headers, the header of the ApiException

Metadata

Release files for kube-api 0.1.65

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

Source distribution (sdist)

Source distribution for kube-api 0.1.65
File Size Uploaded Provenance
kube_api-0.1.65.tar.gz 14.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kube-api 0.1.65
File Interpreter ABI Platform
kube_api-0.1.65-py3-none-any.whl Python 3 none any Details

Total release size: 30.3 kB

Release files / kube_api-0.1.65.tar.gz

Download URL kube_api-0.1.65.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a11a7c4984509d8c841f08c1920bb0a1a42b0954b406f1ec0c0aea6eaa65a81a
BLAKE2b-256 checksum
How to use checksums
823bc4dcd7303976ef0937441379a70990ef0316fa7112a049dbf8bc6bce4f20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / kube_api-0.1.65-py3-none-any.whl

Download URL kube_api-0.1.65-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be5aad51b1a06d859eddd4e71301a7c14e7e866ca728e6482bcdcbdf4498c731
BLAKE2b-256 checksum
How to use checksums
4a83f5b09ef68dc680d4780ca8cc27836c37dfbf67f39846de3fc0ec51c609e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for kube-api 0.1.65

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