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

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.1
File Size Uploaded
todd_torch-0.10.1.tar.gz 61.4 kB Details

Built distribution (wheel)

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

Total release size: 166.5 kB

Release files / todd_torch-0.10.1.tar.gz

Download URL todd_torch-0.10.1.tar.gz
Size 61.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a5fb60d1155c9bd2eaf0e0208649184bf491351baf0108bd28de05b1b99d319d
BLAKE2b-256 checksum
How to use checksums
1c5eafb378456798a539cc4f97ba46acc6193198c81db2bc9ba51b4b0ffa484e
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 8, 2026.

Transparency log

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

Download URL todd_torch-0.10.1-py3-none-any.whl
Size 105.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c8565f3f933ce08b239f1e94588ab7358e2a12dda4dcef77f2d5cff9ddb8e8b
BLAKE2b-256 checksum
How to use checksums
840a8a54bbdaf85ca3ec10dfe0aa041f0192ae8f81c159427b7010342acb5ee1
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 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.10.4

2 release files

0.10.3

2 release files

0.10.2

2 release files

This release

0.10.1 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