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.2.tar.gz (7.7 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.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyhelmgen-1.2.tar.gz
Algorithm Hash digest
SHA256 6b1e724588f6c00e3e4f5c95c6742d0099d85cf61e5716f828dbb4f7d55dbea4
MD5 c753b4a4dcd95124120946a055357f86
BLAKE2b-256 f27153a7b0ffcb2bf3d983b9a2bb6ae333dc5fbc94813f1e0076cb98179b4fec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhelmgen-1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ddd650e77d94b3156c8635961685d7e54f46542bc98005a494f787caca41f1d
MD5 45b91b3e0b7453e9f65f0412bb6c99de
BLAKE2b-256 85dc9234d41d8e2ccc3efe2e1d7935af1a7347788de6ca69de322e4ca0d37b05

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