api.services.ultimate3000.render ================================ .. py:module:: api.services.ultimate3000.render .. autoapi-nested-parse:: PNG of an estimation's machines, for the e-mails and the Airtable record. The machines are drawn in CSS 3D on info.rewake.fr/ultimate3000/render/: only a real browser renders that faithfully, so this runs Debian's headless Chromium (installed in the Dockerfile) on that page. One image per estimation, kept on disk; an estimation never changes. Attributes ---------- .. autoapisummary:: api.services.ultimate3000.render.logger Functions --------- .. autoapisummary:: api.services.ultimate3000.render.image_path api.services.ultimate3000.render.render Module Contents --------------- .. py:data:: logger .. py:function:: image_path(est_id: str) -> pathlib.Path .. py:function:: render(est_id: str) -> bytes | None Renders and stores the image; None (logged) if it couldn't. Never raises: the request already succeeded.