pyeasyphd 0.3.4__tar.gz → 0.3.5__tar.gz
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-0.3.4 → pyeasyphd-0.3.5}/PKG-INFO +1 -1
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/scripts/__init__.py +3 -2
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/scripts/run_search_keywords.py +103 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyproject.toml +1 -1
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/LICENSE +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/README.md +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/.python-version +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/Main.sublime-menu +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/__init__.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/CSL/apa-no-ampersand.csl +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/CSL/apa.csl +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/CSL/ieee.csl +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/Article.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/Article_Header.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/Article_Tail.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/Beamer_Header.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/Beamer_Tail.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/Style.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/TEVC_Header.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/TEVC_Tail.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/eisvogel.beamer +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/eisvogel.latex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/eisvogel.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/math.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/math_commands.tex +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/data/Templates/TEX/nextaimathmacros.sty +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/main/__init__.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/main/basic_input.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/main/pandoc_md_to.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/main/python_run_md.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/main/python_run_tex.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/pyeasyphd.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/pyeasyphd.sublime-settings +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/pyeasyphd.sublime-syntax +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/scripts/run_article_md.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/scripts/run_article_tex.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/scripts/run_beamer_tex.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/__init__.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/generate/generate_from_bibs.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/generate/generate_html.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/generate/generate_library.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/generate/generate_links.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/py_run_bib_md_tex.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/search/data.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/search/search_base.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/search/search_core.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/search/search_keywords.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/search/search_writers.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/tools/search/utils.py +0 -0
- {pyeasyphd-0.3.4 → pyeasyphd-0.3.5}/pyeasyphd/utils/utils.py +0 -0
|
@@ -2,11 +2,12 @@ __all__ = [
|
|
|
2
2
|
"run_article_md_daily_notes",
|
|
3
3
|
"run_article_tex_submit",
|
|
4
4
|
"run_beamer_tex_weekly_reports",
|
|
5
|
-
"run_search_for_files",
|
|
6
5
|
"run_search_for_screen",
|
|
6
|
+
"run_search_for_files",
|
|
7
|
+
"run_compare_after_search",
|
|
7
8
|
]
|
|
8
9
|
|
|
9
10
|
from .run_article_md import run_article_md_daily_notes
|
|
10
11
|
from .run_article_tex import run_article_tex_submit
|
|
11
12
|
from .run_beamer_tex import run_beamer_tex_weekly_reports
|
|
12
|
-
from .run_search_keywords import run_search_for_files, run_search_for_screen
|
|
13
|
+
from .run_search_keywords import run_compare_after_search, run_search_for_files, run_search_for_screen
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import os
|
|
2
2
|
from typing import Any, Dict, List
|
|
3
3
|
|
|
4
|
+
from pyadvtools import transform_to_data_list
|
|
5
|
+
from pybibtexer.tools import compare_bibs_with_zotero
|
|
6
|
+
|
|
4
7
|
from pyeasyphd.tools import Searchkeywords
|
|
5
8
|
|
|
6
9
|
|
|
@@ -157,3 +160,103 @@ def _execute_searches(
|
|
|
157
160
|
path_storage = os.path.join(path_spidering_bibs, je)
|
|
158
161
|
path_output = os.path.join(path_main_output, "Search_spidering_bib", je)
|
|
159
162
|
Searchkeywords(path_storage, path_output, options).run()
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def run_compare_after_search(
|
|
166
|
+
zotero_bib: str,
|
|
167
|
+
keywords_type: str,
|
|
168
|
+
path_main_output: str,
|
|
169
|
+
path_conferences_journals_json: str,
|
|
170
|
+
):
|
|
171
|
+
"""
|
|
172
|
+
Compare search results with Zotero bibliography and generate comparison report.
|
|
173
|
+
|
|
174
|
+
Args:
|
|
175
|
+
zotero_bib: Path to Zotero bibliography file
|
|
176
|
+
keywords_type: Category name for the search keywords used
|
|
177
|
+
path_main_output: Main output directory for search results and comparison
|
|
178
|
+
path_conferences_journals_json: Path to conferences/journals JSON files
|
|
179
|
+
"""
|
|
180
|
+
# Expand and normalize file paths
|
|
181
|
+
zotero_bib = _expand_path(zotero_bib)
|
|
182
|
+
path_main_output = _expand_path(path_main_output)
|
|
183
|
+
path_conferences_journals_json = _expand_path(path_conferences_journals_json)
|
|
184
|
+
|
|
185
|
+
# Configure search options
|
|
186
|
+
options = _build_search_options(
|
|
187
|
+
print_on_screen=False,
|
|
188
|
+
search_year_list=[],
|
|
189
|
+
include_publisher_list=[],
|
|
190
|
+
include_abbr_list=[],
|
|
191
|
+
exclude_publisher_list=["arXiv"],
|
|
192
|
+
exclude_abbr_list=[],
|
|
193
|
+
keywords_type=keywords_type,
|
|
194
|
+
keywords_list_list=[],
|
|
195
|
+
path_conferences_journals_json=path_conferences_journals_json,
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
# Download bibliography files from local search results
|
|
199
|
+
download_bib = _download_bib_from_local(path_main_output, keywords_type)
|
|
200
|
+
|
|
201
|
+
# Generate comparison output path and run comparison
|
|
202
|
+
path_output = os.path.join(path_main_output, "comparison_new")
|
|
203
|
+
compare_bibs_with_zotero(zotero_bib, download_bib, path_output, options)
|
|
204
|
+
|
|
205
|
+
return None
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
def _generate_data_list(path_output: str, folder_name: str, keywords_type: str) -> list[str]:
|
|
209
|
+
"""
|
|
210
|
+
Extract bibliography data content from files in specified folder structure.
|
|
211
|
+
|
|
212
|
+
Args:
|
|
213
|
+
path_output: Base output path for search results
|
|
214
|
+
folder_name: Specific folder name within the output structure
|
|
215
|
+
keywords_type: Category name for the search keywords used
|
|
216
|
+
|
|
217
|
+
Returns:
|
|
218
|
+
List of bibliography data content extracted from .bib files in the specified folders
|
|
219
|
+
"""
|
|
220
|
+
data_list = []
|
|
221
|
+
|
|
222
|
+
# Extract data from both title and abstract bibliography folders
|
|
223
|
+
for bib_type in ["title-bib-zotero", "abstract-bib-zotero"]:
|
|
224
|
+
folder_path = os.path.join(
|
|
225
|
+
path_output,
|
|
226
|
+
f"{folder_name}-Separate",
|
|
227
|
+
"article",
|
|
228
|
+
keywords_type,
|
|
229
|
+
bib_type
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
# Extract bibliography data content if folder exists
|
|
233
|
+
if os.path.exists(folder_path):
|
|
234
|
+
data_list.extend(transform_to_data_list(folder_path, ".bib"))
|
|
235
|
+
|
|
236
|
+
return data_list
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
def _download_bib_from_local(path_output: str, keywords_type: str) -> list[str]:
|
|
240
|
+
"""
|
|
241
|
+
Collect bibliography data content from all local search result directories.
|
|
242
|
+
|
|
243
|
+
Args:
|
|
244
|
+
path_output: Base output path containing search results
|
|
245
|
+
keywords_type: Category name for the search keywords used
|
|
246
|
+
|
|
247
|
+
Returns:
|
|
248
|
+
Combined list of bibliography data content from all .bib files in search results
|
|
249
|
+
"""
|
|
250
|
+
data_list = []
|
|
251
|
+
|
|
252
|
+
# Collect data from spidered bibliographies (Conferences and Journals)
|
|
253
|
+
for cj in ["Conferences", "Journals"]:
|
|
254
|
+
folder_name = os.path.join("Search_spidered_bib", cj)
|
|
255
|
+
data_list.extend(_generate_data_list(path_output, folder_name, keywords_type))
|
|
256
|
+
|
|
257
|
+
# Collect data from spidering bibliographies (journal sources)
|
|
258
|
+
for je in ["spider_j", "spider_j_e"]:
|
|
259
|
+
folder_name = os.path.join("Search_spidering_bib", je)
|
|
260
|
+
data_list.extend(_generate_data_list(path_output, folder_name, keywords_type))
|
|
261
|
+
|
|
262
|
+
return data_list
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|