Installation#
YMPrint requires Python 3.14 or newer.
With pip#
pip install ymprint
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 document. |
|
Read PDF backgrounds, fill form fields, overlay content. |
|
Interpolate |
|
Parses inline markdown (the latest library from lepture!) |
|
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 needing to rely on system fonts (which may or may not load easily into ReportLab). 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 which hot-reloads your PDF on every save.
The Okular PDF viewer is available for every desktop platform (Windows, Mac, and many flavours of Linux).
If you want to use live mode, install Okular through your system package manager, for example:
sudo apt install okular # Debian / Ubuntu
If you are on Windows, you can install Okular with Winget or with the Windows store.