Installation¶
YMPrint requires Python 3.14 or newer.
With uv (recommended)¶
uv is the fastest way to install and run YMPrint as a tool:
uv tool install ymprint
This puts the ym command on your PATH. Verify it:
ym --help
To run it once without a persistent install:
uvx ymprint --help
With pip¶
pip install ymprint
From source¶
git clone https://github.com/StructuralPython/yamlreports.git
cd yamlreports
uv sync
uv run ym --help
What gets installed¶
Installing YMPrint pulls in everything needed to render PDFs:
Dependency |
Role |
|---|---|
|
The PDF layout engine that typesets your story. |
|
Read PDF backgrounds, fill form fields, overlay content. |
|
Interpolate |
|
Validate the document, style, and table configuration. |
|
Syntax highlighting for |
|
Parse your report YAML. |
|
The |
A set of fonts is bundled with YMPrint, so documents render consistently on any machine without installing system fonts. See the Fonts reference.
Tip
matplotlib is not a hard dependency. Install it in the same environment only if you
plan to use the _matplotfig block.
Live preview (optional)¶
The ym live command opens the rendered PDF in the
Okular document viewer and hot-reloads it on every save. If you
want to use live mode, install Okular through your system package manager, for example:
sudo apt install okular # Debian / Ubuntu