Sugar for Kubernetes
Project description
Development
Environment Setup
During development, use symlinks to include this package instead of pipenv:
cd /project/using/k8kat
ln -s $k8kat_path/k8kat
Building
https://packaging.python.org/tutorials/packaging-projects/
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
or
twine upload dist/*
Cluster Authentication
By default it works as kubectl - try to find kubeconfig and reads authentication data.
Playing Around
pipenv shell
run examples from examples/
:
python examples/list_pod.py
Test Suite
Run unit-tests (no cluster required):
python3 -m unittest discover -v k8kat/tests
Run e2e-test (you should be using an empty cluster):
python3 -m unittest discover -v k8kat/e2e-tests
Formating, typing
Use Black to formate code
black .
To run type checker
mypy k8kat examples/
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
Built Distribution
File details
Details for the file k8kat-0.1.2.tar.gz
.
File metadata
- Download URL: k8kat-0.1.2.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d189365dcfa6d15a65a2d5b8954baef5d9af178ec089693abb3989445f31ab92 |
|
MD5 | 172c738e3d23abef73bb0aa13008ab74 |
|
BLAKE2b-256 | 0e5c173a7aadd14f4f4e80bf8a2f30743ade674e40bd22360f91d6db93f8ea98 |
File details
Details for the file k8kat-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: k8kat-0.1.2-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1d32d1fa8c50ec2658c2bb8e937f064513f3b90c463c6f6a6ef6e84dfdbd1de |
|
MD5 | ca0084aa5f50399e6c8963b683fa725b |
|
BLAKE2b-256 | 737b581bc58b77d7aa35e7582d4883d861372f63491d2eabbfc8a584f64fcfde |