vcrpy
vcrpy copied to clipboard
Feature request: add support for `re.compile()` in `filter_*` options
trafficstars
It would be convenient to be able to filter based on regular expressions so we can maintain a list of patterns instead of a list of exceptions. For example:
vcr_config = {
"filter_headers": ["authorization"],
"filter_query_parameters": [re.compile("*(secret|password|key|access|code)*")],
}