An open source project inspired from python-docx in which more functionalities are added like advance replace and many more.
pip3 install pyadvdocx
from pyadvdocx import text,Document
doc=Document("Example.docx")
text.replace(doc,$name="John Doe")
doc.save("Master work.docx")
Project license - MIT
Anyone is free to contribute and pull request/fork this project.
cd ./test
pip3 install pyadvdocx
python3 test_text.py
# Look in data dir for *_done.docx files