$npx skillfedfor your agent

vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing

Worth itPyPI WWW/HTTPReleased Jul 202627.1M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — vcrpy-8.3.0-py3-none-any.whl
v8.3.0 · released 2026-07-04 · Python >=3.10 · 2 runtime deps: PyYAML, wrapt

Yes. VCR.py is actively maintained, has no known vulnerabilities, low install friction, and solves a common testing problem. It's widely used (top 1000 PyPI packages) and the MIT license imposes no restrictions. Install it if your test suite makes HTTP requests and you want faster, more reliable, offline-capable tests.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low install friction with just two runtime dependencies (PyYAML and wrapt).
  • Actively maintained with a recent release; last commit on 2026-08-11 and 2982 repository stars indicate solid community backing.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2026-07-04 (41 days) · last repo commit 2026-08-11 · 2,982 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 27,148,203 downloads/mo, #866 on PyPI

Verify before relying

pip install vcrpy

from vcrpy import VCR

with VCR().use_cassette('cassette.yaml'):
    # Your HTTP request code here
    pass
  • Which HTTP libraries are supported for interception (requests, urllib, httpx, etc.).
  • Performance overhead of recording and replaying compared to live requests.
  • Behavior when cassette files become stale or APIs change unexpectedly.
Same gist for agents: .md · .json

What it is and what it does

VCR.py is a testing utility that intercepts HTTP requests and records them to disk (as YAML cassettes by default) on first run, then replays those recorded responses on subsequent runs. This eliminates the need for live HTTP calls during testing, making tests faster, deterministic, and runnable offline. It depends on PyYAML for cassette serialization and wrapt for request interception.

The workflow is straightforward: wrap your test code in a context manager or decorator, and on the first execution VCR records all HTTP interactions; on later runs it returns the recorded responses without making real network calls. If an API changes, you simply delete the cassette file and re-run to capture the new interactions.

Use it for

  • Speed up test suites that make HTTP calls by replaying recorded responses instead of hitting live servers.
  • Run tests offline or in CI environments without external service dependencies.
  • Ensure tests are deterministic by always returning the same recorded responses, eliminating flakiness from network variability.
  • Test error handling by manually editing cassette files to inject failure scenarios.
  • Reduce load on external APIs during development and testing cycles.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

VCR.py is actively maintained, has no known vulnerabilities, low install friction, and solves a common testing problem. It's widely used (top 1000 PyPI packages) and the MIT license imposes no restrictions. Install it if your test suite makes HTTP requests and you want faster, more reliable, offline-capable tests.

Install

vcrpy on PyPI

Before you install

Low install friction with just two runtime dependencies (PyYAML and wrapt). Actively maintained with a recent release; last commit on 2026-08-11 and 2982 repository stars indicate solid community backing.

Requires Python 3.10 or later.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install vcrpy

from vcrpy import VCR

with VCR().use_cassette('cassette.yaml'):
    # Your HTTP request code here
    pass

Verify before relying

  • Which HTTP libraries are supported for interception (requests, urllib, httpx, etc.).
  • Performance overhead of recording and replaying compared to live requests.
  • Behavior when cassette files become stale or APIs change unexpectedly.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
PyYAMLwrapt
MaintenanceActively maintained 41 days since the last release
Last repo commit
First released
Downloads27,148,203 / month, #866 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTPTopic :: Software Development :: Testing

Evidence: vcrpy-8.3.0-py3-none-any.whl

Tags

Capabilities
mock HTTP requests for testingrecord and replay HTTP interactionsdeterministic HTTP test fixturesoffline HTTP testingcassette-based HTTP mockingspeed up tests with recorded responsesVCR HTTP recording
Topics
http-mockingtest-fixturescassette-recording

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “deterministic HTTP test fixtures”

  • vcrpyVCR.py records HTTP interactions during test runs and replays them on…
  • langchain-testsProvides standard test base classes and fixtures for validating…
  • pytest-rngProvides pytest fixtures that make random number generation…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also betamax · pytest-vcr · vcrpy-unittest · keboola.vcr · pytest-recording · placebo · pytest-httpbin · requests-mock · pook · respx