Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

docxcompose is a Python library for concatenating/appending Microsoft Word (.docx) files.

Example usage

Append a document to another document:

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")

Changelog

1.0.0a5 (2018-01-11)

  • Renumber bookmarks to avoid duplicate ids. [buchi]

  • Add support for shapes. [buchi]

1.0.0a4 (2017-12-27)

  • Fix handling of styles when composing documents with different languages. [buchi]

  • Also add numberings referenced in styles. [buchi]

  • Avoid having multiple <w:abstractNum> elements for the same style. [buchi]

  • Restart first numbering of inserted documents [buchi]

  • Add support for anchored images. [buchi]

  • Handle referenced style ids that are not defined in styles.xml [buchi]

  • Remove header and footer references in paragraph properties. [buchi]

1.0.0a3 (2017-11-22)

  • Make removal of property fields optional. [buchi]

1.0.0a2 (2017-11-06)

  • Fix handling of footnotes containing hyperlinks. [buchi]

  • Add functionality to deal with custom document properties. Properties can be updated and fields containing properties can be removed. When appending or inserting documents their custom document properties get removed automatically. [buchi]

1.0.0a1 (2017-09-13)

  • Initial release [buchi]

Metadata

Release files for docxcompose 1.0.0a5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docxcompose 1.0.0a5
File Size Uploaded Provenance Actions
docxcompose-1.0.0a5.tar.gz 8.4 kB Without provenance Details for docxcompose-1.0.0a5.tar.gz

Release files / docxcompose-1.0.0a5.tar.gz

Download URL docxcompose-1.0.0a5.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b1f4a62475af5b304d02e42cdb40a0125eacbbaed9234278b3be41b78ede8a62
BLAKE2b-256 checksum
How to use checksums
f083ce4c54d7ab3c37af903c06223de8d788d643b10d31b7d78dbc7c3ea11274
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for docxcompose 1.0.0a5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page