Skip to main content

evalstand

Status: 1.0.1. All 8 phases complete. Install with pip install evalstand.

evalstand watch: rows land as each case finishes, one case opens to its trace tree, and fixing the wrong answer re-runs the eval on its own

Recorded from examples/demo/ — offline, no API key. The few seconds the live view takes to start are cut; everything after is the tool running unedited.

Evaluating an LLM application should feel like running a test suite.

evalstand is a local-first LLM evaluation tool for Python. You write an eval file, run a watch command, and results stream into a live terminal UI — scores, nested call traces, token counts, latency, and cost. Everything runs on your machine and persists to a local SQLite database, so you can compare a run against the one before it.

60 seconds

git clone https://github.com/MiltonKlun/Evalstand && cd Evalstand
uv sync
# qa_eval.py
from evalstand import Case, evaluate, llm
from evalstand.scorers import exact


async def answer(question: str) -> str:
    reply = await llm.acall("gpt-4o-mini", [{"role": "user", "content": question}])
    return reply.text.strip()


evaluate(
    name="capitals",
    cases=[
        Case(id="france", input="Capital of France? City only.", expected="Paris"),
        Case(id="japan", input="Capital of Japan? City only.", expected="Tokyo"),
        Case(id="peru", input="Capital of Peru? City only.", expected="Lima"),
    ],
    task=answer,
    scorers=[exact],
)
export OPENAI_API_KEY=sk-...
evalstand watch          # the live view, re-running when you edit
evalstand run            # one pass, prints a summary
evalstand serve          # browse past runs in a browser (needs the web extra)
pytest qa_eval.py        # the plain test runner; same runner underneath

Three things, and only three: Cases are the inputs, the Task is your function under test, and Scorers judge what it returned.

What you get

Live results rows appear as each case finishes, not in one batch at the end
Trace trees a call made inside another call is its child, so you can see which step went wrong
Cost and tokens per call, per case, per run — and marked as a lower bound when a call could not be priced
History every run recorded locally; history, show, compare
Watch mode edit a prompt, the eval re-runs within a second
CI gates --threshold and --fail-on-error, with documented exit codes
CI artifacts --html writes one self-contained report: full outputs, whole trace trees
Ten scorers exact, normalised, contains, regex, levenshtein, ratio, close-to, JSON fields, judge, factuality
Runs under pytest each (case, repeat) is one test item, so -k, -x, --lf all work
A web UI, optionally evalstand serve browses history in a browser and streams a running eval into it

Full capability list in PLAN.md §2. Three capabilities go beyond the tool that inspired this one:

  • Nested traces. The reference implementation's traces are a flat list.
  • Response caching. It has none, so iterating re-buys every answer.
  • Stable case identity. It matches cases by position, so inserting one silently re-pairs every later case with the wrong history.

Docs

  • Quickstart — install, write an eval, run it
  • Writing evals — cases, tasks, repeats, custom columns
  • Scorers — the library, and writing your own
  • Traces — what your task did, and what it cost
  • Watching — the live view and watch mode
  • CI — thresholds, exit codes, pull-request comments
  • Web UI — serve, the JSON API, and how to read its numbers
  • Architecture — how the pieces fit, for anyone changing them
  • Decisions — why the design is the way it is

In CI

evalstand run --threshold 0.85 --fail-on-error

0 met the bar, 1 fell below it, 2 something did not run. --output markdown produces a body for a pull-request comment. See docs/ci.md for the workflow and the full table.

Why

Existing Python options are either heavyweight platforms that push you toward a hosted service, or bare metric libraries with no runner, no persistence, and no live feedback loop. evalstand is the middle: a real runner with a real UI that stays on your machine.

Limitations

Stated up front, and kept accurate as the project grows.

A delta is not a verdict. compare reports the arithmetic difference between two runs' means. There is no significance testing, so a difference between two runs of a stochastic system may be noise. Nothing here will call a change a regression.

LLM judge scorers are unvalidated. judge and factuality work, but nobody has calibrated their verdicts against human labels on your data. Treat them as a signal, not a measurement.

The showcase baseline covers the scalar fields only, and one method. examples/pdf_extraction/BASELINE.md records one run of span selection with TypeSafe's jev-1.13.0: a regex finds candidate values and the model picks among them. It scored 30/30 invoices on six scalar fields for $0.0015. It does not score line items — span selection cannot produce a list of records — and the generative eval, which does, has not yet been run against a real model. One run of one method on a synthetic corpus is a record, not a verdict on either.

The live view takes a few seconds to start. evalstand watch imports LiteLLM at start-up — over three seconds on its own — even for an eval that never calls a model. The demo recording cuts that wait and says so.

Cost figures are lower bounds when a model is not in LiteLLM's pricing table. Unpriced calls are counted and declared, never silently treated as free.

The web UI has no authentication. evalstand serve binds localhost by default for that reason. The database holds every prompt and completion your evals sent and received, so --host 0.0.0.0 publishes all of it to anyone who can reach the port. There is no login, and adding one is not planned — put it behind something that does auth if it needs to leave the machine.

Development

uv sync --all-extras --dev
uv run pytest                       # the suite
uv run python scripts/mutate.py     # 287 mutants, all killed
uv run mkdocs serve                 # the docs site

The mutation harness is the real quality measure here. Every defect this project has found ships with a mutant that reintroduces it, so a test that stops catching its bug fails loudly rather than passing quietly. tests/unit/test_mutation_harness.py holds the harness itself to the same standard — a stale anchor reports as a broken probe, not as a survivor.

Licence

MIT. See LICENSE.


Inspired by evalite (MIT), which showed that local LLM evals could feel like running tests. evalstand is an independent Python implementation.

Release files for evalstand 1.0.1

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

Source distribution (sdist)

Source distribution for evalstand 1.0.1
File Size Uploaded
evalstand-1.0.1.tar.gz 534.9 kB Details

Built distribution (wheel)

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

Total release size: 692.6 kB

Release files / evalstand-1.0.1.tar.gz

Download URL evalstand-1.0.1.tar.gz
Size 534.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c8d3fc693c563c65eae463d83f5a2ff6fe7acb68a442d297aabac4849bc907f7
BLAKE2b-256 checksum
How to use checksums
4d926432cfc35ac451e0e20bca863e3f7e41af6f7ce6846d72d60e64eca2fab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / evalstand-1.0.1-py3-none-any.whl

Download URL evalstand-1.0.1-py3-none-any.whl
Size 157.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69f0fa77ee82080ebc74c9e95689f0943e2a527d20e47994c3589e0d66f56779
BLAKE2b-256 checksum
How to use checksums
50abf6ace830817e5cc1818e0391ed87e82482325233e040b30563e13f6a3941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.2

2 release files

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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