Coverage for src/crawler/crawler_types.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-11-20 09:03 +0000

1from typing import Literal 

2from typing import TypedDict 

3 

4CitationLiteral = Literal[ 

5 "lang", 

6 "title", 

7 "author", 

8 "pdf", 

9 "abstract", 

10 "page", 

11 "doi", 

12 "mr", 

13 "zbl", 

14 "publisher", 

15 "keywords", 

16] 

17 

18 

19class JSONCol(TypedDict): 

20 """Element of the JSON outputted by the CSV file""" 

21 

22 sources: dict[str, str] 

23 pid: str 

24 state: str 

25 pISSN: str 

26 eISSN: str 

27 title: str 

28 published: str 

29 type: str