Skip to main content

WeasyPrint Daemon

Protocol

start header

On startup, wpd sends a header to stdout, always on a single line:

{"wpd": "<implementation name>", "version": "<version>", "protocol": "1"}\n

job submission

job submission, to stdin:

{"id": "xxx", "css": "css content", "size": <html content size>}\n
html content\n

The json header must be on one line.

cancel job

{"id": "xxx", "action": "cancel"}\n

The job may be canceled by the renderer, but may also be rendered and returned.

get results

result retrieval, from stdout:

{"id": "xxx", "size": <file size>}\n
PDF content\n

The json header will always be on one line.

Any error will be reported as following:

{"id": "xxx", "error": ""}

stopping

To stop the daemon, just close stdin

Release files for WPD 0.1.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 WPD 0.1.1
File Size Uploaded
WPD-0.1.1.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for WPD 0.1.1
File Interpreter ABI Platform
WPD-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / WPD-0.1.1.tar.gz

Download URL WPD-0.1.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
88be42e116d8becc9c3e68037c64566ddf967d8ea0bffa4b4c5630ad85795a41
BLAKE2b-256 checksum
How to use checksums
6e77da008a6da7321d72e56e278714f70777fd965b4752b8633b3bbd892d5f13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

Release files / WPD-0.1.1-py3-none-any.whl

Download URL WPD-0.1.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5d23d7a16ef2f3378d02e61c866451c3c293c7d2eabc500a3390279ec99828f
BLAKE2b-256 checksum
How to use checksums
5cac58ff5b091ee72468fa6e3273bb605d954864513270764b5da7749668aafd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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