{"id":48211035,"url":"https://github.com/techservicesillinois/vcrpy-cleaner","last_synced_at":"2026-04-04T18:48:32.201Z","repository":{"id":88274851,"uuid":"588306969","full_name":"techservicesillinois/vcrpy-cleaner","owner":"techservicesillinois","description":"Sensitive data cleaners for network cassettes captured by the VCR.py testing library.","archived":false,"fork":false,"pushed_at":"2025-11-13T19:39:13.000Z","size":40,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-11-13T21:07:49.909Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techservicesillinois.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2023-01-12T20:17:21.000Z","updated_at":"2025-11-13T19:37:04.000Z","dependencies_parsed_at":"2023-11-16T21:07:11.832Z","dependency_job_id":"888cdc08-dbbf-4130-8c75-96f63c7d33ca","html_url":"https://github.com/techservicesillinois/vcrpy-cleaner","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/techservicesillinois/vcrpy-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fvcrpy-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fvcrpy-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fvcrpy-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fvcrpy-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techservicesillinois","download_url":"https://codeload.github.com/techservicesillinois/vcrpy-cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fvcrpy-cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31409470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-04-04T18:48:31.657Z","updated_at":"2026-04-04T18:48:32.189Z","avatar_url":"https://github.com/techservicesillinois.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VCR Cleaner\n\nSee `def test_if_uri_contains_two_different_scrubs` in `test_filters.py` for usage.\n\n```python\nimport vcr\n\nfrom vcr_cleaner import CleanYAMLSerializer\nfrom vcr_cleaner.cleaners.jwt_token import clean_token\nfrom vcr_cleaner.filters import if_uri_contains\n\nyaml_cleaner = CleanYAMLSerializer()\n\n# Register an included function\nyaml_cleaner.register_cleaner(if_uri_contains('/api/auth', clean_token))\n\n# Define cleaner functions\ndef clean_bad_word(request: dict, response: dict):\n    response['body']['string'] = response['body']['string'].replace('shid', '')\n\ndef clean_long_response(request: dict, response: dict):\n    response['body'] = \"{'when all your test needs':'is this bit'}\"\n\n# Register custom cleaner functions\nyaml_cleaner.register_cleaner(if_uri_contains('/api/foulmouth', clean_bad_word))\nyaml_cleaner.register_cleaner(if_uri_contains('/api/returns_so_so_many_records',\nclean_long_response))\n\nmy_vcr = vcr.VCR(\n         cassette_library_dir='cassettes',\n         record_mode='once',\n         filter_headers=[('Authorization', 'Bearer FAKE_TOKEN')],\n         match_on=['uri', 'method'],\n)\nmy_vcr.register_serializer(\"yaml_cleaner\", yaml_cleaner)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechservicesillinois%2Fvcrpy-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechservicesillinois%2Fvcrpy-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechservicesillinois%2Fvcrpy-cleaner/lists"}