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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| todd_torch-0.10.4.tar.gz | 61.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| todd_torch-0.10.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 167.0 kB
Release files / todd_torch-0.10.4.tar.gz
| Download URL | todd_torch-0.10.4.tar.gz |
|---|---|
| Size | 61.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e79bf8a7be9b8ed25f34d615eef39879bb16ee7e4f8ed94597f0a298cd4a18b
|
|
BLAKE2b-256 checksum How to use checksums |
b4e134b3ac38eea73712155eade6d5bd6e4828728c9b60abce72bf17b9d429ae
|
| 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 logRelease files / todd_torch-0.10.4-py3-none-any.whl
| Download URL | todd_torch-0.10.4-py3-none-any.whl |
|---|---|
| Size | 105.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff9b4a2538a32452820b9e2c8e12f7b8cf2e2c3721ad8fae859268e319fb6fd2
|
|
BLAKE2b-256 checksum How to use checksums |
376f5dca2d3f10e9d7061a092edaddfc2656f6732bcbf0ab88b4c073d7216fc7
|
| 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 logSecurity for todd-torch 0.10.4
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for todd_torch-0.10.4.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.