Hikaru allows you to smoothly move between Kubernetes YAML, Python objects, and Python source, in any direction
Project description
Version 1.1.0
Try it: see Hikaru convert your K8s YAML
Full documentation at Read the Docs
Hikaru is a collection of tools that allow you to work with Kubernetes resources from within Python in a variety of ways:
Hikaru provides type-annotated classes that model all of the Kubernetes resources in Python and supports CRUD operations on those classes to manage their lifecycle in your Kubernetes cluster.
Hikaru also provides tooling to shift formats for these objects, allowing you to turn K8s YAML into Python objects, JSON, or Python dicts, and vice-versa. It can also generate Python source code for K8s objects loaded from non-Python sources.
Hikaru also supports a number of features that aid in the management of your objects such as searching for specific fields or diffing two instances of a K8s resource.
Hikaru includes support for creating ‘watches’ on your objects, providing a means to monitor events on your provisioned K8s resources.
Hikaru provides support for creation of CRDs which support all the above features such as CRUD operations and watches.
Finally, Hikaru includes a facility to specify a collection of resources as an ‘application’, similar in spirit to a Helm chart, and provides the same CRUD, watch, and management capabilities on the entire application as it does on single resource objects (full format shifting support to come).
This package provides model classes to create resources through the Kubernetes Python client version 28.x. It depends on the hikaru-core package which will be installed automatically when this packages is installed. This package will work with any version of the Kubernetes Python client >= 28.x; if you need to constrain which release is installed then you should establish your own requirement limits on the Kubernetes Python client package.
About
Hikaru is Mr. Sulu’s first name, a famed fictional helmsman.
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 Distributions
Built Distribution
File details
Details for the file hikaru_model_28-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: hikaru_model_28-1.1.0-py3-none-any.whl
- Upload date:
- Size: 618.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3114d48801859cd880438266791e43210acbfe7b221ea8079482498f245aad4 |
|
MD5 | 893733390a0071bd24be2fa4ae495695 |
|
BLAKE2b-256 | 696eaeb67fdab945a2b015980e78b635b620fb1cf95658db484230dcf7cf2e8c |