apps.bazel_parser.parsing

Handle converting raw types to the data structures that get used.

Functions

get_dependency_digraph(→ networkx.DiGraph)

get_repo_graph_data(...)

Module Contents

apps.bazel_parser.parsing.get_dependency_digraph(rules: dict[str, third_party.bazel.src.main.protobuf.build_pb2.Rule], ignore_external: bool) networkx.DiGraph[source]
Parameters:
  • rules (dict[str, third_party.bazel.src.main.protobuf.build_pb2.Rule])

  • ignore_external (bool)

Return type:

networkx.DiGraph

apps.bazel_parser.parsing.get_repo_graph_data(query_result: third_party.bazel.src.main.protobuf.build_pb2.QueryResult, label_to_runtime: dict[str, datetime.timedelta], file_commit_map: tools.git_utils.FileCommitMap) apps.bazel_parser.repo_graph_data.RepoGraphData[source]
Parameters:
  • query_result (third_party.bazel.src.main.protobuf.build_pb2.QueryResult)

  • label_to_runtime (dict[str, datetime.timedelta])

  • file_commit_map (tools.git_utils.FileCommitMap)

Return type:

apps.bazel_parser.repo_graph_data.RepoGraphData