betamax
A VCR imitation for python-requests
Decision gist · record as of 2026-08-14
Yes, if you need HTTP request mocking for requests-based code. Betamax is stable, permissively licensed, and has low install friction. No vulnerabilities are reported. The dormant maintenance is a minor concern—verify that it works with your current Python and requests versions before adopting it in a new project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8.1 or later and the requests library installed.
- Low install friction with a single runtime dependency (requests).
- Maintenance is dormant—last release was 2024-02-08—but the package is marked Production/Stable and the repository remains unarchived.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without copyleft obligations.
last release 2024-02-08 (918 days) · last repo commit 2024-05-06 · 583 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 85,678 downloads/mo, #13,907 on PyPI
Alternatives
Verify before relying
pip install betamax
from betamax import Betamax
from requests import Session
with Betamax.configure() as config:
config.cassette_library_dir = 'tests/fixtures/cassettes'
with Betamax(Session()).use_cassette('example'):
resp = Session().get('https://api.example.com/data')- Whether cassette format remains compatible with current VCR versions beyond what the description states.
- Current test coverage and whether the dormant maintenance status affects reliability for new Python releases.
- How long the package can remain viable without active maintenance as Python and requests evolve.
What it is and what it does
Betamax is a VCR-style HTTP interaction recorder and replayer for the requests library. It intercepts HTTP requests made during tests, matches them against previously recorded interactions stored in cassette files, and either returns the recorded response or records a new one if allowed. This eliminates the need for live API calls during testing, making tests faster, more reliable, and independent of external service availability.
You configure a cassette library directory, wrap your requests.Session in a Betamax context manager, and specify which cassette to use. On first run, real requests are made and recorded; on subsequent runs, the recorded responses are replayed. The package supports Python 3.8, 3.9, 3.10, 3.11 and PyPy, though development has been dormant since the last release in 2024-02-08.
Use it for
- Write unit tests for code that calls external APIs without requiring those services to be running or available.
- Record real API responses once, then replay them consistently across CI/CD pipelines and local development.
- Test error handling and edge cases by editing cassette files to inject specific response scenarios.
- Speed up test suites by eliminating network latency from HTTP-dependent tests.
- Ensure test reproducibility by decoupling test execution from third-party API changes or downtime.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need HTTP request mocking for requests-based code.
Betamax is stable, permissively licensed, and has low install friction. No vulnerabilities are reported. The dormant maintenance is a minor concern—verify that it works with your current Python and requests versions before adopting it in a new project.
Install
betamax on PyPI
Before you install
Low install friction with a single runtime dependency (requests). Maintenance is dormant—last release was 2024-02-08—but the package is marked Production/Stable and the repository remains unarchived.
Requires Python 3.8.1 or later and the requests library installed.
License in practice
Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without copyleft obligations.
Quickstart
pip install betamax
from betamax import Betamax
from requests import Session
with Betamax.configure() as config:
config.cassette_library_dir = 'tests/fixtures/cassettes'
with Betamax(Session()).use_cassette('example'):
resp = Session().get('https://api.example.com/data')
Verify before relying
- Whether cassette format remains compatible with current VCR versions beyond what the description states.
- Current test coverage and whether the dormant maintenance status affects reliability for new Python releases.
- How long the package can remain viable without active maintenance as Python and requests evolve.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.8.1 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagerequests |
| Maintenance | Dormant 918 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 85,678 / month, #13,907 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Quality Assurance |
Evidence: betamax-0.9.0-py2.py3-none-any.whl
Tags
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 › “cassette-based request mocking”
- betamaxBetamax records and replays HTTP interactions made through the…
- pytest-vcrA pytest plugin that integrates VCR.py to record and replay HTTP…
- vcrpyVCR.py records HTTP interactions during test runs and replays them on…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also vcrpy · pytest-recording · keboola.vcr · pytest-vcr · placebo · urllib3-mock · httmock · responses · respx · pytest-responses