Skip to main content

todd-torch

HTMLVisual 导出 PDF/PNG 前,需额外安装 Playwright 的 Chromium 浏览器:

python -m playwright install chromium

调用方负责 Playwright 和 Chromium 的生命周期,并可将同一个 Browser 传给多个导出。HTMLVisual 支持直接导出 PNG,输出尺寸与画布一致:

with (
    sync_playwright() as playwright,
    playwright.chromium.launch() as browser,
):
    visual.export_pdf(browser, path=Path('result.pdf'))
    visual.export_screenshot(browser, path=Path('result.png'))

Metadata

Release files for todd-torch 0.10.2

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

Source distribution (sdist)

Source distribution for todd-torch 0.10.2
File Size Uploaded
todd_torch-0.10.2.tar.gz 61.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for todd-torch 0.10.2
File Interpreter ABI Platform
todd_torch-0.10.2-py3-none-any.whl Python 3 none any Details

Total release size: 167.0 kB

Release files / todd_torch-0.10.2.tar.gz

Download URL todd_torch-0.10.2.tar.gz
Size 61.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b7da53cd13f47cbc859d6203f65ad4a019387d498aeabf0922da8e61d6acac42
BLAKE2b-256 checksum
How to use checksums
3a8e785415ee4f9a54ec2a844d9945c6bfbfcde2dd73ea40bc8bc69e04040f84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / todd_torch-0.10.2-py3-none-any.whl

Download URL todd_torch-0.10.2-py3-none-any.whl
Size 105.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23c6d42c8369f9bcccd3fe92835ca9dfa06ac7bc16d6e5dc39e0d98208c12c37
BLAKE2b-256 checksum
How to use checksums
fe0862d1006bbc84e77ec117f50a2fbbfa60bd04eec2c138c2cccaaff0919497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.10.4

2 release files

0.10.3

2 release files

This release

0.10.2 This release

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.1

2 release 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