渲染Jinja2模板的工具
inetsix-config-builder的Python项目详细描述
配置生成器
提供python脚本以基于以下内容呈现模板:
- python 2.7和3.x
- Jinja2
- 山药
安装
脚本可以与pip一起安装:
$ pip install inetsix-config-builder
对于最新版本(dev)
$ pip install git+https://github.com/titom73/inetsix-config-builder
使用量
用法如下:
$ inetsix-config-builder -h tgrimonet@tgrimonet usage: inetsix-config-builder [-h][-y YAML][-t TEMPLATE][-b BASE][-o OUTPUT][-of OUTPUT_FORMAT] Configuration Builder optional arguments: -h, --help show this help message and exit -y YAML, --yaml YAML Provides YAML file to fill Jinja2 template, default=dict.yml -t TEMPLATE, --template TEMPLATE template file, default=./template.j2 -b BASE, --base BASE Base to construct filename, default=generated-conf- -o OUTPUT, --output OUTPUT Directory to store configuration, default . -of OUTPUT_FORMAT, --output_format OUTPUT_FORMAT File extension, default: .conf