A quick and dirty script to convert a Word (docx) document to html.
Project description
🌟 Convert a Word Doc to html
🚀 Quick Start with uvx
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.
💾 Installation
To install with uv:
uv tool install word2html
Or with pip:
pip install word2html
Then run:
word2html /path/to/MyGloriousDoc.docx
🧪 Note on tests & versions
- This project has NO TESTS! (feel free to add some of you think it should).
- This project requires Python 3.12 or greater
📝 Note on Licenses
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.
⭐ Star History
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. 🤩
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file word2html-0.4.0.tar.gz.
File metadata
- Download URL: word2html-0.4.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e3e3837ff32234eb6a467b387b9a0cfb4cf6250c010b8632b54aaaaafc76ea3
|
|
| MD5 |
1afb57faabf992a394f8691ac68ff0a1
|
|
| BLAKE2b-256 |
704fc47dfd2a9f2f72ff4ebdf3f392286ffc4302323d4a0939ffbf4af3dd164a
|
File details
Details for the file word2html-0.4.0-py3-none-any.whl.
File metadata
- Download URL: word2html-0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfcf2e73d552b7244d7192355b0b7fde99b300a21c33d09f832160e3438ceaeb
|
|
| MD5 |
1cb6b7e7c0bef53ccf3aa705ff55ed92
|
|
| BLAKE2b-256 |
19f77013fccd62e9265456ec10c024747d8703d486dd7be63eee757b3ac390e5
|