plexus.cli.score package
Score management utilities and services.
- class plexus.cli.score.ScoreService(client=None)
Bases:
objectShared service for score management operations.
Initialize the ScoreService.
- Args:
client: Optional PlexusDashboardClient instance. If not provided, will create one.
- __init__(client=None)
Initialize the ScoreService.
- Args:
client: Optional PlexusDashboardClient instance. If not provided, will create one.
- delete_score(score_id: str, confirm: bool = False) str
Delete a specific score by its ID.
- Args:
score_id: The ID of the score to delete confirm: Whether to skip confirmation (default: False for safety)
- Returns:
Success/error message
- find_scores_by_pattern(pattern: str, scorecard_identifier: str | None = None) List[Dict[str, Any]]
Find scores that match a name pattern (case-insensitive substring match).
- Args:
pattern: Pattern to search for in score names scorecard_identifier: Optional scorecard identifier to limit search scope
- Returns:
List of matching scores with their details
- get_score_details(score_id: str) Dict[str, Any] | None
Get detailed information about a specific score.
- Args:
score_id: The ID of the score
- Returns:
Score details dictionary or None if not found
- resolve_scorecard_identifier(identifier: str) str | None
Resolve a scorecard identifier to its ID.
- Args:
identifier: Scorecard identifier (ID, name, key, or external ID)
- Returns:
Scorecard ID string or None if not found
- validate_credentials() Tuple[bool, str]
Validate that required API credentials are available.
- Returns:
Tuple of (is_valid, error_message)