Skip to main content

evalvcr (Python Companion)

Local-first AI-agent & MCP evaluation and deterministic VCR cassette testing suite — pure Python (>= 3.10, zero required external runtime dependencies) with a guarded pytest11 plugin.

Shares exact byte-level evalvcr.cassette.v1 and evalvcr.report.v1 camelCase + JCS canonical JSON + SHA-256 parity with the TypeScript evalvcr packages so cassettes recorded in TypeScript replay strictly in Python and vice versa.

Installation

pip install evalvcr
# With optional pytest plugin support:
pip install "evalvcr[pytest]"

Quick Start (pytest)

import pytest
from evalvcr import CassetteVCR, exact_match


@pytest.mark.evalvcr(mode="auto", cassette="weather-agent")
def test_agent_replay(evalvcr_cassette: CassetteVCR) -> None:
    interaction = evalvcr_cassette.interact(
        kind="llm.chat",
        provider="anthropic",
        request={"method": "POST", "target": "/v1/messages", "body": {"prompt": "hi"}},
        execute=lambda: {"response": {"status": 200, "sdk": {"text": "hello"}}},
    )
    res = exact_match()({"output": interaction["response"]["sdk"]["text"], "expected": "hello"})
    assert res["score"] == 1.0

CLI

python -m evalvcr --help
python -m evalvcr run ./evals --mode replay
python -m evalvcr inspect .evalvcr/cassettes/demo.evalvcr.json
python -m evalvcr scrub .evalvcr/cassettes/demo.evalvcr.json --write

License

MIT — see https://github.com/evalvcr/evalvcr

Metadata

Release files for evalvcr 0.1.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 evalvcr 0.1.1
File Size Uploaded Provenance Actions
evalvcr-0.1.1.tar.gz 40.5 kB With provenance Details for evalvcr-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 74.4 kB

Release files / evalvcr-0.1.1.tar.gz

Download URL evalvcr-0.1.1.tar.gz
Size 40.5 kB
Tags Source
SHA-256 checksum
How to use checksums
212f4d4809e4ffb4516a99e125fbd28466937e5aadd068497d4fe3701c811ee8
BLAKE2b-256 checksum
How to use checksums
f5757489cc62f672d63c39d1796f0d4ab8690a63beee33255df9b225168979a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 5, 2026.

Transparency log

Release files / evalvcr-0.1.1-py3-none-any.whl

Download URL evalvcr-0.1.1-py3-none-any.whl
Size 33.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5743163ede92a3ca166d931cc6112bf08d29c0a3f4da5a4372820fd6223a3e6b
BLAKE2b-256 checksum
How to use checksums
ddd20cb3591bdb5d810e3a682d8573d23801c3db5dcdfc1bfcbec6185ced174f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 5, 2026.

Transparency log

Security for evalvcr 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for evalvcr-0.1.1.tar.gz

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 Dec 5, 2026.

Transparency log

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