Skip to main content

exploderino

CI PyPI Python versions License: Apache-2.0

Word, Excel, PowerPoint, Visio, OpenDocument, EPUB and XPS files are ZIP archives of XML underneath. Unzipping one is easy; getting back a document that still opens after you edit it is not. exploderino unpacks a document into an ordinary directory, indents the XML only where that can't change the text, keeps signed parts byte for byte, and records everything needed to rebuild the archive: part order, compression and timestamps.

Edit the parts with any tool you like, such as grep, sed, git diff, XSLT, a script or an AI agent, and exploderino packs them back into a valid document. exploderino verify checks, before you rely on it, that an unedited round trip gives back every part's content unchanged. exploderino isn't a document editor: it doesn't update the cross-references between parts, so keeping them consistent after structural edits is up to you (see limitations).

deck.pptx  ──explode──▶  deck.pptx.exploded/
                            ├── .exploderino.json        manifest used to rebuild
                            ├── [Content_Types].xml
                            ├── _rels/.rels
                            ├── docProps/{app,core}.xml
                            └── ppt/
                                ├── presentation.xml
                                ├── slides/slide1.xml …
                                ├── slideLayouts/ slideMasters/ theme/
                                └── media/image1.png …
           ◀──implode──

Why not just unzip?

unzip and xmllint --format give you readable XML. Getting a working document back is the hard part:

  • Reformatting can change the text. In OpenDocument paragraphs and EPUB chapters, whitespace between elements is visible text, so a general-purpose pretty-printer adds or removes spaces in the document. exploderino indents only where whitespace is formatting, and checks that each part comes back identical before it indents it.
  • zip -r builds archives that applications reject. OpenDocument and EPUB need mimetype stored first and uncompressed. exploderino records each part's order, compression and timestamp, and rebuilds the archive from them.
  • Signatures break. Re-serializing a signed document's XML invalidates the signature. exploderino keeps signed parts byte for byte, so an unedited round trip stays valid.
  • Documents from elsewhere can be hostile. exploderino rejects path traversal, decompression bombs and XML entity attacks, and never runs macros.

Features

  • Readable parts: XML is indented for reading, diffing and editing; images, fonts and other binary parts are copied as they are.
  • Exact round trips: unedited documents come back with every part's content unchanged, including part order, compression and timestamps.
  • Many formats: Office Open XML, OpenDocument, EPUB and XPS, detected from file content. Legacy .doc, .xls and .ppt files can be inspected read-only.
  • Embedded documents: a workbook inside a document can be exploded in place, and is rebuilt automatically.
  • Safe with untrusted files: protection against path traversal, decompression bombs and XML attacks; encrypted and signed content is detected and preserved.
  • Several ways to run: a command-line tool, a typed Python API, a Docker image and a Makefile, with JSON output for scripts.

Installation

exploderino needs Python 3.9 or newer (tested on 3.9 to 3.15) on macOS or Linux. Windows isn't tested. The only required dependency, lxml, is installed automatically.

# A standalone exploderino command, with legacy .doc/.xls/.ppt support (recommended)
uv tool install 'exploderino[ole]'     # or: pipx install 'exploderino[ole]'

# Or into the current Python environment
pip install 'exploderino[ole]'

Leave out [ole] if you don't need legacy files; it adds the olefile package. After pip install, python -m exploderino works too. To upgrade, run uv tool upgrade exploderino, pipx upgrade exploderino or pip install -U exploderino; to uninstall, uv tool uninstall exploderino, pipx uninstall exploderino or pip uninstall exploderino.

To try the latest unreleased code, install from GitHub:

uv tool install 'exploderino[ole] @ git+https://github.com/ChickenWorks/exploderino'

Docker

Each release is published as a multi-platform image (linux/amd64 and linux/arm64) with the [ole] extra. It runs as a non-root user in /work, so mount the directory that holds your documents there; paths are then relative to it.

docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/work" ghcr.io/chickenworks/exploderino deck.pptx
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/work" ghcr.io/chickenworks/exploderino deck.pptx.exploded -o deck-edited.pptx

