{"id":13501954,"url":"https://github.com/betamaxpy/betamax","last_synced_at":"2026-02-21T15:03:27.709Z","repository":{"id":9536632,"uuid":"11439734","full_name":"betamaxpy/betamax","owner":"betamaxpy","description":"A VCR imitation designed only for python-requests.","archived":false,"fork":false,"pushed_at":"2024-05-06T11:47:13.000Z","size":555,"stargazers_count":580,"open_issues_count":25,"forks_count":61,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-12-10T23:39:55.376Z","etag":null,"topics":["http","python","recording","testing","vcr"],"latest_commit_sha":null,"homepage":"https://betamax.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/betamaxpy.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.rst","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null}},"created_at":"2013-07-16T03:23:22.000Z","updated_at":"2025-11-15T17:50:33.000Z","dependencies_parsed_at":"2023-12-23T14:48:19.731Z","dependency_job_id":"61f8165d-4e92-4679-b592-07a501ad22e6","html_url":"https://github.com/betamaxpy/betamax","commit_stats":{"total_commits":458,"total_committers":36,"mean_commits":"12.722222222222221","dds":0.1746724890829694,"last_synced_commit":"8aa9f348d55ee0d584859603474efc74a0b76c49"},"previous_names":["sigmavirus24/betamax"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/betamaxpy/betamax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betamaxpy%2Fbetamax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betamaxpy%2Fbetamax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betamaxpy%2Fbetamax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betamaxpy%2Fbetamax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betamaxpy","download_url":"https://codeload.github.com/betamaxpy/betamax/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betamaxpy%2Fbetamax/sbom","scorecard":{"id":235122,"data":{"date":"2025-08-11","repo":{"name":"github.com/betamaxpy/betamax","commit":"8f3d284103676a43d1481b5cffae96f3a601e0be"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":8,"reason":"Found 13/15 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/release.yml:53","Info: topLevel 'contents' permission set to 'read': .github/workflows/release.yml:9","Warn: no topLevel permission defined: .github/workflows/tox.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/betamaxpy/betamax/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tox.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/betamaxpy/betamax/tox.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tox.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/betamaxpy/betamax/tox.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tox.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/betamaxpy/betamax/tox.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tox.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/betamaxpy/betamax/tox.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:31","Warn: pipCommand not pinned by hash: .github/workflows/tox.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/tox.yml:34","Warn: pipCommand not pinned by hash: .github/workflows/tox.yml:16","Warn: pipCommand not pinned by hash: .github/workflows/tox.yml:17","Info:   4 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":10,"reason":"1 out of the last 1 releases have a total of 1 signed artifacts.","details":["Info: provenance for release artifact: multiple.intoto.jsonl: https://github.com/betamaxpy/betamax/releases/tag/0.9.0"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T05:31:34.454Z","repository_id":9536632,"created_at":"2025-08-17T05:31:34.454Z","updated_at":"2025-08-17T05:31:34.454Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27653550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-11T02:00:11.302Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","python","recording","testing","vcr"],"created_at":"2024-07-31T22:01:56.543Z","updated_at":"2025-12-12T00:59:49.034Z","avatar_url":"https://github.com/betamaxpy.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"betamax\n=======\n\nBetamax is a VCR_ imitation for requests. This will make mocking out requests\nmuch easier. It is tested on `Travis CI`_.\n\nPut in a more humorous way: \"Betamax records your HTTP interactions so the NSA\ndoes not have to.\"\n\nExample Use\n-----------\n\n.. code-block:: python\n\n    from betamax import Betamax\n    from requests import Session\n    from unittest import TestCase\n\n    with Betamax.configure() as config:\n        config.cassette_library_dir = 'tests/fixtures/cassettes'\n\n\n    class TestGitHubAPI(TestCase):\n        def setUp(self):\n            self.session = Session()\n            self.headers.update(...)\n\n        # Set the cassette in a line other than the context declaration\n        def test_user(self):\n            with Betamax(self.session) as vcr:\n                vcr.use_cassette('user')\n                resp = self.session.get('https://api.github.com/user',\n                                        auth=('user', 'pass'))\n                assert resp.json()['login'] is not None\n\n        # Set the cassette in line with the context declaration\n        def test_repo(self):\n            with Betamax(self.session).use_cassette('repo'):\n                resp = self.session.get(\n                    'https://api.github.com/repos/sigmavirus24/github3.py'\n                    )\n                assert resp.json()['owner'] != {}\n\nWhat does it even do?\n---------------------\n\nIf you are unfamiliar with VCR_, you might need a better explanation of what\nBetamax does.\n\nBetamax intercepts every request you make and attempts to find a matching\nrequest that has already been intercepted and recorded. Two things can then\nhappen:\n\n1. If there is a matching request, it will return the response that is\n   associated with it.\n2. If there is **not** a matching request and it is allowed to record new\n   responses, it will make the request, record the response and return the\n   response.\n\nRecorded requests and corresponding responses - also known as interactions -\nare stored in files called cassettes. (An example cassette can be seen in\nthe `examples section of the documentation`_.) The directory you store your\ncassettes in is called your library, or your `cassette library`_.\n\nVCR Cassette Compatibility\n--------------------------\n\nBetamax can use any VCR-recorded cassette as of this point in time. The only\ncaveat is that python-requests returns a URL on each response. VCR does not\nstore that in a cassette now but we will. Any VCR-recorded cassette used to\nplayback a response will unfortunately not have a URL attribute on responses\nthat are returned. This is a minor annoyance but not something that can be\nfixed.\n\n.. _VCR: https://github.com/vcr/vcr\n.. _Travis CI: https://travis-ci.org/sigmavirus24/betamax\n.. _examples section of the documentation:\n    http://betamax.readthedocs.org/en/latest/api.html#examples\n.. _cassette library:\n    http://betamax.readthedocs.org/en/latest/cassettes.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetamaxpy%2Fbetamax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetamaxpy%2Fbetamax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetamaxpy%2Fbetamax/lists"}