Skip to main content

docx2tiptap

Parse DOCX files and convert to TipTap/ProseMirror JSON format.

Installation

pip install docx2tiptap

Usage

from docx2tiptap import parse_docx, to_tiptap, create_docx_from_tiptap

# Parse DOCX to TipTap JSON
with open("document.docx", "rb") as f:
    elements, comments = parse_docx(f.read())
    tiptap_doc = to_tiptap(elements, comments)

# Export TipTap JSON back to DOCX
docx_buffer = create_docx_from_tiptap(tiptap_doc)
with open("output.docx", "wb") as f:
    f.write(docx_buffer.read())

Features

  • Parse DOCX paragraphs, headings, and tables
  • Handle merged cells (colspan/rowspan)
  • Preserve track changes (insertions/deletions)
  • Extract and export comments
  • Convert to/from TipTap JSON format

License

AGPL-3.0-or-later

Metadata

Release files for docx2tiptap 0.2.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 docx2tiptap 0.2.2
File Size Uploaded Provenance
docx2tiptap-0.2.2.tar.gz 42.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 89.8 kB

Release files / docx2tiptap-0.2.2.tar.gz

Download URL docx2tiptap-0.2.2.tar.gz
Size 42.4 kB
Tags Source
SHA-256 checksum
How to use checksums
925ab8543d91933fa072f473d4489ef8538840aa65b3f20db3d53fc679e5e4cd
BLAKE2b-256 checksum
How to use checksums
77cff9a9d9c388a3cc51cd348a76ecabd2026f406cf0fd941b73ac260920b6c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Release files / docx2tiptap-0.2.2-py3-none-any.whl

Download URL docx2tiptap-0.2.2-py3-none-any.whl
Size 47.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40995cbc031d0ab5431be69a81f1c64cca758d392a060bb52fd484c8f7ad2f2c
BLAKE2b-256 checksum
How to use checksums
cf394dae00ce8c6e0af954b2c16d37588eacb2905da988bd8bb1eedad18bfe24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Security for docx2tiptap 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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