swh.graph.cli module

class swh.graph.cli.PathlibPath(exists=False, file_okay=True, dir_okay=True, writable=False, readable=True, resolve_path=False, allow_dash=False, path_type=None)[source]

Bases: click.types.Path

A Click path argument that returns a pathlib Path, not a string

convert(value, param, ctx)[source]

Converts the value. This is not invoked for values that are None (the missing value).

swh.graph.cli.dump_pid2node(filename)[source]
swh.graph.cli.dump_node2pid(filename)[source]
swh.graph.cli.restore_pid2node(filename)[source]

read a textual PID->int map from stdin and write its binary version to filename

swh.graph.cli.restore_node2pid(filename, length)[source]

read a textual int->PID map from stdin and write its binary version to filename

swh.graph.cli.main()[source]