# kevin1024/vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing

Repository: https://github.com/kevin1024/vcrpy
Canonical: https://ross.abutalabs.com/products/vcrpy
Language: Python
License: MIT
License Family: permissive
Topics: testing, python, http, mocking
Last push: 2026-08-25T13:33:42+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 91, longevity 100
- inputs: {"age_days": 5209, "days_push": 8, "days_rel": 60, "gap_med": 27, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2981, forks 436 (observed 2026-08-28T04:07:33.184018+00:00)

## What it is
VCR.py is a Python library that records HTTP interactions to cassette files and replays them in later test runs, eliminating real network traffic. It is a Python port of Ruby's VCR library and supports pytest via pytest-recording.

## Use cases
- record and replay http requests in python tests
- make tests deterministic without hitting real apis
- speed up test suite by mocking http interactions
- run tests offline
- update recorded api responses when the api changes

## When to choose
- your python tests make http requests and you want fast, deterministic, offline runs
- you want record-once replay-many behavior like Ruby's VCR
- you use pytest and want cassette-based fixtures

## When to avoid
- you need to mock non-HTTP protocols
- you want hand-written mocks with fine-grained assertions rather than recorded responses
- you are testing the live behavior of an external API itself

## Facets
- artifact type: library
- maturity: active
- function: mocking, testing, http-client, serialization
- domain: testing, developer-tools, apis
- platform: python, cli
- tags: http-mocking, vcr, cassette, record-replay, pytest, python

## Member repositories
- kevin1024/vcrpy (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:33.184018+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:31:29.957770+00:00, confidence not recorded.
  - readme: https://github.com/kevin1024/vcrpy (fetched 2026-08-28T04:07:33.184018+00:00, sha e4b39fc3da99)
  - registry_pypi: https://pypi.org/pypi/vcrpy/json (fetched 2026-08-29T09:46:35.142795+00:00, sha 6c9a98127e67)
- Data as of 2026-08-30T08:39:29.467469+00:00.
