The easiest way to run word2html without installing is using uvx:
uvx word2html /path/to/MyGloriousDoc.docx
This will give you a new file, /path/to/MyGloriousDoc.html, that's (hopefully)
decent-looking html.
To install with uv:
uv tool install word2html
Or with pip:
pip install word2html
Then run:
word2html /path/to/MyGloriousDoc.docx
- This project has NO TESTS! (feel free to add some of you think it should).
- This project requires Python 3.12 or greater
While this code is MIT-licensed, it uses boty pypandoc and pytidylib, both of which depend on other software that may not be MIT-licensed and must be installed for this to work.
- pytidylib is available under the MIT license, and Tidy is available under an MIT-like license
- pypandoc is available under the MIT license, while Pandoc is released under the GPL.
This project really started out as a joke -- although this is something I've done too many times. I'm always amazed at how many people have starred this repo. 🤩