Skip to main content

TypePress — Python

Pure Rust HTML/CSS → PDF engine. No browser required.

from typepress import TypePress

tp = TypePress()

# HTML → PDF
tp.html_to_pdf("report.html", "report.pdf")

# With options
tp.html_to_pdf(
    "report.html",
    "report.pdf",
    size="A3",
    landscape=True,
    margin="10mm",
)

# Markdown → PDF
tp.md_to_pdf("report.md", "report.pdf")

# Full API
tp.convert(
    input="report.html",
    output="report.pdf",
    size="A4",
    landscape=False,
    margin="20mm",
)

Install

pip install typepress

The package auto-downloads the typepress binary for your platform on first use.

Requirements

  • Python 3.8+
  • Linux x86_64, macOS arm64/x86_64, or Windows x86_64

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typepress-0.5.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

typepress-0.5.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file typepress-0.5.0.tar.gz.

File metadata

  • Download URL: typepress-0.5.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typepress-0.5.0.tar.gz
Algorithm Hash digest
SHA256 27f5c04dea52d736c87d606b962ab7aa277dfebce72142760445435f6b875247
MD5 b18b625e9731649d5d243f00e6924fe2
BLAKE2b-256 79604c021cebbaceee12dd04053a230606abd31374f498b9bc6c6f6598aa8394

See more details on using hashes here.

Provenance

The following attestation bundles were made for typepress-0.5.0.tar.gz:

Publisher: release.yml on alitrack/typepress

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typepress-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: typepress-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typepress-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32458ded596758aa12e11d194cd74f456896f2d0209ac4df5f74b2c600f6a5cb
MD5 5cd01c876dc3f92d4b41f2d5f9bd05db
BLAKE2b-256 63c47fe131804f583fa629b84219142f925d71c15e55de8016a554dfb23c5c79

See more details on using hashes here.

Provenance

The following attestation bundles were made for typepress-0.5.0-py3-none-any.whl:

Publisher: release.yml on alitrack/typepress

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.2

2 files

0.3.0

2 files

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