$npx skillfedfor your agent

docxcompose

Compose .docx documents

Worth itPyPI Text ProcessingReleased Jun 20261.6M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — docxcompose-2.2.0-py3-none-any.whl
v2.2.0 · released 2026-06-02 · Python <4.0,>=3.10 · 3 runtime deps: babel, lxml, python-docx

Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a concrete problem (docx merging) that the standard python-docx library does not directly address. The permissive MIT license poses no restrictions. Install it if you need to programmatically combine Word documents.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction: pure Python wheel with three lightweight runtime dependencies (babel, lxml, python-docx).
  • Active maintenance with a release within the last 73 days.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) — you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2026-06-02 (73 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,613,802 downloads/mo, #3,717 on PyPI

Verify before relying

pip install docxcompose

from docxcompose.composer import Composer
from docx import Document

master = Document("master.docx")
composer = Composer(master)
doc1 = Document("doc1.docx")
composer.append(doc1)
composer.save("combined.docx")
  • Whether style preservation handles complex formatting (tables, images, embedded objects) correctly in all cases.
  • Performance characteristics when merging very large documents or many files in sequence.
Same gist for agents: .md · .json

What it is and what it does

docxcompose is a Python library that merges multiple .docx files into a single document. It wraps the lower-level python-docx library to handle the composition logic, using lxml for XML manipulation and babel for internationalization support. The library provides both a Python API (via the Composer class) and a command-line tool for batch operations, plus an optional Docker-based web service for remote composition.

The main use case is combining Word documents programmatically—for example, assembling reports from template sections, merging user-generated content into a master document, or building composite documents from modular parts. By default it applies the master document's styles to appended content for visual consistency, though you can preserve the original styles of each appended document if needed. Headers and footers from the first document are retained throughout the merged file.

Use it for

  • Assemble multi-section reports by appending chapter or section documents to a master template.
  • Merge user-submitted Word documents into a single compiled output for distribution or archival.
  • Batch-process docx files from the command line or web service without writing Python code.
  • Build composite documents from modular content while maintaining consistent styling from a template.
  • Automate document composition in a server or CI/CD pipeline via the Docker container.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a concrete problem (docx merging) that the standard python-docx library does not directly address. The permissive MIT license poses no restrictions. Install it if you need to programmatically combine Word documents.

Install

docxcompose on PyPI

Before you install

Low friction: pure Python wheel with three lightweight runtime dependencies (babel, lxml, python-docx). Active maintenance with a release within the last 73 days.

License in practice

MIT license (permissive) — you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install docxcompose

from docxcompose.composer import Composer
from docx import Document

master = Document("master.docx")
composer = Composer(master)
doc1 = Document("doc1.docx")
composer.append(doc1)
composer.save("combined.docx")

Verify before relying

  • Whether style preservation handles complex formatting (tables, images, embedded objects) correctly in all cases.
  • Performance characteristics when merging very large documents or many files in sequence.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
babellxmlpython-docx
MaintenanceActively maintained 73 days since the last release
First released
Downloads1,613,802 / month, #3,717 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: docxcompose-2.2.0-py3-none-any.whl

Tags

Capabilities
merge docx filescombine word documentsconcatenate docxword document compositiondocx file joiningappend word filesdocx concatenation library
Topics
document-compositionword-automation

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “combine word documents”

  • docxcomposeConcatenates and merges multiple Microsoft Word (.docx) files into a…
  • html-for-docxConverts HTML content to Word documents (.docx), with support for…
  • htmldocxConverts HTML content into Microsoft Word documents (.docx format),…

Give your agent the search over MCP, or paste the wish link into any chat.

More Text Processing packages

regex Worth it
PyPI · Python Modules · released Jul 2026

A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.

Apache-2.0 AND CNRI-Pythoncompiled wheel · 3.10+
437.7Mdownloads / mo
pyparsing Worth it
PyPI · Text Processing · released Jan 2026

pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.

Install it if you need to parse text or define grammars programmatically.

MITpure Python · 3.9+
412.7Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.

Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
docutils With conditions
PyPI · Software Development · released May 2026

Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.

BSD-3-Clausepure Python · 3.9+
225.6Mdownloads / mo
RapidFuzz Worth it
PyPI · Text Processing · released Apr 2026

RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.

Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.

MITcompiled wheel · 3.10+
184.2Mdownloads / mo
tinycss2 Worth it
PyPI · Text Processing · released Nov 2025

tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.

Install it if your project requires CSS tokenization or syntax manipulation.

BSD-3-Clausepure Python · 3.10+
113.2Mdownloads / mo

See also htmldocx · html-for-docx · docx-mailmerge2 · docx · docx-mailmerge · aspose-words · python-docx-ml6 · mammoth · python-docx · docx2txt