{"id":13467632,"url":"https://github.com/kevin1024/vcrpy","last_synced_at":"2026-10-13T11:53:12.670Z","repository":{"id":3426140,"uuid":"4477733","full_name":"kevin1024/vcrpy","owner":"kevin1024","description":"Automatically mock your HTTP interactions to simplify and speed up testing","archived":false,"fork":false,"pushed_at":"2026-09-15T13:36:06.000Z","size":1936,"stargazers_count":3020,"open_issues_count":183,"forks_count":444,"subscribers_count":37,"default_branch":"master","last_synced_at":"2026-10-13T01:23:59.784Z","etag":null,"topics":["http","mocking","python","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevin1024.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"docs/contributing.rst","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-05-29T04:52:00.000Z","updated_at":"2026-10-12T22:49:36.000Z","dependencies_parsed_at":"2024-04-05T17:27:14.061Z","dependency_job_id":"5188ab63-80f2-4363-afab-6647fe8bf569","html_url":"https://github.com/kevin1024/vcrpy","commit_stats":{"total_commits":905,"total_committers":133,"mean_commits":6.804511278195489,"dds":0.6961325966850829,"last_synced_commit":"42d79b1102a1907376212e0a505851f4f8e81f5d"},"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"purl":"pkg:github/kevin1024/vcrpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin1024%2Fvcrpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin1024%2Fvcrpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin1024%2Fvcrpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin1024%2Fvcrpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevin1024","download_url":"https://codeload.github.com/kevin1024/vcrpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin1024%2Fvcrpy/sbom","scorecard":{"id":556825,"data":{"date":"2025-08-11","repo":{"name":"github.com/kevin1024/vcrpy","commit":"2c4df79498193871017736dfc4403ef03d18ced5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Code-Review","score":5,"reason":"Found 5/9 approved changesets -- score normalized to 5","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":"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":"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":"Maintained","score":2,"reason":"2 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/codespell.yml:11","Warn: no topLevel permission defined: .github/workflows/docs.yml:1","Warn: no topLevel permission defined: .github/workflows/main.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/pre-commit-detect-outdated.yml:13","Warn: no topLevel permission defined: .github/workflows/pre-commit.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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codespell.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/codespell.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/codespell.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/codespell.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit-detect-outdated.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/pre-commit-detect-outdated.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit-detect-outdated.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/pre-commit-detect-outdated.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit-detect-outdated.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/pre-commit-detect-outdated.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/pre-commit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/pre-commit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/kevin1024/vcrpy/pre-commit.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/docs.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:50","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:51","Warn: pipCommand not pinned by hash: .github/workflows/pre-commit-detect-outdated.yml:30","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   4 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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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-20T12:36:10.396Z","repository_id":3426140,"created_at":"2025-08-20T12:36:10.396Z","updated_at":"2025-08-20T12:36:10.396Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":343843146,"owners_count":38270784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-13T02:00:04.984Z","response_time":52,"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","mocking","python","testing"],"created_at":"2024-07-31T15:00:58.671Z","updated_at":"2026-10-13T11:53:12.634Z","avatar_url":"https://github.com/kevin1024.png","language":"Python","funding_links":[],"categories":["Testing","Python","资源列表","测试","Snapshot Tests","Web Testing","File Manipulation","Testing [🔝](#readme)","Awesome Python"],"sub_categories":["测试","HTTP Clients","Testing"],"readme":"\n###########\nVCR.py 📼\n###########\n\n\n|PyPI| |Python versions| |Build Status| |CodeCov| |Gitter|\n\n----\n\n.. image:: https://vcrpy.readthedocs.io/en/latest/_images/vcr.svg\n   :alt: vcr.py logo\n\n\nThis is a Python version of `Ruby's VCR\nlibrary \u003chttps://github.com/vcr/vcr\u003e`__.\n\nSource code\n  https://github.com/kevin1024/vcrpy\n\nDocumentation\n  https://vcrpy.readthedocs.io/\n\nRationale\n---------\n\nVCR.py simplifies and speeds up tests that make HTTP requests. The\nfirst time you run code that is inside a VCR.py context manager or\ndecorated function, VCR.py records all HTTP interactions that take\nplace through the libraries it supports and serializes and writes them\nto a flat file (in yaml format by default). This flat file is called a\ncassette. When the relevant piece of code is executed again, VCR.py\nwill read the serialized requests and responses from the\naforementioned cassette file, and intercept any HTTP requests that it\nrecognizes from the original test run and return the responses that\ncorresponded to those requests. This means that the requests will not\nactually result in HTTP traffic, which confers several benefits\nincluding:\n\n-  The ability to work offline\n-  Completely deterministic tests\n-  Increased test execution speed\n\nIf the server you are testing against ever changes its API, all you need\nto do is delete your existing cassette files, and run your tests again.\nVCR.py will detect the absence of a cassette file and once again record\nall HTTP interactions, which will update them to correspond to the new\nAPI.\n\nUsage with Pytest\n-----------------\n\nThere is a library to provide some pytest fixtures called pytest-recording https://github.com/kiwicom/pytest-recording\n\nLicense\n-------\n\nThis library uses the MIT license. See `LICENSE.txt \u003cLICENSE.txt\u003e`__ for\nmore details\n\n.. |PyPI| image:: https://img.shields.io/pypi/v/vcrpy.svg\n   :target: https://pypi.python.org/pypi/vcrpy\n.. |Python versions| image:: https://img.shields.io/pypi/pyversions/vcrpy.svg\n   :target: https://pypi.python.org/pypi/vcrpy\n.. |Build Status| image:: https://github.com/kevin1024/vcrpy/actions/workflows/main.yml/badge.svg\n   :target: https://github.com/kevin1024/vcrpy/actions\n.. |Gitter| image:: https://badges.gitter.im/Join%20Chat.svg\n   :alt: Join the chat at https://gitter.im/kevin1024/vcrpy\n   :target: https://gitter.im/kevin1024/vcrpy?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\n.. |CodeCov| image:: https://codecov.io/gh/kevin1024/vcrpy/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/kevin1024/vcrpy\n   :alt: Code Coverage Status\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin1024%2Fvcrpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevin1024%2Fvcrpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin1024%2Fvcrpy/lists"}