pdfbro: Rust-native PDF conversion, embeddable in Python.
Project description
pdfbro (Python)
Rust-native PDF conversion, embeddable. See spec at
docs/superpowers/specs/2026-05-01-bindings-design.md.
Install
pip install pdfbro
Quick start
from pdfbro import PdfBro
with PdfBro() as f:
pdf = f.html_to_pdf("<h1>hi</h1>")
open("out.pdf", "wb").write(pdf)
Async
import asyncio
from pdfbro import AsyncPdfBro
async def main():
f = await AsyncPdfBro.create()
try:
pdf = await f.html_to_pdf("<h1>hi</h1>")
finally:
await f.close()
return pdf
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdfbro-0.2.0.tar.gz
(143.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdfbro-0.2.0.tar.gz.
File metadata
- Download URL: pdfbro-0.2.0.tar.gz
- Upload date:
- Size: 143.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c08d7d8e13de63fb33bf228254f915b207a555ce3b6863a588d32d12b9b3cbd2
|
|
| MD5 |
ff770da83f7f1ba8a4007789312106a7
|
|
| BLAKE2b-256 |
bb69e2e568381ed01cfd92b70baae13027637d3eff1f5d6f0c0b61f1e32f3218
|
File details
Details for the file pdfbro-0.2.0-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: pdfbro-0.2.0-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5780f0d0de39afe3abef341a20405dd1f54529ac42c56c9a3301004414c88924
|
|
| MD5 |
4d31b4bdeefe18cc4e1abda2469cf880
|
|
| BLAKE2b-256 |
f9ba097ad60a1413730b1ac77f07a3b506039def8e914fbc63c74afa174b4d8b
|