-u "$(id -u):$(id -g)" makes the files the container writes belong to you. Tags are X.Y.Z, X.Y and latest. To build the image yourself, run docker build -t exploderino . in a checkout, or use the Makefile, which also saves typing these options.

From source

git clone https://github.com/ChickenWorks/exploderino.git
cd exploderino
uv tool install '.[ole]'          # a standalone command
uv run exploderino --help         # or run it from the checkout without installing

This needs uv. CONTRIBUTING.md covers setting up for development.

Quick start

Point it at a document to explode it, or at an exploded directory to implode it. It works out which from the path, and detects the document's format from its content, not its extension.

exploderino deck.pptx                              # explode -> deck.pptx.exploded/
grep -o '<a:t>[^<]*</a:t>' deck.pptx.exploded/ppt/slides/slide1.xml   # inspect or edit
exploderino deck.pptx.exploded -o deck-edited.pptx # implode into a new file
exploderino verify deck.pptx                       # optional: check the round trip

Implode never overwrites a file unless you pass --force, and the default output name is usually the original document, so use -o to write a new file. The user guide has recipes for extracting text, finding and replacing, swapping images and tracking documents in git.

Supported formats

Family Extensions Explode Implode
Word, Excel, PowerPoint, Visio .docx .xlsx .pptx .vsdx and their macro-enabled, template, add-in and other variants, plus .xlsb Yes Yes
OpenDocument .odt .ods .odp .odg and the other ODF types, including LibreOffice Base .odb Yes Yes
EPUB .epub (EPUB 2 and 3) Yes Yes
XPS .xps .oxps Yes Yes
Legacy Office (OLE) .doc .xls .ppt, Visio, Publisher, Project and Outlook files Read-only, with [ole] No

Formats lists every extension, which parts are pretty-printed, and how password protection, DRM and digital signatures are handled.

Documentation

Project status

exploderino is stable and follows Semantic Versioning. Its public interface is the command line, the JSON output, the Python API and the manifest format: patch releases fix bugs, minor releases add features without breaking that interface, and only a new major version changes it incompatibly. The changelog lists every change.

Contributing

Bug reports, feature requests and pull requests are welcome. CONTRIBUTING.md explains how to set up a checkout, the checks a change must pass and the pull request process. Everyone taking part is expected to follow the Code of Conduct.

Security

Please report security problems privately, as described in SECURITY.md, not in a public issue.

License

exploderino is licensed under the Apache License 2.0. Copyright 2026 Chicken Works.

Metadata

Release files for exploderino 1.0.2

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

Source distribution (sdist)

Source distribution for exploderino 1.0.2
File Size Uploaded Provenance Actions
exploderino-1.0.2.tar.gz 161.1 kB With provenance Details for exploderino-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exploderino 1.0.2
File Interpreter ABI Platform Actions
exploderino-1.0.2-py3-none-any.whl Python 3 none any Details for exploderino-1.0.2-py3-none-any.whl

Total release size: 194.5 kB

Release files / exploderino-1.0.2.tar.gz

Download URL exploderino-1.0.2.tar.gz
Size 161.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e1bcffd1e9eab2eadf6846ed8d008a9d9c77b4e135a688a7b5f67d5062cc5a35
BLAKE2b-256 checksum
How to use checksums
97e4f9ef61715e45cac6e3e965a01fb284b7607cb7680b2a312ffe62cbaa6d0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / exploderino-1.0.2-py3-none-any.whl

Download URL exploderino-1.0.2-py3-none-any.whl
Size 33.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0eda9bcb55b95a1fb488e852dc7fd8633b84a8753cdcac529f24f70c9ef1444d
BLAKE2b-256 checksum
How to use checksums
5992c65b93166aae988838ca29afc3167fe95efc39d0f9af761357a0ece261c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Security for exploderino 1.0.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for exploderino-1.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

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

1.0.2 This release

2 release files Full provenance

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