How WeasyPrint is used
WeasyPrint is a dependency in 12 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 91 projects, and what it is used with below comes from all of them. The most used alternative in our scan is PyPDF (64 projects). Projects that use it most often also use python-dotenv (86.8%), Requests (79.1%), FastAPI (78.0%).
WeasyPrint popularity over time
Gid Score 63: downloads 84, use in agent projects 49, GitHub stars 50, downloads trend 57 (each 0-100). How it is calculated.
Often used with WeasyPrint
| python-dotenv | 86.8% of WeasyPrint projects · 9.5× more than average |
|---|---|
| Requests | 79.1% of WeasyPrint projects · 11.6× more than average |
| FastAPI | 78.0% of WeasyPrint projects · 10.4× more than average |
| Pydantic | 75.8% of WeasyPrint projects · 8.8× more than average |
| Uvicorn | 75.8% of WeasyPrint projects · 9.9× more than average |
| OpenAI Python Library | 74.7% of WeasyPrint projects · 18.9× more than average |
| NumPy | 73.6% of WeasyPrint projects · 12.6× more than average |
| Pillow | 73.6% of WeasyPrint projects · 19.2× more than average |
From all 91 projects in our scan that use WeasyPrint, including the dependency samples.
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|---|
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list WeasyPrint as a dependency.
How WeasyPrint is funded
Open Collective: CourtBouillon
| Received, last 12 months | $9,942 Oct 2025 – Sep 2026 |
|---|---|
| Estimated annual budget | €11,499 Open Collective's estimate |
| Balance | $4,024 |
| Raised since the start | $62,071 · $58,047 paid out |
| Typical month median, last 12 months | $766 · $863 over 24 months |
| Last 12 months vs the 12 before | -23% |
| Contributors, last 12 months | 26 |
Top company backers all time, 25 companies in total
| Spacinov | €14,800 since Jan 2022 |
|---|---|
| Kobalt | €5,563 since Feb 2022 |
| Grip Angebotssoftware | €3,380 since Apr 2021 |
| Simonsoft | €2,160 since Oct 2020 |
| Menutech | €2,040 since Nov 2020 |
Oct 2021Sep 2026
Money by month, last five years. First money received in Oct 2020. The typical month is the median: one big one-off donation does not move it.
The same collective is named by 5 more tools in our catalog: cssselect2, Pyphen, pydyf, tinyhtml5, CairoSVG.
USD after payment processor fees, as Open Collective reports it; fiscal host Open Source Europe. Source
Ways to fund WeasyPrint
Open Collective
As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.
Install
| Package | pip install weasyprint |
|---|---|
| Main stacks | Python (90), Next.js (1) |
| Example projects | assafelovic/gpt-researcher, VRSEN/OpenSwarm, sjtu-sai-agents/X-Master, GeotrekCE/Geotrek-admin, jaguarliuu/xunlong |
Alternatives to WeasyPrint
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside WeasyPrint are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| PyPDF pypi Pure-Python library for reading, merging, splitting and transforming PDF files. |
76 | 64 (3.9%) | 38.8M | 10.3K | BSD-3-Clause |
| ReportLab pypi Python library for generating PDFs and graphics programmatically. |
65 | 26 (1.6%) | 17.8M | — | BSD |
More in Files, images and media: Sharp Pillow Nodemailer jsPDF SheetJS qrcode (JavaScript) JSZip openpyxl