{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/2"}],"enrichment":{"capability":"Extracts text, images, headers, footers, footnotes, endnotes, comments, properties, and document structure from Microsoft Word .docx files into Python objects.","skillfed_tags":["document-parsing","office-formats"],"use_cases":["Extract text and structure from Word documents for indexing, search, or content migration to other formats","Automate document processing pipelines that need to read .docx files and convert them to markdown, HTML, or database records","Parse Word documents to identify and extract headings, lists, and formatted text for document analysis or summarization","Batch extract images embedded in .docx files and save them to a directory for asset management","Build tools that read Word document properties (creator, modification date, etc.) for metadata extraction or audit trails"],"what_it_does":"docx2python reads Microsoft Word .docx files (which are ZIP archives containing XML) and exposes their content as Python objects. It extracts text, images, headers, footers, footnotes, endnotes, document properties, comments, and paragraph metadata\u2014including styles (e.g., Heading 1, Subtitle), formatting runs (bold, italic, underline, color, size), and position within nested lists. Tables are normalized to n\u00d7m grids and can be identified without guessing. The package optionally converts formatting to HTML tags and can write extracted images to disk.\n\nThe library uses lxml to parse the underlying XML and exposes a DocxContent object with separate attributes for header, footer, body, footnotes, endnotes, and document-level properties. Paragraphs are flattened to a consistent depth and enriched with metadata (style, lineage, list position, runs with formatting). It supports both strict and superset Open Office XML namespaces and works with Python 3.10+.","worth_installing":"Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, uses a permissive MIT license, and solves a common problem (reading .docx files) with a well-structured API. It is suitable for production use in both open-source and commercial contexts. Install if you need to programmatically extract content from Word documents."},"id":"docx2python","links":{"html":"https://skillfed.io/packages/docx2python","md":"https://skillfed.io/packages/docx2python.md","pypi":"https://pypi.org/project/docx2python/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-06","license_spdx":"MIT","license_treatment":"permissive","name":"docx2python","python_support":"supports_current","summary":"Extract content from docx files"},"popularity":{"monthly_downloads":334965,"position":7483,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.7.1"}
