{"id":23804,"library":"gotenberg-client","title":"Gotenberg Client","description":"A Python client for interfacing with the Gotenberg API. Current version 0.14.0, requires Python >=3.10. Actively maintained with regular releases.","status":"active","version":"0.14.0","language":"python","source_language":"en","source_url":"https://github.com/stumpylog/gotenberg-client","tags":["gotenberg","pdf","conversion","api-client"],"install":[{"cmd":"pip install gotenberg-client","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"HTTP client for API calls","package":"httpx","optional":false},{"reason":"Data validation and settings management","package":"pydantic","optional":false}],"imports":[{"note":"Main client class for synchronous usage.","wrong":null,"symbol":"GotenbergClient","correct":"from gotenberg_client import GotenbergClient"},{"note":"Asynchronous client class.","wrong":null,"symbol":"AsyncGotenbergClient","correct":"from gotenberg_client import AsyncGotenbergClient"},{"note":"Route for PDF conversions.","wrong":null,"symbol":"PdfRoute","correct":"from gotenberg_client import PdfRoute"},{"note":"Before v0.13.0, some routes were incorrectly placed in gotenberg_client.options.","wrong":"from gotenberg_client.options import ...","symbol":"LibreOfficeRoute","correct":"from gotenberg_client import LibreOfficeRoute"}],"quickstart":{"code":"from gotenberg_client import GotenbergClient\n\nclient = GotenbergClient('http://localhost:3000')\nwith client:\n    pdf = client.pdf.convert_html('<html><body><p>Hello, World!</p></body></html>', filename='test.html')\n    with open('output.pdf', 'wb') as f:\n        f.write(pdf)","lang":"python","description":"Quickstart: Convert HTML to PDF using a local Gotenberg instance."},"warnings":[{"fix":"Use Python 3.10 or higher.","message":"Drop support for Python 3.9 in v0.14.0. Upgrade to Python >=3.10.","severity":"breaking","affected_versions":"0.14.0+"},{"fix":"Use Python 3.9 or higher (but note further changes).","message":"Drop support for Python 3.8 in v0.8.0.","severity":"breaking","affected_versions":"0.8.0+"},{"fix":"Use from gotenberg_client.constants import ... instead of from gotenberg_client.options.","message":"Incorrect import path for constants: moved from gotenberg_client.options to gotenberg_client.constants in v0.13.0.","severity":"deprecated","affected_versions":"0.13.0+"},{"fix":"Properly await async methods and use async context managers.","message":"The async client uses httpx.AsyncClient; ensure you use await with async methods.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from gotenberg_client.constants import ...' instead.","cause":"Constants and options were moved from gotenberg_client.options to gotenberg_client.constants in v0.13.0.","error":"ModuleNotFoundError: No module named 'gotenberg_client.options'"},{"fix":"Use 'from gotenberg_client import PdfRoute'.","cause":"Likely using an older version or incorrect import. PdfRoute is available from the top-level module.","error":"AttributeError: module 'gotenberg_client' has no attribute 'PdfRoute'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}