{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/2"},{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/3"},{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"}],"enrichment":{"capability":"Converts HTML content to Word documents (.docx), with support for styling, tables, images, and metadata.","skillfed_tags":["document-generation","html-conversion","office-automation"],"use_cases":["Generate Word reports from HTML templates or web content without manual formatting.","Batch-convert HTML files to .docx for archival, distribution, or further editing.","Embed HTML-to-docx conversion in a web application to let users download formatted documents.","Combine markdown-to-HTML pipelines with this library to produce Word documents from markdown source.","Populate Word documents with styled HTML content from a CMS or database dynamically."],"what_it_does":"html-for-docx is a Python library that transforms HTML markup into Word documents (.docx format). It wraps python-docx and beautifulsoup4 to parse HTML and render it as native Word content, preserving text, tables, images, and styling where possible. The library supports inline CSS, custom style mappings from HTML classes to Word styles, tag-level style overrides, and document metadata manipulation.\n\nYou use it by instantiating a parser, then either adding HTML snippets to an existing Word document incrementally, converting entire HTML files, or parsing HTML strings directly to new documents. It handles both file-based and in-memory workflows, offers granular control over which HTML features to process (images, tables, styles, comments), and lets you apply Word template styles to preserve formatting across conversions.","worth_installing":"Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, supports Python 3.7 through 3.14, and solves a concrete problem with a straightforward API. No known vulnerabilities. Install it if you need to convert HTML to Word documents; the main limitation is fidelity of complex CSS styling, which is inherent to the Word format itself."},"id":"html-for-docx","links":{"html":"https://skillfed.io/packages/html-for-docx","md":"https://skillfed.io/packages/html-for-docx.md","pypi":"https://pypi.org/project/html-for-docx/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-31","license_spdx":null,"license_treatment":"permissive","name":"html-for-docx","python_support":"supports_current","summary":"Convert HTML to Docx easily and fastly"},"popularity":{"monthly_downloads":344972,"position":7370,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.7"}
