Skip to main content

Python bindings for docoxide, a fast HTML to PDF converter written in Rust

Project description

docoxide

docoxide

Python bindings for docoxide, a fast, browser-free HTML to PDF converter.

Install

pip install docoxide

Requires Python 3.9 or newer.

Library usage

from docoxide import convert

html = "<h1>Hello</h1>"
pdf: bytes = convert(html)

with open("hello.pdf", "wb") as f:
    f.write(pdf)

With CSS:

pdf = convert(html, "h1 { color: red; }")

CLI usage

docoxide --input page.html --output page.pdf
docoxide --input page.html --css style.css --output page.pdf

Reads from stdin if --input is omitted or set to -:

echo '<h1>Hello</h1>' | docoxide --output hello.pdf

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

docoxide-0.1.0a1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distributions

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

docoxide-0.1.0a1-cp39-abi3-win_amd64.whl (107.3 kB view details)

Uploaded CPython 3.9+Windows x86-64

docoxide-0.1.0a1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (238.3 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

docoxide-0.1.0a1-cp39-abi3-macosx_11_0_arm64.whl (210.5 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

docoxide-0.1.0a1-cp39-abi3-macosx_10_12_x86_64.whl (214.0 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

docoxide-0.1.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (246.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file docoxide-0.1.0a1.tar.gz.

File metadata

  • Download URL: docoxide-0.1.0a1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for docoxide-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 0f0a215e072d7d956fabc29d62048904bcdb1b8d8e518754c3f72bf694c86e0d
MD5 838be11e4acc998ea9b171af1af9b8bc
BLAKE2b-256 d59042b76b33cbd96774bf3c21e4998aea77e11beb11e3472d85290dc5f085c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for docoxide-0.1.0a1.tar.gz:

Publisher: publish-pypi.yml on docoxide/docoxide

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docoxide-0.1.0a1-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: docoxide-0.1.0a1-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 107.3 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for docoxide-0.1.0a1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1117852d6d1ec0f04e2e5ab2cab06d9997125380024d7df2fa7e2a57c1be1637
MD5 f869a5a5222360d32834382af3b7c7d0
BLAKE2b-256 444f314277014774599b03dd22d4a7a262aa23d62cb167ff2e5082e2f3393c4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for docoxide-0.1.0a1-cp39-abi3-win_amd64.whl:

Publisher: publish-pypi.yml on docoxide/docoxide

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docoxide-0.1.0a1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for docoxide-0.1.0a1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8f9e414d87c193895673cc1a1b5c0a1942549cb03e82ad6032bfdde4d8c08820
MD5 03785884115e87b2d34059733bfe7860
BLAKE2b-256 8cbdfa5bc867629b01e63c96b9d5badfec5661f2daf63a5d80746663c2f39433

See more details on using hashes here.

Provenance

The following attestation bundles were made for docoxide-0.1.0a1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish-pypi.yml on docoxide/docoxide

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docoxide-0.1.0a1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for docoxide-0.1.0a1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24689da092664e1f6cbf66b7cf63da090b58b87bec3e57b60d42a3462d3057fa
MD5 27fd0711183626e3f02b4fbcddb0f91a
BLAKE2b-256 23335978cd69fbe2894e7080d7cf0ebd9119375c27ccd137b10debcb6a67f0e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for docoxide-0.1.0a1-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on docoxide/docoxide

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docoxide-0.1.0a1-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for docoxide-0.1.0a1-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f1d4264cc8ec9857d939325031251ab3c525de4f9f390d9e6f59ba3ae6358cb3
MD5 99b41371f829860ab2032d27d24f5191
BLAKE2b-256 e95c4a644d164e251912baedc7cbfb68f4ebf0af0391fdd0aa49d73274e7bacc

See more details on using hashes here.

Provenance

The following attestation bundles were made for docoxide-0.1.0a1-cp39-abi3-macosx_10_12_x86_64.whl:

Publisher: publish-pypi.yml on docoxide/docoxide

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docoxide-0.1.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for docoxide-0.1.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6a8a1d2639333c0760f16e15d60475331a386f136f9c4ec05c963e80dbfceb95
MD5 1658d8e2bc0776d8c4abd86d74f26669
BLAKE2b-256 bbe492ccac2a61949032f582490cd0a786c7783e0795bacd0e42521344ed4dd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for docoxide-0.1.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-pypi.yml on docoxide/docoxide

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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