一个简单的python报表生成库
repgen的Python项目详细描述
标题:repgen:一个简单的python报表生成库 作者:Libor Wagner libor.wagner@cvut.cz 日期:2018-11-22
repgen:一个简单的python报表生成库
安装
要求:
可选,需要运行示例:
使用pip取消调用:
$ pip install https://github.com/liborw/repgen.git
用法
- 下面的例子将在大约750万年后给出最终答案,同时也展示了这个库的简单用法。
importtimefromrepgenimportgenerate"""!What is the answer to life the universe and everything? {{ the_answer }}"""time.sleep(7.5e+6*3.154e+7)data=dict()data['the_answer']=7*6print(generate(data=data))
- 有关更多示例,请参见examples目录。