Back to directory

paper-docx

An import-compatible fork of the python-docx library for creating and editing Word documents, adding guarded APIs that refuse an operation it cannot represent safely instead of silently corrupting the file.

paper-docx

paper-docx keeps python-docx's docx import name and object model so existing code continues to work, while adding inspection and editing APIs meant to be safe for an AI agent to call unattended: rather than guessing at an ambiguous edit, it refuses operations it cannot represent correctly. Its highlighted feature is generating a Word redline between two versions of a document, writing the differences as tracked changes and again refusing changes it cannot express safely as track-changes markup.

Because both python-docx and paper-docx provide the same docx import package, the project's own installation instructions have a user uninstall python-docx before installing paper-docx, to avoid the two colliding in one environment; a bundled doctor command checks the installation afterward.

It is written in Python and licensed under MIT, inheriting python-docx's license and attribution.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.