swh.scanner.cli module

swh.scanner.cli.parse_url(url)[source]
swh.scanner.cli.extract_regex_objs(root_path: pathlib.PosixPath, patterns: Tuple[str]) → object[source]

Generates a regex object for each pattern given in input and checks if the path is a subdirectory or relative to the root path.

Yields

an SRE_Pattern object