filmov
tv
Python code to dynamically create Word documents based on 1 template file | how to use 'docxtpl'

Показать описание
#Automation #Python #CSV #DOCX
Automating repetitive tasks is one of my favourite (work) things to do.
Boss: "Hello, we need you to upgrade 100 routers, you'll need to do a change for each one"
Me : *Hmmmm (100 word documents, with only 3 or 4 things different in each one). I'll pretend to do them all manually, and then automate the f*** out of it.
So this video is here for you all to enjoy, and copy if you like. It's work in progress, let me know how to improve it, I'm thinking I'll add a random time interval between the creation of each file, and also read the source data from a csv with 100 router names and ip addresses in.
use : pip3 install docxtpl and create a template file, where the {{stuff}} stuff in between the braces is your variable. Easier to see from video really.
--------------------------------------------------------------------
If you need a good proxy, I can recommend this one 👍👍👍
Coupon Code: DRPI10
-------------------------------------------------------------------
#word #python #docx #automation
Check out the Minimalist online python IDE :
Automating repetitive tasks is one of my favourite (work) things to do.
Boss: "Hello, we need you to upgrade 100 routers, you'll need to do a change for each one"
Me : *Hmmmm (100 word documents, with only 3 or 4 things different in each one). I'll pretend to do them all manually, and then automate the f*** out of it.
So this video is here for you all to enjoy, and copy if you like. It's work in progress, let me know how to improve it, I'm thinking I'll add a random time interval between the creation of each file, and also read the source data from a csv with 100 router names and ip addresses in.
use : pip3 install docxtpl and create a template file, where the {{stuff}} stuff in between the braces is your variable. Easier to see from video really.
--------------------------------------------------------------------
If you need a good proxy, I can recommend this one 👍👍👍
Coupon Code: DRPI10
-------------------------------------------------------------------
#word #python #docx #automation
Check out the Minimalist online python IDE :
Комментарии