Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdfbro-0.2.0-cp38-abi3-macosx_11_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

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

Hashes for pdfbro-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c08d7d8e13de63fb33bf228254f915b207a555ce3b6863a588d32d12b9b3cbd2
MD5 ff770da83f7f1ba8a4007789312106a7
BLAKE2b-256 bb69e2e568381ed01cfd92b70baae13027637d3eff1f5d6f0c0b61f1e32f3218

See more details on using hashes here.

File details

Details for the file pdfbro-0.2.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pdfbro-0.2.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5780f0d0de39afe3abef341a20405dd1f54529ac42c56c9a3301004414c88924
MD5 4d31b4bdeefe18cc4e1abda2469cf880
BLAKE2b-256 f9ba097ad60a1413730b1ac77f07a3b506039def8e914fbc63c74afa174b4d8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page