方便从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第三方库


热门话题
Java中硬件令牌的证书访问私钥   java SQLite数据库在何处不能正确使用?   java在编辑器中显示IntelliJidea中的编译错误   java将atributes放到X500 NameBuilder Bouncy Castle,生成PKCS10   java顺序ant条件不会停止   spring如何发送请求并上传带有java对象的文件,比如@RequestParam CommonsMultipartFile file、@RequestBody User userDetailsId?   java如何在Spring中根据配置创建多个相同类型的bean?   java我需要一个框架来使用依赖注入吗?   如何使用java在excel中插入换行符?   java从安卓文件加载数组   安卓 Dateformat不返回实时Java   java如何将基本int传递给AsyncTask?   java音频相似性库   Spark:OutOfMemoryError:Java堆空间   java My代码未按预期工作。十进制输出不是它应该的样子   财务Java编译器告诉我,我并没有启动变量“interest”或“pmt”