Skip to main content

kubecfg

Python library and cli utility to check k8s client configurations

PyPi Code style: black

Show configuration Features

Test connectivity Ping

Install

pip install kubecfg

Run

kubecfg

Use the library

This example shows how to use the HTTPX to obtain the version of the API server.

import httpx
from kubecfg.config import KubeConfig

k8s_config = KubeConfig()
k8s_config.load_config()

server, cert, client_ca = k8s_config.get_auth_data()
r = httpx.get(f"{server}/version", cert=cert, verify=client_ca)
r.raise_for_status()
print(r.text)

Metadata

Release files for kubecfg 0.0.4

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

Source distribution (sdist)

Source distribution for kubecfg 0.0.4
File Size Uploaded
kubecfg-0.0.4.tar.gz 38.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kubecfg 0.0.4
File Interpreter ABI Platform
kubecfg-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 44.7 kB

Release files / kubecfg-0.0.4.tar.gz

Download URL kubecfg-0.0.4.tar.gz
Size 38.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b82b75d8ba710f34905b88c2f4c07c9d10db425b05b97b7aaf29b877414d3273
BLAKE2b-256 checksum
How to use checksums
bd3c29993695cb92018856607bda5b66a59b1fc71ab15518deb9eb0a4a7f4942
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / kubecfg-0.0.4-py3-none-any.whl

Download URL kubecfg-0.0.4-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee97137a76fa14ad57093418611540ebba28250eb871c92fad11fecdfd622ea4
BLAKE2b-256 checksum
How to use checksums
5ec4b91be34464b26ede8a3bb6673d47883828aaed93356772b52bb0d6fc50aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release 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