Skip to main content

Helm Python

This is a Helm 3 wrapper in python. Use it for your Iac scripts.

use

  1. add helm_python in your requirements.txt
  2. import Helm class
import Helm
  1. init Helm class
helm = Helm()

optionnal:

  • debug : if True, only display command (default: False)

This init function check if Helm is installed in PATH and if Helm version is 3 or higher

helm upgrade

helm.upgrade(
    name="my-nginx", 
    path="stable/nginx"
)

is equivalent to :

helm upgrade -i my-nginx stable/nginx

where :

  • "name" is the name of helm installation
  • "path" is the Helm package localisation (for examples: "stable/prometheus-operator" or "../myfolder/mychart")

Optionnal :

  • namespace: namespace for installation
  • value_file_path: path to your values.yaml
  • sets (array) : list of overwrite values
  • wait : False if Helm dosn't have to wait the running status (default: True)

example for sets use :

tst_set = [
    {
        'name': 'image.tag',
        'value': '2.0.0'
    },
    {
        'name': 'grafana."grafana\.ini"."auth\.google"',
        'value': 'SECRET'
    },
    {
        'name': 'alertmanager.config.receivers[0].slack_configs[0].api_url',
        'value': 'ANOTHER_SECRET'
    }
]

develop

github

You can clone project on Github : github.com/slavayssiere/helm_python

prerequisite

please install :

sudo python -m pip install --upgrade pip setuptools wheel
sudo python -m pip install tqdm
sudo python -m pip install --user --upgrade twine

to deploy to PyPi:

python setup.py bdist_wheel
python -m twine upload dist/* Helm.py

Metadata

Release files for helm-python 0.1.3

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

Built distribution (wheel)

Table of built distributions (wheels) for helm-python 0.1.3
File Interpreter ABI Platform Actions
helm_python-0.1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for helm_python-0.1.3-py2.py3-none-any.whl

Release files / helm_python-0.1.3-py2.py3-none-any.whl

Download URL helm_python-0.1.3-py2.py3-none-any.whl
Size 3.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
82c679f8dbe287b75a17097ba2ea3f9f0124b9d7309bd2dcca736f5aa8d63107
BLAKE2b-256 checksum
How to use checksums
9104a55fe58dbceaa16fbc07ab87152ba0416e16906040c16183c2ac7b40ba46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3

Security for helm-python 0.1.3

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