conda_recipe_manager.grapher.recipe_graph_from_disk

Description:

Generates a recipe graph from recipe files on local storage.

Classes

RecipeGraphFromDisk(directory[, cpu_count])

Constructs a Recipe Graph from disk/local storage.

class conda_recipe_manager.grapher.recipe_graph_from_disk.RecipeGraphFromDisk(directory: str | Path, cpu_count: int = 0)[source]

Bases: RecipeGraph

Constructs a Recipe Graph from disk/local storage.

contains_package_name(package: str) bool

Indicates if a package name is recognized in the graph.

Parameters:

package -- Target package

Returns:

True if the package name is found in the graph. False otherwise.

get_package_stats() PackageStats

Returns a structure filled with package statistics gathered during graph constructed.

Returns:

A structure of package-related statistics

plot(graph_type: GraphType, direction: GraphDirection = GraphDirection.DEPENDS_ON, package: str | None = None) None

Draws a dependency graph to the screen.

Parameters:
  • graph_type -- Indicates which kind of graph to render.

  • direction -- (Optional) Indicates the direction of the dependency relationship.

  • package -- (Optional) Name of the target package to draw a sub-graph of. If not provided, renders the entire graph.