vcrpy 8.1.1


pip install vcrpy

  Latest version

Released: Jan 04, 2026

Project Links

Meta
Author: Kevin McCarthy
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Console

Intended Audience
  • Developers

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3 :: Only
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy

Topic
  • Software Development :: Testing
  • Internet :: WWW/HTTP

License
  • OSI Approved :: MIT License

PyPI Python versions Build Status Code Coverage Status Join the chat at https://gitter.im/kevin1024/vcrpy


vcr.py logo

This is a Python version of Ruby’s VCR library.

Source code

https://github.com/kevin1024/vcrpy

Documentation

https://vcrpy.readthedocs.io/

Rationale

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

If the server you are testing against ever changes its API, all you need to do is delete your existing cassette files, and run your tests again. VCR.py will detect the absence of a cassette file and once again record all HTTP interactions, which will update them to correspond to the new API.

Usage with Pytest

There is a library to provide some pytest fixtures called pytest-recording https://github.com/kiwicom/pytest-recording

License

This library uses the MIT license. See LICENSE.txt for more details

8.1.1 Jan 04, 2026
8.1.0 Dec 08, 2025
8.0.0 Dec 03, 2025
7.0.0 Dec 31, 2024
6.0.2 Oct 07, 2024
6.0.1 Jan 25, 2024
6.0.0 Jan 23, 2024
5.1.0 Jul 31, 2023
5.0.0 Jun 26, 2023
4.4.0 Jun 26, 2023
4.3.1 May 26, 2023
4.3.0 May 24, 2023
4.2.1 Aug 31, 2022
4.2.0 Jun 29, 2022
4.1.1 Oct 09, 2020
4.1.0 Jul 31, 2020
4.0.2 Dec 20, 2019
4.0.1 Dec 20, 2019
4.0.0 Dec 20, 2019
3.0.0 Dec 14, 2019
2.1.1 Nov 03, 2019
2.1.0 Aug 08, 2019
2.0.1 Sep 23, 2018
2.0.0 Sep 19, 2018
1.13.0 Jul 13, 2018
1.12.0 May 21, 2018
1.11.1 May 28, 2017
1.11.0 May 02, 2017
1.10.5 Jan 12, 2017
1.10.4 Dec 15, 2016
1.10.3 Oct 02, 2016
1.10.2 Sep 14, 2016
1.10.1 Sep 12, 2016
1.10.0 Aug 14, 2016
1.9.0 Jul 16, 2016
1.8.0 Jun 09, 2016
1.7.4 Oct 18, 2015
1.7.3 Aug 24, 2015
1.7.2 Aug 19, 2015
1.7.1 Aug 12, 2015
1.7.0 Aug 02, 2015
1.6.1 Jul 15, 2015
1.6.0 Jul 03, 2015
1.5.2 May 15, 2015
1.5.1 May 14, 2015
1.5.0 May 14, 2015
1.4.2 May 06, 2015
1.4.1 Apr 11, 2015
1.4.0 Apr 02, 2015
1.3.0 Mar 24, 2015
1.2.0 Jan 09, 2015
1.1.4 Dec 27, 2014
1.1.3 Dec 09, 2014
1.1.2 Oct 08, 2014
1.1.1 Sep 23, 2014
1.1.0 Sep 21, 2014
1.0.3 Sep 02, 2014
1.0.2 May 17, 2014
1.0.1 May 17, 2014
1.0.0 May 10, 2014
0.7.0 Mar 10, 2014
0.6.0 Jan 11, 2014
0.5.0 Dec 02, 2013
0.4.0 Nov 10, 2013
0.3.5 Oct 25, 2013
0.3.4 Oct 25, 2013
0.3.3 Sep 30, 2013
0.3.2 Sep 22, 2013
0.3.1 Sep 17, 2013
0.3.0 Sep 17, 2013
0.2.1 Aug 30, 2013
0.2.0 Aug 24, 2013
0.1.0 Aug 12, 2013
0.0.4 Jul 25, 2013
0.0.3 Jul 20, 2013
0.0.2 Feb 22, 2013
0.0.1 Feb 22, 2013
1.6.0.macosx Jul 03, 2015

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
PyYAML
wrapt