Word DOCX From Template | Python

Аватар автора
Мастерство и Ум
Over a year ago I was asked to create 100+ almost identical word documents as "workplans" for my day job (They did not know I use Python to get things done). Writing multiple word documents and copy and pasting location, date, and contact details from a CSV was not what I had in mind. Although I was a senior network engineer my boss seemed to think I would enjoy this highly repetitive task. I said it would take days, in the end it took about an hour to write the code and 5 seconds to generate 150 word documents (DOCX). Automating the creation of these almost identical word documents was made possible with Python, docxtpl, and 1x word &- (which was essentially a word doc with curly braces around the bits that are unique within the document). ? If you want a fast VPS server with Python installed check out : ◼️◼️◼️ (note when I say template it is still : "DOCX" not "DOTX") ◼️◼️◼️ ------------------------------------------------------------------------------------------------------------ I never expected the original video to be so popular, so I have remade it, using Windows, with newer and hopefully clearer explanations, and a full csv source file. If you like this tutorial, or if it has saved you hours of your life please let me know as automating repetitive tasks with Python is very pleasing. It&the ultimate &when an employer expects you to sit there and do it manually! Seeing as I was rewriting it I thought I&do it for M$ Windows. ► If you use Mac, or Linux...

0/0


0/0

0/0

0/0