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

1"""Pure Python alternative data models for compatibility reports 

2 

3Usable when installing backoffice without dependencies.""" 

4 

5from typing import Any, Optional, Sequence 

6 

7from typing_extensions import Literal, TypedDict 

8 

9 

10class BadgeDict(TypedDict): 

11 icon: str 

12 label: str 

13 url: str 

14 

15 

16class ToolCompatibilityReportDict(TypedDict): 

17 tool: str 

18 """toolname (including version separated by an underscore)""" 

19 

20 status: Literal["passed", "failed", "not-applicable"] 

21 """status of this tool for this resource""" 

22 

23 error: Optional[str] 

24 """error message if `status`=='failed'""" 

25 

26 details: Any 

27 """details to explain the `status`""" 

28 

29 badge: Optional[BadgeDict] 

30 """status badge with a resource specific link to the tool""" 

31 

32 links: Sequence[str] 

33 """the checked resource should link these other bioimage.io resources"""