Matter2
A version control system for office documents.
What is Matter?
Matter is a VCS designed for office documents (DOCX, PPTX, PDF, etc.) rather than source code. It provides:
- ZIP-aware storage — Office formats are unpacked and stored efficiently. A one-word edit to a DOCX doesn't duplicate the entire file.
- Document identity tracking — Rename a file and Matter knows it's the same document.
- Branch and merge — Branch document collections for review cycles. Conflicts are surfaced as side-by-side files for manual resolution.
- Portable format — Export a repository as a self-contained archive.
Installation
pip install matter2
With optional diff support (DOCX/PDF text extraction):
pip install matter2[diff]
Quick Start
# Initialize a repository
matter init
# Add and commit documents
matter add contract.docx proposal.pdf
matter commit -m "Initial documents" -a user@example.com
# Check status
matter status
# View history
matter log
# Branch for review
matter branch client-review
matter switch client-review
# Merge back
matter switch main
matter merge client-review
# Track a document across renames
matter track contract.docx
# Export for sharing
matter export backup.tar.gz
Library Usage
from matter import Repository
repo = Repository.init("/path/to/repo")
repo.add(["contract.docx"])
cp = repo.commit(message="Add contract", author="user@example.com")
content = repo.restore(cp.id, "contract.docx")
Architecture
See design spec for the full architecture.
License
MIT
Metadata
Release files for matter2 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| matter2-0.3.0.tar.gz | 60.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| matter2-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.8 kB
Release files / matter2-0.3.0.tar.gz
| Download URL | matter2-0.3.0.tar.gz |
|---|---|
| Size | 60.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87576deba03257eeb2150d6e9f535676732033211b0b3f97786f8ec967a97ba7
|
|
BLAKE2b-256 checksum How to use checksums |
0500816fb24fec4aada30c9bcb7eb87222abef4a48eff08bb7ed1fcde842c182
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 9, 2026.
Transparency logRelease files / matter2-0.3.0-py3-none-any.whl
| Download URL | matter2-0.3.0-py3-none-any.whl |
|---|---|
| Size | 26.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48af5e61f316ade35dd7069ccb5c45e774542adad215e165a71a6c3a134ab325
|
|
BLAKE2b-256 checksum How to use checksums |
c7716c87b382979e57dea8ed597b2840b6f7e466ee09e9b117cdf5b9454aae93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 9, 2026.
Transparency log