Skip to main content

quillwork

Lossless, AI-friendly editing of Word (.docx) documents, for Python 3.12 and newer.

An agent reads a compact text view of the document, with a short anchor on every paragraph, table row and comment. It sends small JSON edits against those anchors. Quillwork writes each edit into the original file as a real Word tracked change and leaves every byte it did not need to touch exactly as it was. Letterheads, numbering, styles, fields and existing tracked changes survive, and a person reviews the agent's work in Word's Review pane.

from pathlib import Path

import quillwork

doc = quillwork.Document.open(Path("contract.docx").read_bytes())
doc.set_agent("AI")
print(doc.read())        # [b103 #1.] The Consultant provides advice ... for 16 hours per week.

doc.apply({
    "base_version": doc.version,
    "ops": [{"op": "replace_text", "anchor": "b103", "find": "16 hours", "replace": "20 hours"}],
})
Path("contract.edited.docx").write_bytes(doc.save())

doc.help() lists every op. This is an alpha (0.0.x): the op language and the sidecar format may change between releases.

Licensed under Apache-2.0.

Metadata

Release files for quillwork 0.0.2

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

Built distributions (wheels)

Table of built distributions (wheels) for quillwork 0.0.2
File Interpreter ABI Platform Actions
quillwork-0.0.2-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details for quillwork-0.0.2-cp312-abi3-manylinux_2_28_x86_64.whl
quillwork-0.0.2-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for quillwork-0.0.2-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 4.5 MB

Release files / quillwork-0.0.2-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL quillwork-0.0.2-cp312-abi3-manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
ad65ec2d372a1eea7e135e7c458547286e420bd77d8333f1d577d20b696e3909
BLAKE2b-256 checksum
How to use checksums
b9108a1c58146d3bc38510563c2f4cba3aa471ef52916b09564281a39b225f95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 27, 2026.

Transparency log

Release files / quillwork-0.0.2-cp312-abi3-macosx_11_0_arm64.whl

Download URL quillwork-0.0.2-cp312-abi3-macosx_11_0_arm64.whl
Size 2.1 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
880e68a99d29ad2ee209cba05d80ee9ae9c827b6d614e349511bd76b8b7f6d5b
BLAKE2b-256 checksum
How to use checksums
174355390282dfe582bf508e42df2b517ec5131099a2aa5384382740a6bcef3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 27, 2026.

Transparency log

Security for quillwork 0.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for quillwork-0.0.2-cp312-abi3-manylinux_2_28_x86_64.whl

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 Oct 27, 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.

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