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.3

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.3
File Size Uploaded Provenance
docx2tiptap-0.2.3.tar.gz 43.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 92.4 kB

Release files / docx2tiptap-0.2.3.tar.gz

Download URL docx2tiptap-0.2.3.tar.gz
Size 43.7 kB
Tags Source
SHA-256 checksum
How to use checksums
25f21ecd1dd912f2eab217485d16c06d9120fb85c1dc0fe23b56baf7c0f0584f
BLAKE2b-256 checksum
How to use checksums
a598ead59ef7cf4bde5ec23b64d288c3f8e49c5bd9391f9251594d67fe8abd3c
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.3-py3-none-any.whl

Download URL docx2tiptap-0.2.3-py3-none-any.whl
Size 48.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74a7e0fd7412b7732ba9631d9e0251738600d9f5477513a9d913d15b994c9824
BLAKE2b-256 checksum
How to use checksums
0399dc799c52e3bd707fdbc84e6e82ef1f533a3b2a336f7919ea28b14720f64e
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.3

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