ebuildy / tampis

A simple data + template mixer in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tampis

Convert data + template to string. data is coming from a HOCON file, template from Jinja format. My usecase is to build Helm values file from template and env'able config.

Naming

tampis from french word tant pis + template

Usage

Print full configuration

./tampis ./components/conso/config/dev.conf

Usefull to understand file includes, merges etc...

NEW option => "--config-path"

Allow to select a sub configuration tree

./tampis --config-path=elasticsearch.ingress.certif ./components/conso/config/dev.conf 

Templatize

./tampis ./components/conso/config/dev.conf ./components/conso/values-template.yaml > ./components/conso/values.yaml

HOCON spec

https://github.com/lightbend/config/blob/master/HOCON.md

About

A simple data + template mixer in Python

License:Apache License 2.0


Languages

Language:Python 100.0%