Open Core • Pure Python • Zero LibreOffice

One Visual Template.
Pixel-Consistent PDF, DOCX, XLSX & HTML.

The native Python reporting engine with built-in aggregations and a browser-based template designer. Run 100% offline in lightweight Docker containers without Java or external office suites.

pip install "q2report"
generate_invoice.py
from q2report import Q2Report

report = Q2Report()
report.load("invoice_template.json")

data = {
    "invoice_no": "INV-2026-084",
    "items": [
        {"name": "Cloud Node", "qty": 2, "price": 45.00},
        {"name": "Dedicated IP", "qty": 1, "price": 12.50}
    ]
}

# Export 1 template to 4 formats offline
for ext in ("pdf", "docx", "xlsx", "html"):
    report.run(f"output/invoice.{ext}", data=data)
Q2Report PDF output preview
PDF Output Pixel-consistent A4 layout rendered via Q2Report
Q2Report DOCX output preview
DOCX Output Editable Microsoft Word / LibreOffice Writer document
Q2Report XLSX output preview
XLSX Output Native Excel grid with real numbers and merged cells
Q2Report HTML output preview
HTML Output Clean responsive HTML ready for browser embedding

Built for Python Backends & Enterprise Security

Eliminate brittle HTML-to-PDF hacks and heavy JVM dependencies in your FastAPI, Django, or data pipelines.

1 Template → 4 Formats

Design your layout once. Q2Report adapts page-oriented geometry for PDF/DOCX and clean cell grids for XLSX automatically.

Zero Java or LibreOffice

Pure Python core installs in seconds. Keep your production Docker images tiny and avoid headless browser crashes.

Built-in Aggregations

Calculate group subtotals, running totals, averages, and inline expressions like {sum:num(line_total)} directly inside templates.

Visual Designers & Code API

Let business users edit layouts in the browser, or build and customize report templates directly in Python code.

Native Excel Output

Exports real numbers, dates, merged cells, and clean borders to XLSX—not broken HTML tables disguised as spreadsheets.

100% Offline & On-Premise

Keep sensitive financial, healthcare, and legal data inside your private VPC or air-gapped infrastructure.

From JSON Data to Production Documents in 3 Steps

01

Design Visually or in Code

Build layouts in the online Q2Report Designer, desktop app, or define templates directly in Python code.

02

Bind Python Data

Pass standard Python dictionaries, lists, or JSON payloads directly to the Q2Report engine.

03

Render Anywhere

Stream PDF, Word, Excel, or HTML files directly from FastAPI/Django endpoints or background workers.

Open Core Architecture

Start free with our Apache-2.0 Python library, and scale with the visual Web Designer.

Community Engine

Free / Apache-2.0

  • Pure-Python rendering engine (pip install q2report)
  • Export to DOCX, XLSX, HTML & PDF
  • Grouping, expressions & aggregations
  • Desktop template designer
Explore Repository

Test Q2Report in Your Browser Right Now

Edit a live invoice template, tweak the JSON payload, and download matching PDF, DOCX, and XLSX files in seconds.