{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/21"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/4"}],"enrichment":{"capability":"Betamax records and replays HTTP interactions made through the requests library, allowing you to mock external API calls in tests without making live network requests.","skillfed_tags":["testing","http-mocking","vcr-compatible"],"use_cases":["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."],"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.\n\nYou 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.","worth_installing":"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\u2014verify that it works with your current Python and requests versions before adopting it in a new project."},"id":"betamax","links":{"html":"https://skillfed.io/packages/betamax","md":"https://skillfed.io/packages/betamax.md","pypi":"https://pypi.org/project/betamax/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-02-08","license_spdx":null,"license_treatment":"permissive","name":"betamax","python_support":"supports_current","summary":"A VCR imitation for python-requests"},"popularity":{"monthly_downloads":85678,"position":13907,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.0"}
