swh.scanner.scanner module#
- class swh.scanner.scanner.Progress(step: Step, total: int | None = None, **kwargs)[source]#
Bases:
object
default no-op Progress class
- swh.scanner.scanner.run(config: ~typing.Dict[str, ~typing.Any], policy, source_tree: ~swh.model.from_disk.Directory, nodes_data: ~swh.scanner.data.MerkleNodeInfo, provenance: bool, progress_class: ~typing.Type[~swh.scanner.scanner.Progress] = <class 'swh.scanner.scanner.Progress'>) WebAPIClient [source]#
Scan a given source code according to the policy given in input.