yaml_tools.yagrep module
Console script for searching YAML or XML files.
- yaml_tools.yagrep.process_inputs(filepath, grep_args, prog_opts, debug=False)[source]
Handle file arguments and process them. Return any input data for use with
dpath
search.- Parameters:
filepath (str) – filename as path str
prog_opts (dict) – configuration options
debug – enable extra processing info
- Returns:
data and source type boolean or None
- Handles FileTypeError:
if input file is not yaml or xml