plexus.cli.scorecard.scorecards module

plexus.cli.scorecard.scorecards.create_client() PlexusDashboardClient

Create a client and log its configuration

plexus.cli.scorecard.scorecards.detect_and_clean_duplicates(client, scorecard_id: str) int

Detect and clean duplicate scores in a scorecard. Also checks for duplicate scorecards by key.

Args:

client: GraphQL client scorecard_id: Scorecard ID

Returns:

Number of duplicates removed

plexus.cli.scorecard.scorecards.ensure_valid_external_ids(client, scorecard_id: str) int

Ensure all scores in a scorecard have valid external IDs.

Args:

client: GraphQL client scorecard_id: Scorecard ID

Returns:

Number of scores updated

plexus.cli.scorecard.scorecards.format_scorecard_panel(scorecard, include_sections=False, detailed_scores=False)

Format a scorecard as a rich panel with consistent styling.

Args:

scorecard: The scorecard data to format include_sections: Whether to include sections and scores in the output detailed_scores: Whether to show detailed information for each score

Returns:

A rich Panel object with formatted scorecard content

plexus.cli.scorecard.scorecards.generate_key(name: str) str

Generate a key from a name by converting to lowercase and replacing spaces with hyphens.

plexus.cli.scorecard.scorecards.get_yaml_handler()

Returns a configured YAML handler that preserves multi-line strings.

plexus.cli.scorecard.scorecards.resolve_account_identifier(client, identifier)

Resolve an account identifier to its ID.