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

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.0
File Size Uploaded Provenance Actions
evalvcr-0.1.0.tar.gz 40.5 kB With provenance Details for evalvcr-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 74.4 kB

Release files / evalvcr-0.1.0.tar.gz

Download URL evalvcr-0.1.0.tar.gz
Size 40.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d1684678b599fb87aaa31156af4ce72d6620dfd8b339932cd25d19baac157cbf
BLAKE2b-256 checksum
How to use checksums
ba3a0c512bfeadb8dcf122af6330aaa163daae64d698a7e277bf851a1cd0c1b9
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.0-py3-none-any.whl

Download URL evalvcr-0.1.0-py3-none-any.whl
Size 33.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
983bcb173212ba3d2a279571bf8120c4ee30f9e43cba132ed4846dee8c8e70d9
BLAKE2b-256 checksum
How to use checksums
d6a488f276d1a1b3e8116191b78653e734d394ad2041836809327c42d1cfab8c
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.0

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