Skip to main content

No project description provided

Project description

py-helm-gen

A python package written to allow developers to transform their docker-compose.yaml files into a helm chart. This library will enable users that are unfamiliar with helm and DevOps to handle their own cloud deployments to K8s clusters.

py-helm-gen will read from an existing docker-compose.yaml file and create it into a starter helm chart all within a few lines of code.

How to install

In your terminal run:

$ pip install pyhelmgen

How to use

py-helm-gen can be used to productionalize any Python app framework such as Django, FastAPI, or Flask.

Before using py-helm-gen, make sure you have created a docker-compose.yaml file and have tested running the application with it.

# import the class to migrate your 
from HelmFromComposer import HelmFromComposer

# initialize object of the HelmFromComposer class
compose_file = "docker-compose.yaml"  # path to your docker compose file to this file
app_name = "boaty" 
helm_generator = HelmFromComposer.HelmFromComposer(compose_file, app_name)

# create the helm chart from your object
helm_generator.create_helm_chart()

Options for the helm chart can be added at the initialization of the HelmFromComposer object as an argument. These include:

  1. compose_file (Required): The path to the docker-compose.yaml file
  2. app_name (Required): Release name
  3. description (Optional) (Default = A Helm chart for deploying the {{ .Release.Name }} web app): Description of the helm chart application
  4. replicas (Optional) (Default = 1):" Number of pod replicas
  5. version (Optional) (Default = 0.1.0: Chart version
  6. auto_sync (Optional) (Default = False): Enable true to rebuild your helm chart with every start of the application. Otherwise, HelmFromComposer will check for the helm file and only run when one does not exist.

Contact

If you want to make any contributions to the library please open a pull request on the GitHub repo. If you have any questions please email nick.caravias@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhelmgen-1.3.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyhelmgen-1.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pyhelmgen-1.3.tar.gz.

File metadata

  • Download URL: pyhelmgen-1.3.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for pyhelmgen-1.3.tar.gz
Algorithm Hash digest
SHA256 b52a31e83ad86b15c7657337b291647acff5204e4b179b1f1123a2b3ab311f9d
MD5 ad81bd616fe60eb51389b44fdc775153
BLAKE2b-256 6a69bdad63187d27e20cf160f23e829352dcc1e9a1d83771563af5be0135e86e

See more details on using hashes here.

File details

Details for the file pyhelmgen-1.3-py3-none-any.whl.

File metadata

  • Download URL: pyhelmgen-1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.6

File hashes

Hashes for pyhelmgen-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 66498708cda4004e3440f4539718a6748c0ebf883549383352885c66e1bbcd74
MD5 1be77ca3ed1b0b251964157f6c21ef89
BLAKE2b-256 293e649c9ee1783354bacfe05ed5c0befb1fe1bc2762d465f7f5d49df7d71658

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page