Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WPD-0.1.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WPD-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file WPD-0.1.0.tar.gz.

File metadata

  • Download URL: WPD-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using 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.8.0 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for WPD-0.1.0.tar.gz
Algorithm Hash digest
SHA256 961250cbe5825670491a8b73ea4a516fde2edc9669892b7473b0dbf89f5b9e3d
MD5 b41c07b9de0273db980cd3cc06372b71
BLAKE2b-256 2d7d6c11ee4d1d82cd359a6c417de2cbec04de9b91aa383d674d0be657aef26f

See more details on using hashes here.

File details

Details for the file WPD-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: WPD-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using 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.8.0 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for WPD-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4553e5fd137328114697d01547110c206049ba8e9b4bca4aa63790c72ae3d39f
MD5 17a2a4b69a734d932a4d2f3d4c87e778
BLAKE2b-256 fc1744c80cff0c4094fa64e446f44239916b00b9611077d8a50c49c5d424770f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page