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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?