Coverage for src/backoffice/compatibility_pure.py: 0%
14 statements
« prev ^ index » next coverage.py v7.10.7, created at 2025-11-12 10:26 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2025-11-12 10:26 +0000
1"""Pure Python alternative data models for compatibility reports
3Usable when installing backoffice without dependencies."""
5from typing import Any, Optional, Sequence
7from typing_extensions import Literal, TypedDict
10class BadgeDict(TypedDict):
11 icon: str
12 label: str
13 url: str
16class ToolCompatibilityReportDict(TypedDict):
17 tool: str
18 """toolname (including version separated by an underscore)"""
20 status: Literal["passed", "failed", "not-applicable"]
21 """status of this tool for this resource"""
23 error: Optional[str]
24 """error message if `status`=='failed'"""
26 details: Any
27 """details to explain the `status`"""
29 badge: Optional[BadgeDict]
30 """status badge with a resource specific link to the tool"""
32 links: Sequence[str]
33 """the checked resource should link these other bioimage.io resources"""