1 Template → 4 Formats
Design your layout once. Q2Report adapts page-oriented geometry for PDF/DOCX and clean cell grids for XLSX automatically.
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"
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)
Eliminate brittle HTML-to-PDF hacks and heavy JVM dependencies in your FastAPI, Django, or data pipelines.
Design your layout once. Q2Report adapts page-oriented geometry for PDF/DOCX and clean cell grids for XLSX automatically.
Pure Python core installs in seconds. Keep your production Docker images tiny and avoid headless browser crashes.
Calculate group subtotals, running totals, averages, and inline expressions like
{sum:num(line_total)} directly inside templates.
Let business users edit layouts in the browser, or build and customize report templates directly in Python code.
Exports real numbers, dates, merged cells, and clean borders to XLSX—not broken HTML tables disguised as spreadsheets.
Keep sensitive financial, healthcare, and legal data inside your private VPC or air-gapped infrastructure.
Build layouts in the online Q2Report Designer, desktop app, or define templates directly in Python code.
Pass standard Python dictionaries, lists, or JSON payloads directly to the
Q2Report engine.
Stream PDF, Word, Excel, or HTML files directly from FastAPI/Django endpoints or background workers.
Start free with our Apache-2.0 Python library, and scale with the visual Web Designer.
Free / Apache-2.0
pip install q2report)Interactive / SaaS & On-Prem