Skip to main content

laudo

Write your report in Markdown, put your photos in a folder, and get a finished Word (.docx) or PDF document built from a template.

Installation

You need Python 3.13+ and pipx (how to install pipx). Then run:

pipx install laudo

For PDF output, also install LibreOffice.

To update later: pipx upgrade laudo

Quick start

  1. Create a folder for your report:

    my_report/
    ├── template.docx    # the Word template
    ├── context.txt      # (optional) variables
    ├── laudo.md         # your text
    └── fotos/           # your photos
    
  2. Open the program inside that folder:

    cd my_report
    laudo
    
  3. In the window:

    • Legendas — write a caption for each photo.
    • Gerar laudo — creates laudo.docx (tick PDF to get laudo.pdf).

Prefer the terminal? laudo gen creates laudo.docx, and laudo gen --pdf creates laudo.pdf.

Writing the report

Text (.md files)

Write normally in Markdown: # Title, ## Subtitle, **bold**, *italic* and - lists.

Each .md file becomes a variable in the template with the file's name. For example, laudo.md is inserted where the template has {{p laudo|markdown }}.

Variables (context.txt)

One variable per line:

requisitante = Delegacia de Anápolis
data_pericia = 15/10/2026

Use them in the template or in the text as {{ requisitante }}.

Photos

Put the photos in fotos/. Subfolders become groups (e.g. fotos/local/).

Inside the text:

You write Result
image(foto1) inserts the photo foto1.jpg with its caption
image_group(local, 3) inserts every photo in fotos/local/, 3 per row (any number works)
${foto1} the number of that photo, e.g. "Conforme Foto ${foto1}" → "Conforme Foto 3"
  • Write image(...) and image_group(...) alone on their own line (otherwise generation stops and shows the line to fix).
  • Photos are numbered automatically in the order they appear in the document.
  • ${foto1} only works if that photo was inserted with image or image_group; otherwise generation stops with an error.

Shared templates (optional)

If you keep your templates in one folder (one subfolder per template, each with its own template.docx), set the LAUDOS_TEMPLATES_FOLDER environment variable to that folder. Then, inside a report folder, run:

laudo init <template-name>

Other commands

Command What it does
laudo opens the main window
laudo gen [--pdf] generates the report
laudo captions opens only the caption editor
laudo reduce-images fotos fotos shrinks large photos (you pick the maximum size). Overwrites the originals: use another destination folder to keep them
laudo --help lists every command and option

Full documentation

The user guide covers everything else: sections inside .md files, .json data, photo groups in the template, numbering tables and figures, shared templates, and the full list of filters and functions.

License

MIT

Metadata

Release files for laudo 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for laudo 0.2.6
File Size Uploaded Provenance Actions
laudo-0.2.6.tar.gz 279.8 kB Without provenance Details for laudo-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for laudo 0.2.6
File Interpreter ABI Platform Actions
laudo-0.2.6-py3-none-any.whl Python 3 none any Details for laudo-0.2.6-py3-none-any.whl

Total release size: 566.1 kB

Release files / laudo-0.2.6.tar.gz

Download URL laudo-0.2.6.tar.gz
Size 279.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fdbf9a0d89592ed1521b0b1fdba7c080f46e6f366c80322d81aef6ea5a0131d7
BLAKE2b-256 checksum
How to use checksums
5d24477ac9d0baf61b083b88ba97b5d2760b76560675a49be3e4e17f52dd3ede
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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":true}

Release files / laudo-0.2.6-py3-none-any.whl

Download URL laudo-0.2.6-py3-none-any.whl
Size 286.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10b9df8314650746f912c0884af9baef69cdb51d443d85eeb0265fd2ec6c0b68
BLAKE2b-256 checksum
How to use checksums
2b9c3df1db61e2ee0d3539ca15461c35a9833b641a40b7c8b9055c1d0cbf2b68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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":true}

Security for laudo 0.2.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page