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.3

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.3
File Size Uploaded
todd_torch-0.10.3.tar.gz 61.5 kB Details

Built distribution (wheel)

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

Total release size: 167.1 kB

Release files / todd_torch-0.10.3.tar.gz

Download URL todd_torch-0.10.3.tar.gz
Size 61.5 kB
Tags Source
SHA-256 checksum
How to use checksums
523d7f2673e09e833107cc0923e29c0aff678f8d9e20eb5d70d8db98f38046af
BLAKE2b-256 checksum
How to use checksums
837c38a4510ec92de148b9124e9d11a72109041204c66237e323a60c44cda08e
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 13, 2026.

Transparency log

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

Download URL todd_torch-0.10.3-py3-none-any.whl
Size 105.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bd83d050557e9ea1504463f51bd6a1666e43d17e3d8859adb4eb4d7ccfa0f07
BLAKE2b-256 checksum
How to use checksums
98954e35ffd33ed9c3803275ac0e970a4857d545bf0135606df791061aaf95a8
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 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.10.4

2 release files

This release

0.10.3 This release

2 release files

0.10.2

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