pyeasyphd 0.3.7__py3-none-any.whl → 0.3.9__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 pyeasyphd might be problematic. Click here for more details.
- pyeasyphd/scripts/__init__.py +10 -10
- pyeasyphd/scripts/_base.py +33 -0
- pyeasyphd/scripts/run_compare.py +44 -0
- pyeasyphd/scripts/run_format.py +41 -0
- pyeasyphd/scripts/run_generate.py +11 -44
- {pyeasyphd-0.3.7.dist-info → pyeasyphd-0.3.9.dist-info}/METADATA +1 -1
- {pyeasyphd-0.3.7.dist-info → pyeasyphd-0.3.9.dist-info}/RECORD +9 -7
- {pyeasyphd-0.3.7.dist-info → pyeasyphd-0.3.9.dist-info}/WHEEL +0 -0
- {pyeasyphd-0.3.7.dist-info → pyeasyphd-0.3.9.dist-info}/licenses/LICENSE +0 -0
pyeasyphd/scripts/__init__.py
CHANGED
|
@@ -5,21 +5,21 @@ __all__ = [
|
|
|
5
5
|
"run_search_for_screen",
|
|
6
6
|
"run_search_for_files",
|
|
7
7
|
"run_compare_after_search",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
8
|
+
"run_generate_c_yearly",
|
|
9
|
+
"run_generate_j_e_weekly",
|
|
10
|
+
"run_generate_j_weekly",
|
|
11
|
+
"run_generate_j_monthly",
|
|
12
|
+
"run_generate_j_yearly",
|
|
13
13
|
]
|
|
14
14
|
|
|
15
15
|
from .run_article_md import run_article_md_daily_notes
|
|
16
16
|
from .run_article_tex import run_article_tex_submit
|
|
17
17
|
from .run_beamer_tex import run_beamer_tex_weekly_reports
|
|
18
18
|
from .run_generate import (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
run_generate_c_yearly,
|
|
20
|
+
run_generate_j_e_weekly,
|
|
21
|
+
run_generate_j_monthly,
|
|
22
|
+
run_generate_j_weekly,
|
|
23
|
+
run_generate_j_yearly,
|
|
24
24
|
)
|
|
25
25
|
from .run_search import run_compare_after_search, run_search_for_files, run_search_for_screen
|
pyeasyphd/scripts/_base.py
CHANGED
|
@@ -38,6 +38,39 @@ def build_base_options(
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
|
|
41
|
+
def build_options(
|
|
42
|
+
options: dict, path_spidered_bibs: str, path_spidering_bibs: str, path_conferences_journals_json: str
|
|
43
|
+
):
|
|
44
|
+
# Expand and normalize file paths
|
|
45
|
+
path_spidered_bibs = expand_path(path_spidered_bibs)
|
|
46
|
+
path_spidering_bibs = expand_path(path_spidering_bibs)
|
|
47
|
+
path_conferences_journals_json = expand_path(path_conferences_journals_json)
|
|
48
|
+
|
|
49
|
+
# Configure options
|
|
50
|
+
options_ = build_base_options(
|
|
51
|
+
include_publisher_list=[],
|
|
52
|
+
include_abbr_list=[],
|
|
53
|
+
exclude_publisher_list=["arXiv"],
|
|
54
|
+
exclude_abbr_list=[],
|
|
55
|
+
path_conferences_journals_json=path_conferences_journals_json,
|
|
56
|
+
)
|
|
57
|
+
options_.update(options)
|
|
58
|
+
|
|
59
|
+
full_json_c = options_["full_json_c"]
|
|
60
|
+
full_json_j = options_["full_json_j"]
|
|
61
|
+
full_json_k = options_["full_json_k"]
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
path_spidered_bibs,
|
|
65
|
+
path_spidering_bibs,
|
|
66
|
+
path_conferences_journals_json,
|
|
67
|
+
full_json_c,
|
|
68
|
+
full_json_j,
|
|
69
|
+
full_json_k,
|
|
70
|
+
options_,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
|
|
41
74
|
def build_search_options(
|
|
42
75
|
print_on_screen: bool, search_year_list: List[str], keywords_type: str, keywords_list_list: List[List[str]]
|
|
43
76
|
) -> Dict[str, Any]:
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from pybibtexer.tools import compare_bibs_with_local, compare_bibs_with_zotero
|
|
2
|
+
|
|
3
|
+
from ._base import build_options, expand_path
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def run_compare_bib_with_local(
|
|
7
|
+
options: dict,
|
|
8
|
+
need_compare_bib: str,
|
|
9
|
+
path_output: str,
|
|
10
|
+
path_spidered_bibs: str,
|
|
11
|
+
path_spidering_bibs: str,
|
|
12
|
+
path_conferences_journals_json: str,
|
|
13
|
+
):
|
|
14
|
+
# Expand and normalize file paths
|
|
15
|
+
path_output = expand_path(path_output)
|
|
16
|
+
|
|
17
|
+
need_compare_bib = expand_path(need_compare_bib)
|
|
18
|
+
|
|
19
|
+
path_spidered_bibs, path_spidering_bibs, _, _, _, _, options_ = (
|
|
20
|
+
build_options(options, path_spidered_bibs, path_spidering_bibs, path_conferences_journals_json)
|
|
21
|
+
)
|
|
22
|
+
options_["include_early_access"] = True
|
|
23
|
+
|
|
24
|
+
compare_bibs_with_local(need_compare_bib, path_spidered_bibs, path_spidering_bibs, path_output, options_)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def run_compare_bib_with_zotero(
|
|
28
|
+
options: dict,
|
|
29
|
+
need_compare_bib: str,
|
|
30
|
+
zotero_bib: str,
|
|
31
|
+
path_output: str,
|
|
32
|
+
path_conferences_journals_json: str,
|
|
33
|
+
):
|
|
34
|
+
# Expand and normalize file paths
|
|
35
|
+
path_output = expand_path(path_output)
|
|
36
|
+
|
|
37
|
+
zotero_bib = expand_path(zotero_bib)
|
|
38
|
+
need_compare_bib = expand_path(need_compare_bib)
|
|
39
|
+
|
|
40
|
+
_, _, _, _, _, _, options_ = (
|
|
41
|
+
build_options(options, "", "", path_conferences_journals_json)
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
compare_bibs_with_zotero(zotero_bib, need_compare_bib, path_output, options_)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
from pybibtexer.tools import format_bib_to_abbr_zotero_save_modes, format_bib_to_save_mode_by_entry_type
|
|
4
|
+
|
|
5
|
+
from ._base import build_options, expand_path
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def run_format_single_file_to_save(
|
|
9
|
+
options: dict,
|
|
10
|
+
need_format_bib: str,
|
|
11
|
+
path_output: str,
|
|
12
|
+
path_conferences_journals_json: str,
|
|
13
|
+
):
|
|
14
|
+
# Expand and normalize file paths
|
|
15
|
+
path_output = expand_path(path_output)
|
|
16
|
+
|
|
17
|
+
need_format_bib = expand_path(need_format_bib)
|
|
18
|
+
|
|
19
|
+
_, _, _, _, _, _, options_ = (
|
|
20
|
+
build_options(options, "", "", path_conferences_journals_json)
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
format_bib_to_save_mode_by_entry_type(Path(need_format_bib).stem, path_output, need_format_bib, options=options_)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def run_format_single_file_to_abbr_zotero_save(
|
|
27
|
+
options: dict,
|
|
28
|
+
need_format_bib: str,
|
|
29
|
+
path_output: str,
|
|
30
|
+
path_conferences_journals_json: str,
|
|
31
|
+
):
|
|
32
|
+
# Expand and normalize file paths
|
|
33
|
+
path_output = expand_path(path_output)
|
|
34
|
+
|
|
35
|
+
need_format_bib = expand_path(need_format_bib)
|
|
36
|
+
|
|
37
|
+
_, _, _, _, _, _, options_ = (
|
|
38
|
+
build_options(options, "", "", path_conferences_journals_json)
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
format_bib_to_abbr_zotero_save_modes(need_format_bib, path_output, options=options_)
|
|
@@ -3,10 +3,10 @@ import os
|
|
|
3
3
|
from pyeasyphd.tools import PaperLinksGenerator, generate_from_bibs_and_write
|
|
4
4
|
from pyeasyphd.utils.utils import is_last_week_of_month
|
|
5
5
|
|
|
6
|
-
from ._base import
|
|
6
|
+
from ._base import build_options, expand_path
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
def
|
|
9
|
+
def run_generate_j_weekly(
|
|
10
10
|
options: dict,
|
|
11
11
|
path_weekly_docs: str,
|
|
12
12
|
keywords_category_names: list[str],
|
|
@@ -17,7 +17,7 @@ def run_generate_j_Weekly(
|
|
|
17
17
|
path_weekly_docs = expand_path(path_weekly_docs)
|
|
18
18
|
|
|
19
19
|
_, path_spidering_bibs, path_conferences_journals_json, full_json_c, full_json_j, full_json_k, options_ = (
|
|
20
|
-
|
|
20
|
+
build_options(options, "", path_spidering_bibs, path_conferences_journals_json)
|
|
21
21
|
)
|
|
22
22
|
|
|
23
23
|
# Generate md and html files
|
|
@@ -39,7 +39,7 @@ def run_generate_j_Weekly(
|
|
|
39
39
|
generator.generate_keywords_links_weekly("Journals", output_basename)
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
def
|
|
42
|
+
def run_generate_j_e_weekly(
|
|
43
43
|
options: dict,
|
|
44
44
|
path_weekly_docs: str,
|
|
45
45
|
keywords_category_names: list[str],
|
|
@@ -50,7 +50,7 @@ def run_generate_j_e_Weekly(
|
|
|
50
50
|
path_weekly_docs = expand_path(path_weekly_docs)
|
|
51
51
|
|
|
52
52
|
_, path_spidering_bibs, path_conferences_journals_json, full_json_c, full_json_j, full_json_k, options_ = (
|
|
53
|
-
|
|
53
|
+
build_options(options, "", path_spidering_bibs, path_conferences_journals_json)
|
|
54
54
|
)
|
|
55
55
|
options_["early_access"] = True
|
|
56
56
|
|
|
@@ -79,7 +79,7 @@ def run_generate_j_e_Weekly(
|
|
|
79
79
|
generator.generate_keywords_links_weekly("Journals", output_basename)
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
def
|
|
82
|
+
def run_generate_j_monthly(
|
|
83
83
|
options: dict,
|
|
84
84
|
path_monthly_docs: str,
|
|
85
85
|
keywords_category_names: list[str],
|
|
@@ -90,7 +90,7 @@ def run_generate_j_Monthly(
|
|
|
90
90
|
path_monthly_docs = expand_path(path_monthly_docs)
|
|
91
91
|
|
|
92
92
|
_, path_spidering_bibs, path_conferences_journals_json, full_json_c, full_json_j, full_json_k, options_ = (
|
|
93
|
-
|
|
93
|
+
build_options(options, "", path_spidering_bibs, path_conferences_journals_json)
|
|
94
94
|
)
|
|
95
95
|
|
|
96
96
|
# Generate md and html files
|
|
@@ -118,7 +118,7 @@ def run_generate_j_Monthly(
|
|
|
118
118
|
generator.generate_keywords_links_monthly("Journals", output_basename)
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
def
|
|
121
|
+
def run_generate_j_yearly(
|
|
122
122
|
options: dict,
|
|
123
123
|
path_yearly_docs: str,
|
|
124
124
|
keywords_category_names: list[str],
|
|
@@ -130,7 +130,7 @@ def run_generate_j_Yearly(
|
|
|
130
130
|
path_yearly_docs = expand_path(path_yearly_docs)
|
|
131
131
|
|
|
132
132
|
path_spidered_bibs, _, path_conferences_journals_json, full_json_c, full_json_j, full_json_k, options_ = (
|
|
133
|
-
|
|
133
|
+
build_options(options, path_spidered_bibs, "", path_conferences_journals_json)
|
|
134
134
|
)
|
|
135
135
|
|
|
136
136
|
# Generate md and html files
|
|
@@ -152,40 +152,7 @@ def run_generate_j_Yearly(
|
|
|
152
152
|
generator.generate_keywords_links_yearly("Journals", output_basename)
|
|
153
153
|
|
|
154
154
|
|
|
155
|
-
def
|
|
156
|
-
options: dict, path_spidered_bibs: str, path_spidering_bibs: str, path_conferences_journals_json: str
|
|
157
|
-
):
|
|
158
|
-
# Expand and normalize file paths
|
|
159
|
-
path_spidered_bibs = expand_path(path_spidered_bibs)
|
|
160
|
-
path_spidering_bibs = expand_path(path_spidering_bibs)
|
|
161
|
-
path_conferences_journals_json = expand_path(path_conferences_journals_json)
|
|
162
|
-
|
|
163
|
-
# Configure options
|
|
164
|
-
options_ = build_base_options(
|
|
165
|
-
include_publisher_list=[],
|
|
166
|
-
include_abbr_list=[],
|
|
167
|
-
exclude_publisher_list=["arXiv"],
|
|
168
|
-
exclude_abbr_list=[],
|
|
169
|
-
path_conferences_journals_json=path_conferences_journals_json,
|
|
170
|
-
)
|
|
171
|
-
options_.update(options)
|
|
172
|
-
|
|
173
|
-
full_json_c = options_["full_json_c"]
|
|
174
|
-
full_json_j = options_["full_json_j"]
|
|
175
|
-
full_json_k = options_["full_json_k"]
|
|
176
|
-
|
|
177
|
-
return (
|
|
178
|
-
path_spidered_bibs,
|
|
179
|
-
path_spidering_bibs,
|
|
180
|
-
path_conferences_journals_json,
|
|
181
|
-
full_json_c,
|
|
182
|
-
full_json_j,
|
|
183
|
-
full_json_k,
|
|
184
|
-
options_
|
|
185
|
-
)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
def run_generate_c_Yearly(
|
|
155
|
+
def run_generate_c_yearly(
|
|
189
156
|
options: dict,
|
|
190
157
|
path_yearly_docs: str,
|
|
191
158
|
keywords_category_names: list[str],
|
|
@@ -197,7 +164,7 @@ def run_generate_c_Yearly(
|
|
|
197
164
|
path_yearly_docs = expand_path(path_yearly_docs)
|
|
198
165
|
|
|
199
166
|
path_spidered_bibs, _, path_conferences_journals_json, full_json_c, full_json_j, full_json_k, options_ = (
|
|
200
|
-
|
|
167
|
+
build_options(options, path_spidered_bibs, "", path_conferences_journals_json)
|
|
201
168
|
)
|
|
202
169
|
|
|
203
170
|
# Generate md and html files
|
|
@@ -26,12 +26,14 @@ pyeasyphd/main/python_run_tex.py,sha256=9Syu8qRjPXN3gEabfRUWxwTFBm_izIcB4yFhsz3Q
|
|
|
26
26
|
pyeasyphd/pyeasyphd.py,sha256=OAwbwq2rSXLSk2AoTAF8hmlOMRSRfvDn1Uqk-zkuqH8,3470
|
|
27
27
|
pyeasyphd/pyeasyphd.sublime-settings,sha256=KcXx3DjyVf8UfnB4FP4u-jaTQU3Cuj24OvxGCZvXAsw,3135
|
|
28
28
|
pyeasyphd/pyeasyphd.sublime-syntax,sha256=pXylbA-tye-K5dCTjEJLFVRqtY1T7AgWZ4laxo-dnaE,73
|
|
29
|
-
pyeasyphd/scripts/__init__.py,sha256=
|
|
30
|
-
pyeasyphd/scripts/_base.py,sha256=
|
|
29
|
+
pyeasyphd/scripts/__init__.py,sha256=3X112jjcmFaOuklm_5g6PQacPQAnMQtLfBicaDGGr5E,780
|
|
30
|
+
pyeasyphd/scripts/_base.py,sha256=UiSbgzUQUFyB5mEdHu9NsQ_-rsyx3HEQdEnKPbjsY_c,3225
|
|
31
31
|
pyeasyphd/scripts/run_article_md.py,sha256=ZjdO03YRDokSqo-Rffby-1p6_P35N4amERKHe4yS6_0,4127
|
|
32
32
|
pyeasyphd/scripts/run_article_tex.py,sha256=TuTEQk7y-Ykos3a_mlEJzyFnT9RKsAYjGXnwHJa5cjY,4672
|
|
33
33
|
pyeasyphd/scripts/run_beamer_tex.py,sha256=UUOadRfmyWGfK__9NzJIUo1lAiDRB5edxRsfhrS3Ejo,4209
|
|
34
|
-
pyeasyphd/scripts/
|
|
34
|
+
pyeasyphd/scripts/run_compare.py,sha256=keHkzqhEm9Odczv1XoFD_G4i2lky4p1VAyVv8sgDrNc,1342
|
|
35
|
+
pyeasyphd/scripts/run_format.py,sha256=Bw-RQ8p1303gClWGAHJUvyIq1bvwtXvr2SM2F9xps9o,1189
|
|
36
|
+
pyeasyphd/scripts/run_generate.py,sha256=iPIixac74W5Wa2kFclt6ImZEOpHhH7m34DORQGIVqpU,7938
|
|
35
37
|
pyeasyphd/scripts/run_search.py,sha256=DPpFcctEuzHCBZQdoGsETzqtIq_dfcMfEPd5lUTNKHg,8106
|
|
36
38
|
pyeasyphd/tools/__init__.py,sha256=u1MZu_JjVac3HhEmcSTwroS83UVu0W5Vspy3Wu_-GH8,496
|
|
37
39
|
pyeasyphd/tools/generate/generate_from_bibs.py,sha256=Dp1MyADwIRb9qFTFOkMPJLaeeh7NBjuiSLBN7smP2eo,7640
|
|
@@ -46,7 +48,7 @@ pyeasyphd/tools/search/search_keywords.py,sha256=YCurXuoYeU1ftve0cb8Hcn_g2FXCXf7
|
|
|
46
48
|
pyeasyphd/tools/search/search_writers.py,sha256=Dz6D8m17R7x8NT7_PCjwmzlq29AfUz-N6sjyCguDTo4,15702
|
|
47
49
|
pyeasyphd/tools/search/utils.py,sha256=bo7xtIZu31dQvjol1lwyWq1t6ldbw28oondwK8VbAqk,7562
|
|
48
50
|
pyeasyphd/utils/utils.py,sha256=kWxzzgNwz77K9Q7j-RKTaoPpxqiVLVtaBMMhLuEenwE,3128
|
|
49
|
-
pyeasyphd-0.3.
|
|
50
|
-
pyeasyphd-0.3.
|
|
51
|
-
pyeasyphd-0.3.
|
|
52
|
-
pyeasyphd-0.3.
|
|
51
|
+
pyeasyphd-0.3.9.dist-info/METADATA,sha256=p_zAXw7Q0Wrui3JNiINWUXyLVxDeg836YpQYgoWLfvU,985
|
|
52
|
+
pyeasyphd-0.3.9.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
53
|
+
pyeasyphd-0.3.9.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
54
|
+
pyeasyphd-0.3.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|