pub-analyzer 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pub-analyzer might be problematic. Click here for more details.
- pub_analyzer/internal/templates/author/works.typ +4 -2
- pub_analyzer/models/report.py +3 -0
- pub_analyzer/models/work.py +1 -0
- pub_analyzer/widgets/report/cards.py +2 -2
- {pub_analyzer-0.4.0.dist-info → pub_analyzer-0.4.1.dist-info}/METADATA +1 -1
- {pub_analyzer-0.4.0.dist-info → pub_analyzer-0.4.1.dist-info}/RECORD +9 -9
- {pub_analyzer-0.4.0.dist-info → pub_analyzer-0.4.1.dist-info}/LICENSE +0 -0
- {pub_analyzer-0.4.0.dist-info → pub_analyzer-0.4.1.dist-info}/WHEEL +0 -0
- {pub_analyzer-0.4.0.dist-info → pub_analyzer-0.4.1.dist-info}/entry_points.txt +0 -0
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
]
|
|
18
18
|
],
|
|
19
19
|
[
|
|
20
|
-
#block(width: 100%, height: 100%, inset: (x:
|
|
20
|
+
#block(width: 100%, height: 100%, inset: (x: 0pt, y: 10pt))[#body]
|
|
21
21
|
],
|
|
22
22
|
)
|
|
23
23
|
}
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
canvas(length: 35%, {
|
|
95
95
|
chart.piechart(
|
|
96
96
|
(
|
|
97
|
+
{{report.open_access_summary.diamond}}, // diamond
|
|
97
98
|
{{report.open_access_summary.gold}}, // Gold
|
|
98
99
|
{{report.open_access_summary.green}}, // Green
|
|
99
100
|
{{report.open_access_summary.hybrid}}, // Hybrid
|
|
@@ -117,9 +118,10 @@
|
|
|
117
118
|
*Count:* {{ report.open_access_summary.model_dump().items()|sum(attribute="1") }}
|
|
118
119
|
],
|
|
119
120
|
|
|
121
|
+
[#box(height: 7pt, width: 7pt, fill: BLUE) *Diamond:* {{report.open_access_summary.gold}}],
|
|
120
122
|
[#box(height: 7pt, width: 7pt, fill: YELLOW) *Gold:* {{report.open_access_summary.gold}}],
|
|
121
123
|
[#box(height: 7pt, width: 7pt, fill: GREEN) *Green:* {{report.open_access_summary.green}}],
|
|
122
|
-
[#box(height: 7pt, width: 7pt, fill:
|
|
124
|
+
[#box(height: 7pt, width: 7pt, fill: PURPLE) *Bronze:* {{report.open_access_summary.bronze}}],
|
|
123
125
|
|
|
124
126
|
[#box(height: 7pt, width: 7pt, fill: GRAY) *Closed:* {{report.open_access_summary.closed}}],
|
|
125
127
|
[#box(height: 7pt, width: 7pt, fill: RED) *Hybrid:* {{report.open_access_summary.hybrid}}],
|
pub_analyzer/models/report.py
CHANGED
|
@@ -41,6 +41,7 @@ class CitationSummary(BaseModel):
|
|
|
41
41
|
class OpenAccessSummary(BaseModel):
|
|
42
42
|
"""Open Access Type counter."""
|
|
43
43
|
|
|
44
|
+
diamond: int = 0
|
|
44
45
|
gold: int = 0
|
|
45
46
|
green: int = 0
|
|
46
47
|
hybrid: int = 0
|
|
@@ -50,6 +51,8 @@ class OpenAccessSummary(BaseModel):
|
|
|
50
51
|
def add_oa_type(self, open_access_type: OpenAccessStatus) -> None:
|
|
51
52
|
"""Add the type of Open Access in the corresponding counter."""
|
|
52
53
|
match open_access_type:
|
|
54
|
+
case OpenAccessStatus.diamond:
|
|
55
|
+
self.diamond += 1
|
|
53
56
|
case OpenAccessStatus.gold:
|
|
54
57
|
self.gold += 1
|
|
55
58
|
case OpenAccessStatus.green:
|
pub_analyzer/models/work.py
CHANGED
|
@@ -63,7 +63,7 @@ class OpenAccessSummaryCard(Card):
|
|
|
63
63
|
|
|
64
64
|
with VerticalScroll(classes="card-container"):
|
|
65
65
|
for status, count in self.report.open_access_summary.model_dump().items():
|
|
66
|
-
yield Label(f"[bold]{status}:[/bold] {count}")
|
|
66
|
+
yield Label(f"[bold]{status.capitalize()}:[/bold] {count}")
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
# Work Info cards.
|
|
@@ -105,7 +105,7 @@ class OpenAccessCard(Card):
|
|
|
105
105
|
work_url = self.work.open_access.oa_url
|
|
106
106
|
|
|
107
107
|
yield Label("[italic]Open Access[/italic]", classes="card-title")
|
|
108
|
-
yield Label(f"[bold]Status:[/bold] {self.work.open_access.oa_status.value}")
|
|
108
|
+
yield Label(f"[bold]Status:[/bold] {self.work.open_access.oa_status.value.capitalize()}")
|
|
109
109
|
if work_url:
|
|
110
110
|
yield Label(f"""[bold]URL:[/bold] [@click=app.open_link('{quote(str(work_url))}')]{work_url}[/]""")
|
|
111
111
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pub-analyzer
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: A text user interface, written in python, which automates the generation of scientific production reports using OpenAlex
|
|
5
5
|
Home-page: https://github.com/alejandrgaspar/pub-analyzer
|
|
6
6
|
License: MIT
|
|
@@ -17,17 +17,17 @@ pub_analyzer/internal/report.py,sha256=zeDn4mR8G7-NA0SxelIhanZ2e4mLecbiuVqlv2_hM
|
|
|
17
17
|
pub_analyzer/internal/templates/author/author_summary.typ,sha256=HtKVteroNhDIDu83vH3ZESm7VMmU8eMx7Wd-gqBXbHg,2827
|
|
18
18
|
pub_analyzer/internal/templates/author/report.typ,sha256=Pq7AxT425Buz4a2NFSIoNwp4FozwuHWALzNxe0fsTwA,1749
|
|
19
19
|
pub_analyzer/internal/templates/author/sources.typ,sha256=vY9qUEl_HbxgYl4NWR8yH0oQ5TzaYIxk3p9IsSprFBM,802
|
|
20
|
-
pub_analyzer/internal/templates/author/works.typ,sha256=
|
|
20
|
+
pub_analyzer/internal/templates/author/works.typ,sha256=ILARKhm6VDK4tUv7cIKhylWsBlJ-pPvOaTMRL21lZ9M,4970
|
|
21
21
|
pub_analyzer/internal/templates/author/works_extended.typ,sha256=kzk8gpGEqj1J-U1OrmGBGZ63N17wBwFjR1XDW6dFyWo,3508
|
|
22
22
|
pub_analyzer/main.py,sha256=0vCh_eaPc4uaGI2WsyTp7JYc9CL5gANCaa4PZhB8Dvc,2301
|
|
23
23
|
pub_analyzer/models/__init__.py,sha256=hvR6m379slQw7gSwnl_OFY21Ytv90mmmOe7bp8vZYkk,59
|
|
24
24
|
pub_analyzer/models/author.py,sha256=9DzBQY4JoDv5ilBNOLyquOqnlwbXCTpmZq25cQLCgYU,1900
|
|
25
25
|
pub_analyzer/models/concept.py,sha256=yNvajKWTn6uBalNoJmlobitvbFBOjF80jlZnjKjwDRw,677
|
|
26
26
|
pub_analyzer/models/institution.py,sha256=kjS3U0w454SBCZNsZ03-XZqciZR0ubwsCRo2ix6RojM,3067
|
|
27
|
-
pub_analyzer/models/report.py,sha256=
|
|
27
|
+
pub_analyzer/models/report.py,sha256=yma70xpD6I8hv_kk5ylMhylLu60eOpQwNEJa-Dd-XQI,2672
|
|
28
28
|
pub_analyzer/models/source.py,sha256=o3ich4iDYB_PH_cVbrZtVRFVLQlPS3W5ajgBQQGzYqM,2730
|
|
29
29
|
pub_analyzer/models/topic.py,sha256=3MBQV-njnjfmOVvgmFZxy8fFU7sMj5yxUW8EHFAjlD4,1825
|
|
30
|
-
pub_analyzer/models/work.py,sha256=
|
|
30
|
+
pub_analyzer/models/work.py,sha256=HmlwamhtfZfC6LA_MAri9Xknn8In19lfmTkMU9X7oRM,4139
|
|
31
31
|
pub_analyzer/widgets/__init__.py,sha256=JALs1yGE06XYwjoY_0AG-Wt_pMknI1WEWNYK3atQaEA,18
|
|
32
32
|
pub_analyzer/widgets/author/__init__.py,sha256=oiJibt7YiuGpovOnFIAlC9YwLO-0LN3SDgPWFL-LVPQ,22
|
|
33
33
|
pub_analyzer/widgets/author/cards.py,sha256=JWZxYy4Oen5fToiSBgvfEgmBJlrIVXCWpT-XjkLbxY4,2445
|
|
@@ -48,7 +48,7 @@ pub_analyzer/widgets/institution/core.py,sha256=q21GXawR9g-pN68YgdiHc3r_ZxiKq5JY
|
|
|
48
48
|
pub_analyzer/widgets/institution/tables.py,sha256=tXjrop9HGSkZGjYIOGQEOKVoyoeIGPd-8oSh08iuTRw,838
|
|
49
49
|
pub_analyzer/widgets/report/__init__.py,sha256=oolRVss3JKaQHaQVDncjtxbLINRJ5Rd1ulW1uk7MLhc,54
|
|
50
50
|
pub_analyzer/widgets/report/author.py,sha256=orlq-YSHeRcEyCXrQHiRpp2tdPC9SO1MjQ9uhNpU0-k,1227
|
|
51
|
-
pub_analyzer/widgets/report/cards.py,sha256=
|
|
51
|
+
pub_analyzer/widgets/report/cards.py,sha256=CwdevZzf3YnuAuHV0JEJXFrcyNZ-xEjFylvAHuuo48E,4852
|
|
52
52
|
pub_analyzer/widgets/report/concept.py,sha256=xiGXy_RXO_XmdqnlePkOozYPmQrsDdqKPMRXHsZbDP0,1485
|
|
53
53
|
pub_analyzer/widgets/report/core.py,sha256=V4fwBHnSqkUzC1da8sGYqzsPKQRofA7GqpEhbEXsk4s,11436
|
|
54
54
|
pub_analyzer/widgets/report/export.py,sha256=EQzF5fMZgHtLv3f5hITDgf9WW2XytRX_foeLWwcIHkM,4762
|
|
@@ -62,8 +62,8 @@ pub_analyzer/widgets/search/__init__.py,sha256=8C3IQtFkiIL8hlQbhJ_fAHM59-TAoe29w
|
|
|
62
62
|
pub_analyzer/widgets/search/core.py,sha256=4NvowtBcrH1fmob9kuF7v9Tq3Nd99jzB2S7xaD8OYeI,3861
|
|
63
63
|
pub_analyzer/widgets/search/results.py,sha256=6Sl-shkGCf-jcMmalXpk1n8oBHk1aZNzFPJfHSRP1gA,3702
|
|
64
64
|
pub_analyzer/widgets/sidebar.py,sha256=XlIshlCVW5Bb3MXFPnU9is0qQrUrGdT6xlkKiYNEcAM,2704
|
|
65
|
-
pub_analyzer-0.4.
|
|
66
|
-
pub_analyzer-0.4.
|
|
67
|
-
pub_analyzer-0.4.
|
|
68
|
-
pub_analyzer-0.4.
|
|
69
|
-
pub_analyzer-0.4.
|
|
65
|
+
pub_analyzer-0.4.1.dist-info/LICENSE,sha256=OPopoEowTMKqIea8Kbxk3TKdCQ97YkLvIknjTHE5oCI,1080
|
|
66
|
+
pub_analyzer-0.4.1.dist-info/METADATA,sha256=Y-1nykVEz-QCbK6vO8t8pb79gmmwZj0iDNPv6lOKOuQ,4508
|
|
67
|
+
pub_analyzer-0.4.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
68
|
+
pub_analyzer-0.4.1.dist-info/entry_points.txt,sha256=mVb_gUNX_-aVWHlNKLjcMAS8YLgNnSq9JLRXVJGIF2c,54
|
|
69
|
+
pub_analyzer-0.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|