BSD Ports

devel/py-vcrpy 7.0.0_1 DragonFly

Automatically mock HTTP interactions to simplify and speed up testing

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python, www
Package size
85.0 KiB, 473.1 KiB installed

Description

VCR.py simplifies and speeds up tests that make HTTP requests. The first time you run code that is inside a VCR.py context manager or decorated function, VCR.py records all HTTP interactions that take place through the libraries it supports and serializes and writes them to a flat file (in yaml format by default). This flat file is called a cassette.

When the relevant piece of code is executed again, VCR.py will read the serialized requests and responses from the aforementioned cassette file, and intercept any HTTP requests that it recognizes from the original test run and return the responses that corresponded to those requests. This means that the requests will not actually result in HTTP traffic, which confers several benefits including:

* The ability to work offline * Completely deterministic tests * Increased test execution speed

In the other systems

The newest version among them is 8.3.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-vcrpy7.0.0_1 behind since 2026-07-05none known-[email protected]-
FreeBSDdevel/py-vcrpy8.3.0 newestnone known-[email protected]2026-07-12
MidnightBSDdevel/py-vcrpy7.0.0_3 behind since 2026-07-05no data-[email protected]2026-09-16
HardenedBSDdevel/py-vcrpy8.3.0 newestno data-[email protected]-
GhostBSDdevel/py-vcrpy8.3.0 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install py311-vcrpy

From DPorts:

cd /usr/dports/devel/py-vcrpy && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 5