This release is a pre-release and may not be stable for production use.
weblitz
HTML, URLs, RDLC reports and Markdown to PDF, Word, Excel and PowerPoint, as Chrome prints them, with no browser.
import weblitz
weblitz.render_html("<h1>Hello</h1>", format="A4", margin={"top": "2cm"}).save("hello.pdf")
weblitz.render_url("https://example.com", print_background=True, path="example.pdf")
weblitz.render_html(page, output="xlsx").save("page.xlsx")
weblitz.render_url("https://example.com", output="png", viewport={"width": 1280, "device_scale_factor": 2}, path="example.png")
The options of render_html and render_url are Playwright's page.pdf() options by their Python names. Every call
answers a Result (file, content_type, extension, pages, notes, trial) or raises WeblitzError, whose
code says why.
output="png" (or "jpeg", "webp", "tiff") draws the page instead of printing it, with Playwright's screenshot
names: by default the whole page as a screen shows it, in one image, laid out in an 800 by 600 window in screen media;
capture="viewport" (or full_page=False) the window alone; capture="pages" each printed page as the PDF prints it
(paper, margins, page_ranges), answered as a ZIP of page-1.png, page-2.png... (a TIFF holds every page in one
file). viewport={"width": ..., "height": ..., "device_scale_factor": 2} sets the window and the image's pixels per
CSS pixel, quality a JPEG's or WebP's (0 to 100).
Calls go to a pool of worker processes kept warm, started on first use. weblitz.configure(...) sets its options
(workers, concurrency, license, timeout in milliseconds...); weblitz.Engine is a pool of your own and
weblitz.AsyncEngine the same for asyncio (cancelling the awaiting task cancels the render).
Without a licence key (license= or the environment's SSRS2_LICENSE) PDF and image pages carry a trial watermark.
Wheels exist for Linux with glibc (x64, arm64) and macOS on Apple silicon; Alpine and other musl systems are not supported yet.
Metadata
Release files for weblitz 2.0.0b11
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 | Actions |
|---|---|---|---|---|
| weblitz-2.0.0b11.tar.gz | 22.8 kB | Without provenance | Details for weblitz-2.0.0b11.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| weblitz-2.0.0b11-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details for weblitz-2.0.0b11-py3-none-win_arm64.whl |
| weblitz-2.0.0b11-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for weblitz-2.0.0b11-py3-none-win_amd64.whl |
| weblitz-2.0.0b11-py3-none-manylinux_2_27_x86_64.whl | Python 3 | none | Linux glibc 2.27+ x86-64 | Details for weblitz-2.0.0b11-py3-none-manylinux_2_27_x86_64.whl |
| weblitz-2.0.0b11-py3-none-manylinux_2_27_aarch64.whl | Python 3 | none | Linux glibc 2.27+ ARM64 | Details for weblitz-2.0.0b11-py3-none-manylinux_2_27_aarch64.whl |
| weblitz-2.0.0b11-py3-none-macosx_13_0_x86_64.whl | Python 3 | none | macOS 13.0+ x86-64 | Details for weblitz-2.0.0b11-py3-none-macosx_13_0_x86_64.whl |
| weblitz-2.0.0b11-py3-none-macosx_13_0_arm64.whl | Python 3 | none | macOS 13.0+ ARM64 | Details for weblitz-2.0.0b11-py3-none-macosx_13_0_arm64.whl |
Total release size: 529.7 MB
Release files / weblitz-2.0.0b11.tar.gz
| Download URL | weblitz-2.0.0b11.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c420233f1a879d12ee13c234dd5e9ca54ef3107cbb489ca9128277db3a9f57b4
|
|
BLAKE2b-256 checksum How to use checksums |
bd1852122b6590d73215511f495c1d03b2521cb830bb05472a2b555bcd4b8024
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / weblitz-2.0.0b11-py3-none-win_arm64.whl
| Download URL | weblitz-2.0.0b11-py3-none-win_arm64.whl |
|---|---|
| Size | 84.1 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
82d5a824e2507b30debc59ea9852dbb05846c64d970be0d378f21bd9ad3ed6c8
|
|
BLAKE2b-256 checksum How to use checksums |
4ab2d8f47133a8512d2b08e4afb240e71f22ff33426ffc0f96fa77bb15627018
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / weblitz-2.0.0b11-py3-none-win_amd64.whl
| Download URL | weblitz-2.0.0b11-py3-none-win_amd64.whl |
|---|---|
| Size | 87.4 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
66f5ed515d3b6df6fb0ca92243108104551fa8a91ed3fc8908c3da79746fc6dc
|
|
BLAKE2b-256 checksum How to use checksums |
c43770533081f13419320e58644990d0d56d29269f239a63600bb0fce237c1f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / weblitz-2.0.0b11-py3-none-manylinux_2_27_x86_64.whl
| Download URL | weblitz-2.0.0b11-py3-none-manylinux_2_27_x86_64.whl |
|---|---|
| Size | 89.6 MB |
| Tags | Linux glibc 2.27+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
4b6ec38384c6810cc9f451f0868443973efd6129fc8fd6faed04bf0a30491b3c
|
|
BLAKE2b-256 checksum How to use checksums |
df4d2f6ab2a9cdc3d8859accea652735bfec482d097ba7afdf26a0fe3a6d28c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / weblitz-2.0.0b11-py3-none-manylinux_2_27_aarch64.whl
| Download URL | weblitz-2.0.0b11-py3-none-manylinux_2_27_aarch64.whl |
|---|---|
| Size | 86.4 MB |
| Tags | Linux glibc 2.27+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
53a2a09369682830b966591352caaf535528c1ec71145fd5472fa02ca52bd643
|
|
BLAKE2b-256 checksum How to use checksums |
d49882973d59e233a6c629acc6fe0b845760c7e6e00dad9812b35d1e28daf3cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / weblitz-2.0.0b11-py3-none-macosx_13_0_x86_64.whl
| Download URL | weblitz-2.0.0b11-py3-none-macosx_13_0_x86_64.whl |
|---|---|
| Size | 93.0 MB |
| Tags | Python 3 macOS 13.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
f1f10c75faae7279aaf44181de32557c63185fff9654b9f20204627b848ce2f0
|
|
BLAKE2b-256 checksum How to use checksums |
e43b4ad456117ab848942f6c0e5d5697541c44d28f605a12e1e4b456105b07ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / weblitz-2.0.0b11-py3-none-macosx_13_0_arm64.whl
| Download URL | weblitz-2.0.0b11-py3-none-macosx_13_0_arm64.whl |
|---|---|
| Size | 89.2 MB |
| Tags | Python 3 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f1f071f865b7cde5afd22012209d19b7889b5b125ddb59e835fcace28f3f61d5
|
|
BLAKE2b-256 checksum How to use checksums |
c45eb45929c86635483571d67afa2626ff025266ffc8f53c182602e27961a363
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for weblitz 2.0.0b11
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.