pdfrender — Python SDK
HTML and CSS to PDF API and MCP server. WeasyPrint with page headers, footers and page numbers, no headless browser. Hosted in Germany.
pip install pdfrender
Get an API key and pass it to the client:
import os
from pdfrender import AuthenticatedClient
from pdfrender.api.account import get_me
client = AuthenticatedClient(
base_url="https://api.pdfrender.dev",
token=os.environ["PDFRENDER_API_KEY"],
auth_header_name="X-API-Key",
prefix="",
)
print(get_me.sync(client=client))
Every operation is a module with sync, sync_detailed, asyncio and asyncio_detailed; file fields take a pdfrender.types.File(payload=..., file_name=..., mime_type=...).
Operations
| Operation | Module | What it does |
|---|---|---|
GET /v1/me |
pdfrender.api.account.get_me |
Your plan, remaining requests, and remaining credits |
POST /v1/render |
pdfrender.api.render.render_html_to_pdf |
Render an HTML document to a PDF |
Generated with openapi-python-client from openapi.sdk.json. API reference: https://pdfrender.dev/docs · Support: https://pdfrender.dev/support
Metadata
Release files for pdfrender 1.0.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 | |
|---|---|---|---|
| pdfrender-1.0.0.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pdfrender-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.4 kB
Release files / pdfrender-1.0.0.tar.gz
| Download URL | pdfrender-1.0.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a58013cfb2565cb6d8e57a743144836645f88c45cf844331ec7707daf5a8b8f
|
|
BLAKE2b-256 checksum How to use checksums |
021b4732dcbb9b52bbbc6aa39005a471b6f855dc85126fa3b532148516214604
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / pdfrender-1.0.0-py3-none-any.whl
| Download URL | pdfrender-1.0.0-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86dbc9c0ba1a77921d4203d52ee635025abeb84bf0c9c15ed9739aa18cbe3bd4
|
|
BLAKE2b-256 checksum How to use checksums |
f77769992a1b6e85e8ccd20b9b2a941642446691dc83a1ca9a1e07a8125d4191
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency log