Registry / http-networking / gotenberg-client

gotenberg-client

JSON →
library0.14.0pypypi✓ verified 84d ago

A Python client for interfacing with the Gotenberg API. Current version 0.14.0, requires Python >=3.10. Actively maintained with regular releases.

pip install gotenberg-client
INSTALL
IMPORT
SIG · GOTENBERG-CLIENT
G
gotenberg-client
http-networkingpythonv0.14.0
Install
2.3s avg
Import
388ms
Disk
22MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.14.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.402s · 23.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.3s · import 0.374s · 24MB
22MB installed
● package 22MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GotenbergClient
from gotenberg_client import GotenbergClient
Main client class for synchronous usage.
AsyncGotenbergClient
from gotenberg_client import AsyncGotenbergClient
Asynchronous client class.
PdfRoute
from gotenberg_client import PdfRoute
Route for PDF conversions.
LibreOfficeRoute
from gotenberg_client import LibreOfficeRoute
from gotenberg_client.options import ...
Before v0.13.0, some routes were incorrectly placed in gotenberg_client.options.

Quickstart: Convert HTML to PDF using a local Gotenberg instance.

from gotenberg_client import GotenbergClient client = GotenbergClient('http://localhost:3000') with client: pdf = client.pdf.convert_html('<html><body><p>Hello, World!</p></body></html>', filename='test.html') with open('output.pdf', 'wb') as f: f.write(pdf)
Debug
Known issues
breakingDrop support for Python 3.9 in v0.14.0. Upgrade to Python >=3.10.
fix
Use Python 3.10 or higher.
affects: 0.14.0+
breakingDrop support for Python 3.8 in v0.8.0.
fix
Use Python 3.9 or higher (but note further changes).
affects: 0.8.0+
deprecatedIncorrect import path for constants: moved from gotenberg_client.options to gotenberg_client.constants in v0.13.0.
fix
Use from gotenberg_client.constants import ... instead of from gotenberg_client.options.
affects: 0.13.0+
gotchaThe async client uses httpx.AsyncClient; ensure you use await with async methods.
fix
Properly await async methods and use async context managers.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'gotenberg_client.options'
Constants and options were moved from gotenberg_client.options to gotenberg_client.constants in v0.13.0.
fix
Use 'from gotenberg_client.constants import ...' instead.
AttributeError: module 'gotenberg_client' has no attribute 'PdfRoute'
Likely using an older version or incorrect import. PdfRoute is available from the top-level module.
fix
Use 'from gotenberg_client import PdfRoute'.
Upgrade
Version history
0.14.0latest on PyPI · released Mar 11, 2026
Audit
Dependencies
httpxrequiredHTTP client for API calls
pydanticrequiredData validation and settings management
Agent activity
12 hits · last 30 days
node
12
Resources
gotenberg-client — pip install gotenberg-client · libregistry