从django中的模板生成pdf、ms-word和excel文档。

templated_docs的Python项目详细描述


===
模板化文档图片::https://badge.fury.io/py/templated docs.svg
:目标:https://pypi.python.org/pypi/templated_docs

…图片::https://img.shields.io/travis/alexmorozov/templated docs.svg
:目标:https://travis ci.org/alexmorozov/templated docs

…图片::https://readthedocs.org/projects/templated-docs/badge/?version=latest
:目标:https://templated-docs.readthedocs.io/en/latest/?徽章=最新
:alt:文档状态

…图片::https://requires.io/github/alexmorozov/templated-docs/requirements.svg?branch=master
:目标:https://requires.io/github/alexmorozov/templated-docs/requirements?branch=master
:alt:dependencies



演示文稿等。


*免费软件:麻省理工学院许可证
*文档:https://templated docs.readthedocs.io.



Requirements
----

*python 2.7或3.4+
*django>;=1.8
*支持libreofficekit API的最新libreoffice版本(>;=4.3.0)。


include::docs/partial/libffi warning.rst

应该是这样的:

…图片::https://github.com/alexmorozov/templated docs/raw/master/docs/document template.png

代码块::python

from templated_docs import fill_template
from templated_docs.http导入文件响应例如

filename=fill_template('sample.odt',context,output_format='pdf')
visible_filename='greeting.pdf'


return fileresponse(filename,visible_filename)

导航到视图连接到的URL,您将看到一个呈现和转换的文档:

。图片::https://github.com/alexmorozov/templated docs/raw/master/docs/generated document.png

有关更多示例,请参见存储库中的“examples/”子文件夹。更多详细的文档可在https://templated docs.readthedocs.io.


credits
——


templated docs由“alex morozov”编写。

_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` audreyr/cookiecutter pypackage`:https://github.com/audreyr/cookiecutter pypackage
。_ pylokit:https://github.com/xrmx/pylokit
。_`亚历克斯·莫罗佐夫:http://morozov.ca

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

推荐PyPI第三方库


热门话题
java提高机器学习Rest服务性能   java反转字符的字符串顺序,并使用构造函数将其放入LinkedList   继承为什么Java不支持在方法签名中添加“throws”?   执行DDL alter table if exists任务时发生java错误。城市   java在eclipse中使用CREATETXT并打包在jar中   java AES256与3DES 256密钥检测   具有两个相同类型字段的java JPA实体   java Webapp日志记录设置被忽略   java KeyEventDispatcher可以在一个应用程序中工作,但不能在另一个应用程序中工作   带有Swing和OpenJDK的java PinchZoom   未涉及java AspectJ注释切入点(对于任何注释类型)   java如何在FuseBAI中获取日志文件详细信息   java在Linux上将wstring转换为jstring