{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/19"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/9"}],"enrichment":{"capability":"Converts valid HTML to Microsoft Word (.docx) format, returning a BytesIO object that can be written to disk or processed further.","skillfed_tags":["document-generation","format-conversion"],"use_cases":["Export HTML reports or templates generated by a web application into Word documents for distribution or archival.","Convert email HTML content to .docx files for offline storage or sharing with non-technical users.","Generate Word documents programmatically from HTML templates in data processing or document generation pipelines.","Build a document conversion microservice that accepts HTML and returns downloadable .docx files.","Transform HTML documentation or help content into Word format for print or formal distribution."],"what_it_does":"html2docx is a Python library that transforms valid HTML documents into Microsoft Word (.docx) files. It takes HTML as input and returns a BytesIO object containing the Word document, which you can then write to disk or process further. The package wraps python-docx for document generation and tinycss2 for CSS parsing, handling the translation from web markup to Office Open XML format.\n\nThe library is straightforward to use: read or construct your HTML, pass it to the html2docx() function with optional metadata like a title, and get back a binary buffer ready to save. It is marked Production/Stable and supports Python 3.7 through 3.10, though maintenance has been dormant since early 2023. The main constraint is that your HTML must be valid; the package does not attempt to repair or work around malformed markup.","worth_installing":"Yes, if you need straightforward HTML-to-Word conversion and can work with valid HTML input. The low install friction, permissive MIT license, and Production/Stable status make it a reasonable choice. However, dormant maintenance (last release January 2023) means you should verify that it works with your specific HTML/CSS requirements and check for any compatibility issues with current versions of its dependencies before committing to production use."},"id":"html2docx","links":{"html":"https://skillfed.io/packages/html2docx","md":"https://skillfed.io/packages/html2docx.md","pypi":"https://pypi.org/project/html2docx/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-01-19","license_spdx":null,"license_treatment":"permissive","name":"html2docx","python_support":"supports_current","summary":"Convert valid HTML input to docx."},"popularity":{"monthly_downloads":119726,"position":12059,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.6.0"}
