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.4.tar.gz (9.5 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.4-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhelmgen-1.4.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.14

File hashes

Hashes for pyhelmgen-1.4.tar.gz
Algorithm Hash digest
SHA256 ecc6e8ac46f5a9f448c9c582865cd4b0a17f2223299b17b1125dc223638027f6
MD5 6f74e1424fcb5f2ac6ee5675372be212
BLAKE2b-256 ace46afac6156e339240268aab94e68efd036c03de997b5ef798eda392e9fd93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhelmgen-1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.14

File hashes

Hashes for pyhelmgen-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 de797e04b7a0aaa36d1e1f70fd297f307de60cb06138e566a0b1e549b3df49ba
MD5 9a2d937aaad6b489c8a25f99e025107f
BLAKE2b-256 bb613b8708083116d23371ed21f753dceb052e7742b2e75d1dd2d9e03fc44e53

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