weasyprint
brew install weasyprint
v69.0
BSD-3-Clause
Python library and command-line tool to convert HTML/CSS to PDF documents.
Why you might care
WeasyPrint renders standards-compliant HTML and CSS directly to PDF without a headless browser, making it lightweight and fast for programmatic document generation. It's ideal for Python workflows that need to generate invoices, reports, or certificates from templates. Use it when you want precise CSS control over PDF output without Chromium/Firefox overhead.
2.6k
30-day installs · #850
6.0k
90-day · #1013
19.5k
365-day · #1074
Runtime dependencies
Links
- https://www.courtbouillon.org/weasyprint
- Brew formula source: Formula/w/weasyprint.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"wkhtmltopdf",
"puppeteer",
"headless-chrome",
"prince"
],
"build_dependencies": [],
"categories": [
"conversion",
"pdf-tool",
"library"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"cffi",
"pango",
"pillow",
"python@3.14"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Convert HTML to PDF",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:41:08+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "weasyprint",
"github_default_branch": null,
"github_last_commit_at": null,
"github_readme_excerpt": null,
"github_repo": null,
"github_stars": null,
"github_topics": [],
"homepage": "https://www.courtbouillon.org/weasyprint",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": "CourtBouillon \u00e2\u0088\u0092 WeasyPrint",
"installs_30d": 2626,
"installs_365d": 19546,
"installs_90d": 5992,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "BSD-3-Clause",
"llm_generated_at": "2026-06-20T23:47:26+00:00",
"llm_model": "claude-haiku-4-5",
"name": "weasyprint",
"oldnames": [],
"one_liner": "Python library and command-line tool to convert HTML/CSS to PDF documents.",
"optional_dependencies": [],
"rank_30d": 850,
"rank_365d": 1074,
"rank_90d": 1013,
"raw_hash": "c8ada1460f466742",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/w/weasyprint.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
"libffi"
],
"version_head": null,
"version_stable": "69.0",
"versioned_formulae": [],
"why_use_this": "WeasyPrint renders standards-compliant HTML and CSS directly to PDF without a headless browser, making it lightweight and fast for programmatic document generation. It\u0027s ideal for Python workflows that need to generate invoices, reports, or certificates from templates. Use it when you want precise CSS control over PDF output without Chromium/Firefox overhead."
}