Skip to main content

Evalstand

Status: 1.0.2, stable. 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

Why

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.

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.

How to start

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

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
  • Limitations — what it does not do, stated plainly
  • 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.

Development

uv sync --all-extras --dev
uv run pytest                       # the suite
uv run python scripts/mutate.py     # 292 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

This project is licensed under the MIT License.


Author

Milton Klun
QA Automation Engineer | AI Quality Testing

LinkedInEmailLive Site

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.2

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.2
File Size Uploaded
evalstand-1.0.2.tar.gz 514.9 kB Details

Built distribution (wheel)

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

Total release size: 671.7 kB

Release files / evalstand-1.0.2.tar.gz

Download URL evalstand-1.0.2.tar.gz
Size 514.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e06ca5ca9fd4e08024a1ba510637b36789fbcef075786045f67a03c98618cd65
BLAKE2b-256 checksum
How to use checksums
b5e9c687247839a416a2522a065ef29564ea62630a7befc59260e0a7f9b411a7
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 27, 2026.

Transparency log

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

Download URL evalstand-1.0.2-py3-none-any.whl
Size 156.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acafa1fb030bb029533217f2466a66a28dfecedfac28109a8a72da3d00bb0bb2
BLAKE2b-256 checksum
How to use checksums
898c1da154da70bd890799d8ebd1dd2b0d6d4b650ce0214e9bf6aa23cc5ca02c
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 27, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

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