Skip to content

Create a new .docx file from a .docx template using python-docx-template library.

Notifications You must be signed in to change notification settings

dianakagawa/docx-from-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate .docx files using python-docx-template

Description

This script generates a .docx file using a .docx template.

For this project's purpose, I used two templates: one in case the .json file has all the data needed to fill the template, and another one in case the .json file doesn't. The template has placeholders in the form of {{ jinja2_sintax }}. These are replaced with data from a .json file.

Installation

Don't forget to create your virtual environment before installing the dependencies.

pip install docxtpl
# check the spanish locale you have installed
locale -a
# or generate a spanish locale
sudo locale-gen es_ES.UTF-8

About

Create a new .docx file from a .docx template using python-docx-template library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages