Skip to main content

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())

Metadata

Release files for pdfbro 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdfbro 0.2.0
File Size Uploaded Provenance Actions
pdfbro-0.2.0.tar.gz 143.3 kB Without provenance Details for pdfbro-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pdfbro 0.2.0
File Interpreter ABI Platform Actions
pdfbro-0.2.0-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details for pdfbro-0.2.0-cp38-abi3-macosx_11_0_arm64.whl

Total release size: 3.9 MB

Release files / pdfbro-0.2.0.tar.gz

Download URL pdfbro-0.2.0.tar.gz
Size 143.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c08d7d8e13de63fb33bf228254f915b207a555ce3b6863a588d32d12b9b3cbd2
BLAKE2b-256 checksum
How to use checksums
bb69e2e568381ed01cfd92b70baae13027637d3eff1f5d6f0c0b61f1e32f3218
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / pdfbro-0.2.0-cp38-abi3-macosx_11_0_arm64.whl

Download URL pdfbro-0.2.0-cp38-abi3-macosx_11_0_arm64.whl
Size 3.8 MB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5780f0d0de39afe3abef341a20405dd1f54529ac42c56c9a3301004414c88924
BLAKE2b-256 checksum
How to use checksums
f9ba097ad60a1413730b1ac77f07a3b506039def8e914fbc63c74afa174b4d8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Security for pdfbro 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page