conda_recipe_manager.grapher.recipe_graph

Description:

Defines a base recipe graph class. Derived classes provide initialization details.

Classes

RecipeGraph(recipe_cache, ...)

Base class for all Recipe Graph types.

class conda_recipe_manager.grapher.recipe_graph.RecipeGraph(recipe_cache: dict[str, RecipeReaderDeps], recipes_failed_to_parse: set[str])[source]

Bases: object

Base class for all Recipe Graph types. This standardizes tooling for multiple recipe storage mechanisms.

contains_package_name(package: str) bool[source]

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[source]

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[source]

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.