Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Lutz

Lutz logo

Languages: English | Português | Español

Validated data extraction for systematic reviews: every cell of the extraction table comes with its quote, its page and a measured confidence level, plus a reliability report for the Methods section and the PRISMA 2020 checklist.

DOI Python Version License

Lutz 1.0 is a rewrite. It does not read 0.5.x projects; see upgrading from 0.5. To keep 0.5: pip install "lutz-research<1".

How it works

  1. Import PDFs. Lutz keeps the visible text of every page (hidden text is discarded), fixes the reading order of two-column pages, reads tables row by row and gives every sentence and table row a citable id.
  2. Write the codebook (the extraction form), with an Assistant, a deterministic lint and a quick test on a few articles.
  3. Autonomous mode. Three independent extractors (ideally from different vendors) fill every cell with a value, a verbatim quote and a page. The quote is checked against the page text without an LLM, an independent verifier judges whether the quote supports the value, and codebook rules act as a gate. Each cell gets a level: High, Medium or Low. Krippendorff's alpha per field measures agreement among extractors.
  4. Calibrated mode (optional). A blind pilot with one or two human raters: Cohen's kappa, weighted kappa or ICC per field with bootstrap CIs, a per-field decision, and the measured accuracy of each confidence level.
  5. Adjudication and audit. Low cells go to a human decision; a random sample of High cells is checked by hand.
  6. Report. Seven parts in Portuguese and English (Markdown and PDF): run identification, process, reliability by field, level calibration, adjudication, ready-to-paste Methods text, PRISMA 2020 map, RAISE AI-use statement, and annexes with the full log.

Install

pip install --pre lutz-research

Python 3.10+. Windows installer: see the releases page.

Windows with pip: PyMuPDF, which reads the PDFs, needs the Microsoft Visual C++ Redistributable (x64). Most machines already have it; on a fresh Windows install it with winget install --id Microsoft.VCRedist.2015+.x64 -e. If it is missing, lutz doctor says so. The lutz.exe from the releases page carries these DLLs and needs nothing else.

Quick start

lutz init my-review --pergunta "Do LLM tutors improve student engagement?"
cd my-review
lutz config set OPENROUTER_API_KEY sk-or-...   # one key for every model (https://openrouter.ai/keys)
# choose E1, E2, E3 (extractors) and V (verifier) in lutz web > Settings, or in lutz.yaml
lutz doctor --chamar
lutz load ~/papers/
lutz codebook new                 # or: lutz codebook import codebook.yaml
lutz codebook test --campo sample_size
lutz codebook freeze
lutz extract                      # cost estimate, confirmation, run
lutz adjudicate export            # then: lutz adjudicate import <file>
lutz audit sample                 # then: lutz audit import <file>
lutz report
lutz web                          # the same flow in the browser

Every model runs through OpenRouter: one key, the whole catalog, prices and usage in the Settings screen; see configuration.

Interfaces

  • CLI lutz — reference.
  • Web — lutz web (127.0.0.1 only): Library, Codebook, Pilot, Extraction, Results, Adjudication, Report, API & MCP, Settings.
  • REST API — OpenAPI at /api/docs while lutz web runs.
  • MCP server — lutz mcp --projeto . (stdio, read-only) for Claude Desktop, Cursor and VS Code.

Documentation

How to cite

@software{cabral2026lutz,
  author  = {Cabral, João Guilherme Silva and Azevedo Farias, Anna Karoline},
  title   = {{Lutz: validated data extraction for systematic reviews}},
  year    = {2026},
  version = {1.0.0a1},
  doi     = {10.5281/zenodo.19982571},
  url     = {https://github.com/jooguilhermesc/lutz}
}

License

MIT

Metadata

Release files for lutz-research 1.0.0a1

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

Source distribution (sdist)

Source distribution for lutz-research 1.0.0a1
File Size Uploaded Provenance Actions
lutz_research-1.0.0a1.tar.gz 11.8 MB Without provenance Details for lutz_research-1.0.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lutz-research 1.0.0a1
File Interpreter ABI Platform Actions
lutz_research-1.0.0a1-py3-none-any.whl Python 3 none any Details for lutz_research-1.0.0a1-py3-none-any.whl

Total release size: 16.1 MB

Release files / lutz_research-1.0.0a1.tar.gz

Download URL lutz_research-1.0.0a1.tar.gz
Size 11.8 MB
Tags Source
SHA-256 checksum
How to use checksums
8ee1c5045b2b324f63e9dfdb5bd93d603e7f44d316d8f993608442d9a0ca7324
BLAKE2b-256 checksum
How to use checksums
2b29721119a5732311969af41b66d2da914df92150223aec1953dcd6798a6272
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / lutz_research-1.0.0a1-py3-none-any.whl

Download URL lutz_research-1.0.0a1-py3-none-any.whl
Size 4.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
74ea526518cab61cced268b6437c0013260363035d09d6719d0d7eef0245b563
BLAKE2b-256 checksum
How to use checksums
8db34808fb62b905810233ed628edc5b0402645abf7c8c23f2ba4086c24858ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for lutz-research 1.0.0a1

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