Skip to main content

Professional DOCX document processing library with AI-ready JSON export, PDF/HTML rendering, and round-trip editing

Project description

DocQuill

PyPI version License

Professional DOCX document processing library with AI-ready JSON export, PDF/HTML rendering, and round-trip editing.

Features

  • 📄 Full DOCX Parsing - Headers, footers, tables, images, styles, numbering
  • 🔄 Round-trip Editing - DOCX → HTML → DOCX with formatting preservation
  • 📊 AI-Ready JSON Export - Structured layout data for ML/NLP workflows
  • 🖨️ PDF Rendering - Python (ReportLab) or high-performance Rust backend
  • 🎨 HTML Export - Static or editable HTML output
  • 📝 Placeholder Engine - 20+ placeholder types for document automation
  • 🔀 Document Merging - Combine documents with OPC relationship handling

Installation

pip install docquill

For high-performance PDF rendering with Rust:

pip install docquill[rust]

Quick Start

from docquill import Document

# Open and process a document
doc = Document.open("document.docx")

# Export to PDF
doc.to_pdf("output.pdf")

# Export to HTML
doc.to_html("output.html")

# Get AI-ready JSON layout
layout = doc.pipeline()
json_data = layout.to_json()

# Fill placeholders
doc.fill_placeholders({
    "company_name": "Acme Corp",
    "date": "2024-01-15"
})
doc.save("filled.docx")

Documentation

See the full documentation for:

License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docquill-0.1.7.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docquill-0.1.7-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file docquill-0.1.7.tar.gz.

File metadata

  • Download URL: docquill-0.1.7.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for docquill-0.1.7.tar.gz
Algorithm Hash digest
SHA256 4ce11f24747a683ead551af3783257859527db41122967f51796f50845bf5839
MD5 5e2903d2f633bedde88a31ed40defdb3
BLAKE2b-256 fd04d529cf897fe619e655612bec12c244abe88ad4f5733ba23f0dae92359e53

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill-0.1.7.tar.gz:

Publisher: publish.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docquill-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: docquill-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for docquill-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 dd95422663e2ee2d44ed54e6cbf38ff02f7bb50f15ed92fc665f57607d506f2e
MD5 4081d711713dfc220749f965c73665e5
BLAKE2b-256 8644271d4afd346cbfbd3b1426a762944642588ea40fde486e315ea982296a45

See more details on using hashes here.

Provenance

The following attestation bundles were made for docquill-0.1.7-py3-none-any.whl:

Publisher: publish.yml on AddNap/DocQuill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page