# python-docx **Repository Path**: mirrors/python-docx ## Basic Information - **Project Name**: python-docx - **Description**: Create and modify Word documents with Python - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 1 - **Created**: 2019-10-15 - **Last Updated**: 2025-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # python-docx *python-docx* is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files. ## Installation ``` pip install python-docx ``` ## Example ```python >>> from docx import Document >>> document = Document() >>> document.add_paragraph("It was a dark and stormy night.") >>> document.save("dark-and-stormy.docx") >>> document = Document("dark-and-stormy.docx") >>> document.paragraphs[0].text 'It was a dark and stormy night.' ``` More information is available in the [python-docx documentation](https://python-docx.readthedocs.org/en/latest/)