Coverage for /builds/kinetik161/ase/ase/utils/plugins.py: 100.00%
15 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-12-10 11:04 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-12-10 11:04 +0000
1"""
2Utilities for plugins to ase
3"""
5from typing import List, NamedTuple, Optional, Union
8# Name is defined in the entry point
9class ExternalIOFormat(NamedTuple):
10 desc: str
11 code: str
12 module: Optional[str] = None
13 glob: Optional[Union[str, List[str]]] = None
14 ext: Optional[Union[str, List[str]]] = None
15 magic: Optional[Union[bytes, List[bytes]]] = None
16 magic_regex: Optional[bytes] = None
19class ExternalViewer(NamedTuple):
20 desc: str
21 module: Optional[str] = None
22 cli: Optional[bool] = False
23 fmt: Optional[str] = None
24 argv: Optional[List[str]] = None