python-docx-template

Use a docx as a jinja2 template

  • 所有者: elapouya/python-docx-template
  • 平台:
  • 许可证: GNU Lesser General Public License v2.1
  • 分类:
  • 主题:
  • 喜欢:
    4
      比较:

Github星跟踪图

====================
python-docx-template

Use a docx as a jinja2 template

Introduction

This package uses 2 major packages :

  • python-docx for reading, writing and creating sub documents
  • jinja2 for managing tags inserted into the template docx

python-docx-template has been created because python-docx is powerful for creating documents but not for modifying them.

The idea is to begin to create an example of the document you want to generate with microsoft word, it can be as complex as you want :
pictures, index tables, footer, header, variables, anything you can do with word.
Then, as you are still editing the document with microsoft word, you insert jinja2-like tags directly in the document.
You save the document as a .docx file (xml format) : it will be your .docx template file.

Now you can use python-docx-template to generate as many word documents you want from this .docx template and context variables you will associate.

Share

If you like this project, please rate and share it here : http://rate.re/github/elapouya/python-docx-template

Documentation

Please, read the doc <http://docxtpl.readthedocs.org>_

主要指标

概览
名称与所有者elapouya/python-docx-template
主编程语言Python
编程语言Python (语言数: 1)
平台
许可证GNU Lesser General Public License v2.1
所有者活动
创建于2015-03-12 12:52:14
推送于2025-05-19 20:36:50
最后一次提交2025-05-06 16:22:18
发布数83
最新版本名称v0.20.0 (发布于 )
第一版名称0.1.4 (发布于 2015-03-27 09:04:14)
用户参与
星数2.2k
关注者数53
派生数406
提交数431
已启用问题?
问题数478
打开的问题数140
拉请求数86
打开的拉请求数2
关闭的拉请求数31
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?