api.services.ultimate3000.render¶
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/<id>: 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¶
Functions¶
|
|
|
Renders and stores the image; None (logged) if it couldn't. Never raises: the request already |
Module Contents¶
- api.services.ultimate3000.render.logger¶
- api.services.ultimate3000.render.image_path(est_id: str) pathlib.Path¶
- api.services.ultimate3000.render.render(est_id: str) bytes | None¶
Renders and stores the image; None (logged) if it couldn’t. Never raises: the request already succeeded.