Skip to main content

Generate professional PDF and DOCX reports from Allure 2.37+ HTML widgets

Project description

allure-report-exporter

PyPI version Python versions License

Generate professional PDF and DOCX reports from Allure results, with full support for Allure Commandline 2.37.0+.

This project intentionally uses:

  1. allure generate to build official Allure HTML.
  2. allure-report-html/widgets/*.json + data/* as the parsing source.

This makes the exporter resilient to raw results schema shifts.

Highlights

  • Allure 2.37.0+ compatibility precheck
  • pdf, docx, both, and html build modes
  • Rich per-test detail: parameters, setup/test/teardown steps, attachments
  • Clickable table of contents for quick navigation
  • Branding support: custom logo and footer text
  • Optional template and CSS override for fully custom report styling
  • Works on Windows and Linux

Installation

Install with pip

python -m pip install allure-report-exporter
python -m playwright install chromium

Install with uv

uv tool install allure-report-exporter
uvx playwright install chromium

For development (editable install):

# pip
python -m pip install -e .[dev]

# uv
uv sync --extra dev

Allure prerequisite

Install Allure Commandline 2.37.0 or newer and verify:

allure --version

The CLI validates version before report generation.

Quick start

allure-report build --results ./allure-results --out ./allure-report-out --format both

Outputs:

  • report.pdf
  • report.docx
  • report-print.html
  • allure-report-html/ (kept by default)

Usage examples

Build HTML only:

allure-report build --results ./allure-results --out ./allure-report-out --format html

Build PDF only:

allure-report build --results ./allure-results --out ./allure-report-out --format pdf

Build DOCX only:

allure-report build --results ./allure-results --out ./allure-report-out --format docx

Build both:

allure-report build --results ./allure-results --out ./allure-report-out --format both

Include metadata:

allure-report build \
  --results ./allure-results \
  --out ./allure-report-out \
  --format both \
  --title "Nightly QA Report" \
  --project "Turnlamp" \
  --build-url "https://ci.example/build/124" \
  --commit "abc1234" \
  --branch "main" \
  --environment OS:Windows \
  --environment Browser:Chromium

Branding and template customization

Add a logo and footer text

allure-report build \
  --results ./allure-results \
  --out ./allure-report-out \
  --format both \
  --logo-path ./branding/company-logo.png \
  --footer-text "Copyright dSPACE 2026"

Use your own template and CSS

allure-report build \
  --results ./allure-results \
  --out ./allure-report-out \
  --format pdf \
  --template-file ./custom/report_template.html.j2 \
  --css-file ./custom/report.css

Start from the defaults:

Viewing official Allure HTML

Do not open allure-report-html/index.html directly with file://. Use:

allure open ./allure-report-out/allure-report-html

or:

cd ./allure-report-out/allure-report-html
python -m http.server 8080

Then open http://localhost:8080.

Testing

pytest -q

Publish to PyPI

Full release instructions are in PUBLISHING.md.

Project structure

allure-report/
  pyproject.toml
  README.md
  PUBLISHING.md
  CHANGELOG.md
  LICENSE
  allure_report_exporter/
  tests/

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

allure_report_exporter-1.0.0.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

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

allure_report_exporter-1.0.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file allure_report_exporter-1.0.0.tar.gz.

File metadata

  • Download URL: allure_report_exporter-1.0.0.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for allure_report_exporter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 88cce9a2202679d7cc9f766d7d93885d6c66d23040c17af43b7c2e4bfdfbf345
MD5 dd9e776159ba5e74a7eaa93064e5e96d
BLAKE2b-256 2ff1bbfc30d8e754b89503521d50e4c8d8673fdca89edbcd3c97b34cfee4ddc8

See more details on using hashes here.

File details

Details for the file allure_report_exporter-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for allure_report_exporter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88f504f30034b5580fb5be66e657bea92d5fecc6c95bd5f3707b55fe44305419
MD5 6d3e1d9a3ce94ae29fa941a673b57b3d
BLAKE2b-256 00bb1c12d57dfe90c4a6bf1e36812901c890e71f04bbe2603aa3989109c4190f

See more details on using hashes here.

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