方便从pyratemp模板和json或yaml var文件呈现文本文件

ptrender的Python项目详细描述


方便从pyratemp模板和json或yaml var文件呈现文本文件

有关模板语法,请参见pyratemp。在

P渲染器

ptrender 0.0.3

Use json or yaml var_files to render template_file to an adjacent
file with the same name but the extension stripped

Usage:
    ptrender [SWITCHES] template_file var_files...

Meta-switches:
    -h, --help         Prints this help message and quits
    --help-all         Prints help messages of all sub-commands and quits
    -v, --version      Prints the program's version and quits

Switches:
    -f, --force        Overwrite any existing destination file

vwrite公司

^{pr2}$

安装

pip install ptrender

对于yaml支持:

pip install 'ptrender[yaml]'

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
CentOS上的java Spring Boot简易应用程序需要很长时间才能启动   java如何检查字符串值是否等于null?   收集器中的java映射值。分组方式()   java需要支持Azure AD B2C webapp集成   java如何加入线程以停止它?   java如何使用意图传递类的对象?   java如何在战争环境中发现CDI生产者?   多模块项目中java奇怪的编译器行为   java如何在web应用程序中管理密码?   java从http服务器、filehandler中删除冗余代码   java使用反射来获取泛型类的字段   java Spring MVC/Hibernate/MySQL 400错误请求错误   给定正整数a的java幂为3   在Java中将元素拆分为不同数量的列表?   java展开折叠窗格