Kozea/WeasyPrint
The awesome document factory observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 99
- Release rhythm 74
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 44.0
- age_days: 5503
- days_rel: 92
- days_push: 8
- n_releases_24m: 11
Adoption not part of the score
9531 stars · 863 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
WeasyPrint is a Python visual rendering engine for HTML and CSS that exports documents to PDF, with a CSS layout engine designed for pagination. It lets web developers generate reports, invoices, tickets, and books from HTML/CSS without relying on a browser rendering engine.
Use cases
- convert html to pdf in python
- generate invoices from html templates
- create statistical reports as pdf
- print html with css paged media
- generate tickets with barcodes from html
- render a book with table of contents to pdf
When to choose
- you want to generate paginated PDFs from HTML and CSS in Python
- you need print-specific CSS features like page headers, footers, and multiple layouts
- you want a pure-Python alternative to headless browsers for PDF generation
When to avoid
- you need pixel-perfect rendering of complex JavaScript-driven web pages
- you need a general-purpose browser or screenshot tool rather than PDF output
- you require a rendering engine based on WebKit or Gecko
Facets
library · maturity active
pdf templating image-processing pdf web-development files python cross-platform cli html-to-pdf css-paged-media rendering-engine print-to-pdf document-generation
3 sources
- readme: https://github.com/Kozea/WeasyPrint · fetched 2026-08-28 · ae1935687715
- homepage: https://weasyprint.org · fetched 2026-08-29 · 9b7e1728f2da
- registry_pypi: https://pypi.org/pypi/weasyprint/json · fetched 2026-08-29 · 1d7f1e4213c1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Kozea/WeasyPrint | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="Kozea/WeasyPrint")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem