laudo
Convert markdown files to docx or pdf using docxtpl templates.
Installation
pip install laudo
Requires Python 3.13+ and LibreOffice for PDF output.
Usage
CLI
laudo gen [--dir <folder>] [--debug] [--pdf] [--output <path>] [--template <path>]
laudo captions [--dir <folder>]
laudo template <name> [--dir <folder>]
laudo vars [--dir <folder>]
laudo init <name> [--dir <folder>]
laudo install
Python API
from laudo import convert
convert("my_project/", "output.docx")
convert("my_project/", "output.pdf")
Input Folder Structure
my_project/
├── template.docx # docxtpl template with Jinja2 placeholders
├── fotos/ # Images (captions edited via GUI)
│ ├── image1.png
│ └── events/
│ └── party.jpg
├── context.txt # (optional) Variables one per line: key = value
├── intro.md # One or more .md files
└── chapter-1.md
Template
A standard Word document using docxtpl syntax with Jinja2 placeholders like {{ variable }} or {{p intro|markdown }}.
To use a template from a shared folder, create .laudo/.template with the template name and set the LAUDOS_TEMPLATES_FOLDER environment variable.
context.txt
Optional file with variables in key = value format, one per line. Lines starting with # and empty lines are ignored. These variables are available for substitution inside .md files via {{ varname }}.
Markdown files
Every .md file is read and its content is injected as a template variable named after the filename (without extension, spaces → underscores):
| File | Template variable |
|---|---|
intro.md |
intro |
chapter 1.md |
chapter_1 |
Inside markdown files you can reference context variables with {{ varname }} and embed image groups with image_group(name, cols).
Images
All images in fotos/ (including subdirectories) are available as the pics variable in templates. Use pics.group("events") to get images from a subfolder, or pics.all for all images. Captions are edited via the laudo captions GUI.
Template helpers
{{p variable\|markdown }}— render markdown as formatted docx content{{p subdoc("file.docx", key=val) }}— embed a sub-template{{p image("fotos/logo.png", width=50) }}— inline image with size control
License
MIT
Metadata
Release files for laudo 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| laudo-0.2.2.tar.gz | 96.0 kB | Without provenance | Details for laudo-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| laudo-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for laudo-0.2.2-py3-none-any.whl |
Total release size: 196.3 kB
Release files / laudo-0.2.2.tar.gz
| Download URL | laudo-0.2.2.tar.gz |
|---|---|
| Size | 96.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
989c019b6e3373ed06b1a2fb504bd4545ff890402ce51325543d1bde2fcce9dd
|
|
BLAKE2b-256 checksum How to use checksums |
e99e4ab805f5923639c8cf0dafdce4d3562492ce9c93305b68ac05fe8c25c785
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / laudo-0.2.2-py3-none-any.whl
| Download URL | laudo-0.2.2-py3-none-any.whl |
|---|---|
| Size | 100.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be6df5a800c1a2a7ef231a967061d27119b1d5292db0fbe83cc79b8a4be5bdce
|
|
BLAKE2b-256 checksum How to use checksums |
29f7704afc02631f1ec4b77e1a1c6eb150aec2d31800334198daff957e04945c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for laudo 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.