Skip to main content

opc-diag is a command-line application for exploring Microsoft Word, Excel, and PowerPoint files from Office 2007 and later. Also known as Office Open XML, the structure of these files adheres to the Open Packaging Convention (OPC), specified by ISO/IEC 29500.

opc-diag provides the opc command, which allows OPC files to be browsed, diff-ed, extracted, repackaged, and parts from one to be substituted into another.

Its primary use is by developers of software that generates and/or manipulates Microsoft Office documents.

A typical use would be diff-ing a Word file from before and after an operation, say inserting a paragraph, to identify the specific changes Word made to the XML. This is handy when one is developing software to do the same without Word's help:

$ opc diff before.docx after.docx

Another main use is to diagnose an issue causing an Office document to not load cleanly, typically because the software that generated it has a bug. These problems can be tedious and often difficult to diagnose without tools like opc-diag, and were the primary motivation for developing it.

More information is available in the opc-diag documentation

Release files for opc-diag 1.1.1

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

Source distribution (sdist)

Source distribution for opc-diag 1.1.1
File Size Uploaded
opc_diag-1.1.1.tar.gz 22.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opc-diag 1.1.1
File Interpreter ABI Platform
opc_diag-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 37.9 kB

Release files / opc_diag-1.1.1.tar.gz

Download URL opc_diag-1.1.1.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
31683920f4a1430444682a4762d4cc05bd310846856c2e6486da5b7e14248444
BLAKE2b-256 checksum
How to use checksums
6c3d9937de32b074449d322f4018547dd7721b98722913c5a092b21a356eb138
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / opc_diag-1.1.1-py3-none-any.whl

Download URL opc_diag-1.1.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6569b6d0fc39da9d0c334aa2617c587940e03eecfa61ce014f1258ebe6a2d237
BLAKE2b-256 checksum
How to use checksums
033dccea3a83bcb516fe90eb69724f628e2c9e2ed9e4113ba1e4c82163b1ac73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

1 release file

0.9.8

1 release file

0.9.7

1 release file

0.9.6

1 release file

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