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 Docs

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

Documentation

Run docs locally:

# pip
python -m pip install -e .[docs]
mkdocs serve

# uv
uv sync --extra docs
uv run mkdocs serve

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.1.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.1-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: allure_report_exporter-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9f9f7ee48b34cf593cb2adbaf23fd937e7998e1efe9b0b75376f9b3d69c22d9d
MD5 7d7951bf066249ab87edd4a2e30029bd
BLAKE2b-256 197386cf5197f2704c17d5f7dc085b2dc2e11460050aff17fb74493a7b69cec4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for allure_report_exporter-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72be43b5f184e64962631ee6798f82f0d176fab6f34888eb6867ec4c601715eb
MD5 64c9e45749dbefbc02d1961ec97885b1
BLAKE2b-256 199688c4e6326df47cc23c2b04a5cdc4357b20653147620bf78588351bbdc54c

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