pkg.soopen package index

brew / 排名 1068

使用 Homebrew, apk, apt, dnf, scoop 安装 weasyprint

查看 weasyprint 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install weasyprint

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add weasyprint

Alpine Linux edge package indexes · weasyprint · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install weasyprint

Debian stable package indexes · weasyprint · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install weasyprint

Fedora Rawhide package metadata · weasyprint · 来源: dl.fedoraproject.org

Windows

Scoop已验证 · 92%
scoop install main/weasyprint

Scoop official bucket manifest trees · bucket/weasyprint.json · 来源: api.github.com

概览

软件包摘要

Convert HTML to PDF

命令和别名

  • weasyprint

历史

项目历史与用法

WeasyPrint is a free, BSD-licensed HTML and CSS rendering engine that exports paged documents as PDF. It is used from the command line or Python API to turn web-standard markup into invoices, reports, tickets, books, documentation, and other static documents.

Unlike browser-wrapper PDF tools, WeasyPrint is not based on WebKit or Gecko. Its layout engine is written in Python and is intentionally focused on paged media rather than interactive web browsing.

项目历史

WeasyPrint was created and developed by Kozea. Simon Sapin announced the first release in late 2011 after working with Kozea for several months; the PyPI timeline records version 0.1 on October 28, 2011, and Sapin's November 2, 2011 post describes it as a rendering engine for HTML and CSS that produces PDF.

The project was created to fill a gap in open-source document generation. WeasyPrint's own documentation notes that web engines had limited pagination support when the project began in 2011, while dedicated paged-media renderers such as Prince and Antenna House were powerful but not open source.

In October 2020, maintainership moved into the CourtBouillon organization. A GitHub issue titled 'The future of WeasyPrint' announced that CourtBouillon, composed of Guillaume Ayoub and Lucie Anglade, was the new organization maintaining the project. The current project website says professional support, maintenance, and community management are provided by CourtBouillon.

采用历史

WeasyPrint's adoption has followed the broad demand for server-side document generation in web applications. Its documentation frames the main use case as automatic generation of PDFs from HTML and CSS for business and publishing documents, using technologies already familiar to web developers and designers.

The project has also matured through regular releases and sponsor-backed work. Recent changelog entries list security releases, new PDF standards work, CSS features, SVG improvements, and named sponsors and backers, showing that it is maintained as production infrastructure rather than a one-off converter.

使用方式

From the shell, users typically run the weasyprint command with an input HTML document or URL and an output PDF path. From Python, applications instantiate HTML and CSS objects and render or write PDFs programmatically.

Because WeasyPrint is focused on paged media, its value is strongest when CSS print rules, page breaks, generated content, fonts, metadata, attachments, PDF/A or electronic-invoice features, and reproducible layout matter more than JavaScript execution or browser fidelity.

为什么软件包爱好者会关心

WeasyPrint is package-nerd significant because it is a substantial pure-open-source renderer in a space often served by headless browsers or commercial engines. It chose the hard route of implementing layout logic for paginated output instead of wrapping a general-purpose browser engine.

It also tracks a browser-like release philosophy. The documentation warns that major versions can change rendered output, which is what matters for document generation, even when APIs remain compatible.

时间线

  • 2011-10-28: PyPI records WeasyPrint 0.1, the first release.
  • 2011-11-02: Simon Sapin publishes an announcement explaining the first release and the decision not to build on WebKit or Gecko.
  • 2020-10-12: CourtBouillon publicly announces that it is the new organization maintaining WeasyPrint.
  • 2026-01-19: WeasyPrint 68.0 is released as a security update and refactors URL fetching APIs.
  • 2026-06-02: WeasyPrint 69.0 is released as a security update and adds further CSS and PDF-related features.

Related projects

  • WeasyPrint is commonly compared with wkhtmltopdf, PagedJS, Prince, Antenna House, Typeset.sh, browser print-to-PDF workflows, LaTeX, and LibreOffice-based document generation. Its Python stack includes libraries for HTML, CSS, font, image, and PDF handling rather than a full browser engine.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 4 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
weasyprintcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-04
管理器版本69.0
管理器更新时间2026-06-03
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.courtbouillon.org/weasyprint

安装元数据

软件包元数据

软件包键brew:weasyprint
版本69.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/weasyprint
主页https://www.courtbouillon.org/weasyprint
上游文档https://www.courtbouillon.org/weasyprint
许可证BSD-3-Clause
源码归档https://files.pythonhosted.org/packages/59/53/dcc3885c2f7a47faa45f6b8b801412f5f9e055173a52801ef01c09943c5a/weasyprint-69.0.tar.gz
最后更新2026-06-03T18:44:54Z
Pulseupdated
依赖cffi, pango, pillow, python@3.14
macOS 提供的库libffi
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameweasyprint
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

weasyprint 62.3-1

Document factory for creating PDF files from HTML

https://weasyprint.org/

sudo apt install weasyprint
  • Section: text
  • Architecture: all
  • 14 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Weasyprint
Debian stable package indexes · deb.debian.org · Debian stable package indexes: weasyprint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

weasyprint 61.1-1

Document factory for creating PDF files from HTML

https://weasyprint.org/

sudo apt install weasyprint
  • Section: universe/text
  • Architecture: all
  • 14 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Weasyprint
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: weasyprint from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

weasyprint 69.0-r0

A visual rendering engine for HTML and CSS that can export to PDF

https://weasyprint.org

sudo apk add weasyprint
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: weasyprint
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Weasyprint
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: weasyprint from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

weasyprint-pyc 69.0-r0

Precompiled Python bytecode for weasyprint

https://weasyprint.org

sudo apk add weasyprint-pyc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: weasyprint
  • 1 依赖
  • normalized package name match
  • 匹配方式:Weasyprint
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: weasyprint-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

python3-weasyprint 69.0-2.fc45

Python library to render HTML and CSS to PDF

https://weasyprint.org

sudo dnf install python3-weasyprint
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: weasyprint
  • 6 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式:Weasyprint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-weasyprint from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst
dnf95%

weasyprint 69.0-2.fc45

Utility to render HTML and CSS to PDF

https://weasyprint.org

sudo dnf install weasyprint
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: weasyprint
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Weasyprint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: weasyprint from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst
Scoop95%

main/weasyprint

scoop install main/weasyprint
  • normalized package name match
  • 匹配方式:Weasyprint
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/weasyprint.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation