kubecfg
Python library and cli utility to check k8s client configurations
Show configuration
Test connectivity
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)
| File | Size | Uploaded | |
|---|---|---|---|
| kubecfg-0.0.4.tar.gz | 38.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|