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
Metadata
Release files for WPD 0.2.0
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 |
|---|---|---|---|---|
| wpd-0.2.0.tar.gz | 3.9 kB | Without provenance | Details for wpd-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wpd-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for wpd-0.2.0-py3-none-any.whl |
Total release size: 7.8 kB
Release files / wpd-0.2.0.tar.gz
| Download URL | wpd-0.2.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28d2aa11cb8c5c2282b91d5d85c9517e8395548350b8e888fbfcaed67784faa4
|
|
BLAKE2b-256 checksum How to use checksums |
1b445625693f8da6e77769d200237a4f3ffebc76872abdd9bf3454a0d9c65b1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / wpd-0.2.0-py3-none-any.whl
| Download URL | wpd-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3107fe623460fabd23922959a9518164470ab4bae7eb5ca45dbef37dccdef9d5
|
|
BLAKE2b-256 checksum How to use checksums |
0ce43822efa28db0bd9fbcd78ba070d319d6beac750e0908e8ce2f5a8c57fad4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for WPD 0.2.0
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.