swh.scanner.output module

class swh.scanner.output.Color(value)[source]

Bases: enum.Enum

An enumeration.

BLUE = '\x1b[94m'
GREEN = '\x1b[92m'
RED = '\x1b[91m'
END = '\x1b[0m'
swh.scanner.output.colorize(text: str, color: swh.scanner.output.Color)[source]
class swh.scanner.output.Output(root_path: str, nodes_data: swh.scanner.data.MerkleNodeInfo, source_tree: swh.model.from_disk.Directory)[source]

Bases: object

show(mode='text')[source]
get_path_name(node)[source]
print_text(isatty: bool) None[source]
print_node(node: Any, isatty: bool, level: int) None[source]
data_as_json()[source]
print_json()[source]
print_ndjson()[source]