Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elapouya/python-docx-template
Use a docx as a jinja2 template
https://github.com/elapouya/python-docx-template
Last synced: about 2 months ago
JSON representation
Use a docx as a jinja2 template
- Host: GitHub
- URL: https://github.com/elapouya/python-docx-template
- Owner: elapouya
- License: lgpl-2.1
- Created: 2015-03-12T12:52:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T13:21:38.000Z (3 months ago)
- Last Synced: 2024-04-25T10:42:08.143Z (about 2 months ago)
- Language: Python
- Size: 4.65 MB
- Stars: 1,858
- Watchers: 54
- Forks: 364
- Open Issues: 114
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.txt
Lists
- awesome-python - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python-cn - docxtpl
- python-awesome-case1 - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- fucking-awesome-python - :octocat: docxtpl - :star: 1610 :fork_and_knife: 346 - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python-master - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-stars - elapouya/python-docx-template - Use a docx as a jinja2 template (Python)
- awesome-python - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python-clone - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- fucking-awesome-python - :octocat: docxtpl - :star: 859 :fork_and_knife: 226 - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python-zh - docxtpl - 通过jinja2模板编辑docx文档 (特定格式处理)
- awesome-python - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python-cn - docxtpl
- awesome-python - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python-master - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- python-awesome - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-ccamel - elapouya/python-docx-template - Use a docx as a jinja2 template (Python)
- awesome-python - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python - docxtpl - Editing a docx document by jinja2 template (Specific Formats Processing)
- awesome-python-resources - GitHub - 17% open · ⏱️ 05.08.2022): (特殊文本格式处理)
- awesome-python - docxtpl - Use a docx as a jinja2 template ` 📝 2 months ago` (Specific Formats Processing [🔝](#readme))
README
====================
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 docxpython-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.
Documentation
-------------Please, `read the doc `_
Other projects
--------------If you like python-docx-template, please have a look at some of my other projects :
- `django-listing `_ : A listing/table library on steroid for Djano
- `python-textops3 `_ : Chainable text operations
- `django-robohash-svg `_ : Create svg robots avatars