pyeasyphd 0.3.9__tar.gz → 0.3.11__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.

Files changed (54) hide show
  1. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/PKG-INFO +2 -2
  2. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/main/pandoc_md_to.py +0 -5
  3. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/pyeasyphd.sublime-settings +0 -1
  4. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/scripts/__init__.py +7 -0
  5. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/scripts/_base.py +6 -33
  6. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/scripts/run_article_md.py +5 -2
  7. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/scripts/run_article_tex.py +0 -18
  8. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/scripts/run_beamer_tex.py +0 -18
  9. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/scripts/run_compare.py +17 -16
  10. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/scripts/run_format.py +13 -17
  11. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/scripts/run_generate.py +46 -21
  12. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/scripts/run_search.py +7 -7
  13. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyproject.toml +2 -2
  14. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/LICENSE +0 -0
  15. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/README.md +0 -0
  16. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/.python-version +0 -0
  17. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/Main.sublime-menu +0 -0
  18. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/__init__.py +0 -0
  19. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/CSL/apa-no-ampersand.csl +0 -0
  20. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/CSL/apa.csl +0 -0
  21. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/CSL/ieee.csl +0 -0
  22. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/Article.tex +0 -0
  23. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/Article_Header.tex +0 -0
  24. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/Article_Tail.tex +0 -0
  25. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/Beamer_Header.tex +0 -0
  26. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/Beamer_Tail.tex +0 -0
  27. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/Style.tex +0 -0
  28. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/TEVC_Header.tex +0 -0
  29. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/TEVC_Tail.tex +0 -0
  30. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/eisvogel.beamer +0 -0
  31. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/eisvogel.latex +0 -0
  32. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/eisvogel.tex +0 -0
  33. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/math.tex +0 -0
  34. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/math_commands.tex +0 -0
  35. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/data/Templates/TEX/nextaimathmacros.sty +0 -0
  36. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/main/__init__.py +0 -0
  37. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/main/basic_input.py +0 -0
  38. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/main/python_run_md.py +0 -0
  39. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/main/python_run_tex.py +0 -0
  40. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/pyeasyphd.py +0 -0
  41. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/pyeasyphd.sublime-syntax +0 -0
  42. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/__init__.py +0 -0
  43. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/generate/generate_from_bibs.py +0 -0
  44. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/generate/generate_html.py +0 -0
  45. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/generate/generate_library.py +0 -0
  46. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/generate/generate_links.py +0 -0
  47. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/py_run_bib_md_tex.py +0 -0
  48. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/search/data.py +0 -0
  49. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/search/search_base.py +0 -0
  50. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/search/search_core.py +0 -0
  51. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/search/search_keywords.py +0 -0
  52. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/search/search_writers.py +0 -0
  53. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/tools/search/utils.py +0 -0
  54. {pyeasyphd-0.3.9 → pyeasyphd-0.3.11}/pyeasyphd/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyeasyphd
3
- Version: 0.3.9
3
+ Version: 0.3.11
4
4
  Summary: pyeasyphd
5
5
  License: GPL-3.0-or-later
6
6
  License-File: LICENSE
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.13
17
17
  Classifier: Programming Language :: Python :: 3.14
18
18
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
19
  Requires-Dist: pyadvtools (>=0.2.4,<0.3.0)
20
- Requires-Dist: pybibtexer (>=0.2.1,<0.3.0)
20
+ Requires-Dist: pybibtexer (>=0.2.3,<0.3.0)
21
21
  Project-URL: Documentation, https://github.com/Easy-PhD/pyeasyphd
22
22
  Project-URL: Homepage, https://github.com/Easy-PhD/pyeasyphd
23
23
  Project-URL: Repository, https://github.com/Easy-PhD/pyeasyphd
@@ -28,7 +28,6 @@ class PandocMdTo(BasicInput):
28
28
  markdown_name (str): Markdown name. Defaults to "multi-markdown".
29
29
  markdown_citation (str): Markdown citation format. Defaults to "markdown_mmd".
30
30
  columns_in_md (int): Number of columns in markdown. Defaults to 120.
31
- google_connected_paper_scite (bool): Whether to use Google connected paper scite. Defaults to True.
32
31
  display_one_line_reference_note (bool): Whether to display one line reference note. Defaults to False.
33
32
  cite_flag_in_tex (str): Citation flag in LaTeX. Defaults to "cite".
34
33
  add_url_for_basic_dict (bool): Whether to add url for items in basic dict. Defualts to True.
@@ -51,7 +50,6 @@ class PandocMdTo(BasicInput):
51
50
  self.markdown_citation = "markdown-citations"
52
51
 
53
52
  self.columns_in_md: int = options.get("columns_in_md", 120)
54
- self.google_connected_paper_scite: bool = options.get("google_connected_paper_scite", True)
55
53
  self.display_one_line_reference_note: bool = options.get("display_one_line_reference_note", False)
56
54
  # tex
57
55
  self.cite_flag_in_tex: str = options.get("cite_flag_in_tex", "cite")
@@ -317,9 +315,6 @@ class PandocMdTo(BasicInput):
317
315
  aa: List[str] = key_url_http_bib_dict[k][0]
318
316
  bb: List[str] = key_url_http_bib_dict[k][1]
319
317
 
320
- if (not self.google_connected_paper_scite) and aa:
321
- bb = [f"([www]({aa[0].strip()}))\n"]
322
-
323
318
  # add url
324
319
  if self.add_url_for_basic_dict:
325
320
  a.extend(aa)
@@ -5,7 +5,6 @@
5
5
  // the number of columns in md files
6
6
  "columns_in_md": 120,
7
7
  // display one line reference note
8
- "google_connected_paper_scite": true,
9
8
  "display_one_line_reference_note": false,
10
9
  // "fullcite", "cite"
11
10
  "cite_flag_in_tex": "cite",
@@ -10,11 +10,18 @@ __all__ = [
10
10
  "run_generate_j_weekly",
11
11
  "run_generate_j_monthly",
12
12
  "run_generate_j_yearly",
13
+ # from pybibtexer
14
+ "run_compare_bib_with_local",
15
+ "run_compare_bib_with_zotero",
16
+ "run_format_bib_to_save_by_entry_type",
17
+ "run_format_bib_to_abbr_zotero_save"
13
18
  ]
14
19
 
15
20
  from .run_article_md import run_article_md_daily_notes
16
21
  from .run_article_tex import run_article_tex_submit
17
22
  from .run_beamer_tex import run_beamer_tex_weekly_reports
23
+ from .run_compare import run_compare_bib_with_local, run_compare_bib_with_zotero
24
+ from .run_format import run_format_bib_to_abbr_zotero_save, run_format_bib_to_save_by_entry_type
18
25
  from .run_generate import (
19
26
  run_generate_c_yearly,
20
27
  run_generate_j_e_weekly,
@@ -7,6 +7,11 @@ def expand_path(path: str) -> str:
7
7
  return os.path.expandvars(os.path.expanduser(path))
8
8
 
9
9
 
10
+ def expand_paths(*paths):
11
+ # Expand and normalize file paths
12
+ return [expand_path(path) for path in paths]
13
+
14
+
10
15
  def build_base_options(
11
16
  include_publisher_list: List[str],
12
17
  include_abbr_list: List[str],
@@ -27,6 +32,7 @@ def build_base_options(
27
32
  Returns:
28
33
  Dictionary containing configured options
29
34
  """
35
+ path_conferences_journals_json = expand_path(path_conferences_journals_json)
30
36
  return {
31
37
  "include_publisher_list": include_publisher_list,
32
38
  "include_abbr_list": include_abbr_list,
@@ -38,39 +44,6 @@ def build_base_options(
38
44
  }
39
45
 
40
46
 
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
-
74
47
  def build_search_options(
75
48
  print_on_screen: bool, search_year_list: List[str], keywords_type: str, keywords_list_list: List[List[str]]
76
49
  ) -> Dict[str, Any]:
@@ -68,6 +68,9 @@ def run_article_md_daily_notes(
68
68
  "generate_tex": False,
69
69
 
70
70
  # md options
71
+ # ["www", "google", "connected", "scite"]
72
+ "display_www_google_connected_scite": ["google", "connected"], # python_writers.py
73
+
71
74
  "add_url_for_basic_dict": False, # default is True
72
75
  "add_anchor_for_basic_dict": False, # default is False
73
76
  "add_anchor_for_beauty_dict": True, # default is False
@@ -78,8 +81,8 @@ def run_article_md_daily_notes(
78
81
  "add_reference_in_md": True,
79
82
  "add_bib_in_md": False,
80
83
  "replace_cite_to_fullcite_in_md": True,
81
- "replace_by_basic_beauty_complex_in_md": "basic",
82
- "display_basic_beauty_complex_references_in_md": "beauty",
84
+ "replace_by_basic_beauty_complex_in_md": "beauty", # default is "basic"
85
+ "display_basic_beauty_complex_references_in_md": "basic", # default is "beauty"
83
86
  "add_anchor_in_md": True, # default is False
84
87
 
85
88
  "md_folder_name": "mds", # "" or "md" or "main"
@@ -74,24 +74,6 @@ def run_article_tex_submit(
74
74
  "delete_original_tex_in_output_folder": True,
75
75
  "generate_tex": True,
76
76
 
77
- # md options
78
- "add_url_for_basic_dict": True, # default is True
79
- "add_anchor_for_basic_dict": False, # default is False
80
- "add_anchor_for_beauty_dict": False, # default is False
81
- "add_anchor_for_complex_dict": False, # default is False
82
-
83
- "final_output_main_md_name": "main.md",
84
- "delete_temp_generate_md": True,
85
- "add_reference_in_md": True,
86
- "add_bib_in_md": False,
87
- "replace_cite_to_fullcite_in_md": True,
88
- "replace_by_basic_beauty_complex_in_md": "basic",
89
- "display_basic_beauty_complex_references_in_md": "beauty",
90
- "add_anchor_in_md": False, # default is False
91
-
92
- "md_folder_name": "mds", # "" or "md" or "main"
93
- "delete_original_md_in_output_folder": False, # default is False
94
-
95
77
  # html options
96
78
  "generate_html": False,
97
79
  }
@@ -72,24 +72,6 @@ def run_beamer_tex_weekly_reports(
72
72
  "delete_original_tex_in_output_folder": True, # default is False
73
73
  "generate_tex": True,
74
74
 
75
- # md options
76
- "add_url_for_basic_dict": True, # default is True
77
- "add_anchor_for_basic_dict": False, # default is False
78
- "add_anchor_for_beauty_dict": False, # default is False
79
- "add_anchor_for_complex_dict": False, # default is False
80
-
81
- "final_output_main_md_name": "main.md",
82
- "delete_temp_generate_md": True,
83
- "add_reference_in_md": True,
84
- "add_bib_in_md": False,
85
- "replace_cite_to_fullcite_in_md": True,
86
- "replace_by_basic_beauty_complex_in_md": "basic",
87
- "display_basic_beauty_complex_references_in_md": "beauty",
88
- "add_anchor_in_md": False, # default is False
89
-
90
- "md_folder_name": "mds", # "" or "md" or "main"
91
- "delete_original_md_in_output_folder": False, # default is False
92
-
93
75
  # html options
94
76
  "generate_html": False,
95
77
  }
@@ -1,6 +1,6 @@
1
1
  from pybibtexer.tools import compare_bibs_with_local, compare_bibs_with_zotero
2
2
 
3
- from ._base import build_options, expand_path
3
+ from ._base import build_base_options, expand_paths
4
4
 
5
5
 
6
6
  def run_compare_bib_with_local(
@@ -10,17 +10,18 @@ def run_compare_bib_with_local(
10
10
  path_spidered_bibs: str,
11
11
  path_spidering_bibs: str,
12
12
  path_conferences_journals_json: str,
13
- ):
13
+ ) -> None:
14
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)
15
+ need_compare_bib, path_output, path_spidered_bibs, path_spidering_bibs = expand_paths(
16
+ need_compare_bib, path_output, path_spidered_bibs, path_spidering_bibs
21
17
  )
18
+
19
+ # Update options
20
+ options_ = build_base_options([], [], ["arXiv"], [], path_conferences_journals_json)
22
21
  options_["include_early_access"] = True
22
+ options_.update(options)
23
23
 
24
+ # Compare
24
25
  compare_bibs_with_local(need_compare_bib, path_spidered_bibs, path_spidering_bibs, path_output, options_)
25
26
 
26
27
 
@@ -30,15 +31,15 @@ def run_compare_bib_with_zotero(
30
31
  zotero_bib: str,
31
32
  path_output: str,
32
33
  path_conferences_journals_json: str,
33
- ):
34
+ ) -> None:
34
35
  # 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)
36
+ need_compare_bib, zotero_bib, path_output = expand_paths(
37
+ need_compare_bib, zotero_bib, path_output
42
38
  )
43
39
 
40
+ # Update options
41
+ options_ = build_base_options([], [], ["arXiv"], [], path_conferences_journals_json)
42
+ options_.update(options)
43
+
44
+ # Compare
44
45
  compare_bibs_with_zotero(zotero_bib, need_compare_bib, path_output, options_)
@@ -2,40 +2,36 @@ from pathlib import Path
2
2
 
3
3
  from pybibtexer.tools import format_bib_to_abbr_zotero_save_modes, format_bib_to_save_mode_by_entry_type
4
4
 
5
- from ._base import build_options, expand_path
5
+ from ._base import build_base_options, expand_paths
6
6
 
7
7
 
8
- def run_format_single_file_to_save(
8
+ def run_format_bib_to_save_by_entry_type(
9
9
  options: dict,
10
10
  need_format_bib: str,
11
11
  path_output: str,
12
12
  path_conferences_journals_json: str,
13
- ):
13
+ ) -> None:
14
14
  # Expand and normalize file paths
15
- path_output = expand_path(path_output)
15
+ need_format_bib, path_output = expand_paths(need_format_bib, path_output)
16
16
 
17
- need_format_bib = expand_path(need_format_bib)
18
-
19
- _, _, _, _, _, _, options_ = (
20
- build_options(options, "", "", path_conferences_journals_json)
21
- )
17
+ # Update options
18
+ options_ = build_base_options([], [], [], [], path_conferences_journals_json)
19
+ options_.update(options)
22
20
 
23
21
  format_bib_to_save_mode_by_entry_type(Path(need_format_bib).stem, path_output, need_format_bib, options=options_)
24
22
 
25
23
 
26
- def run_format_single_file_to_abbr_zotero_save(
24
+ def run_format_bib_to_abbr_zotero_save(
27
25
  options: dict,
28
26
  need_format_bib: str,
29
27
  path_output: str,
30
28
  path_conferences_journals_json: str,
31
- ):
29
+ ) -> None:
32
30
  # Expand and normalize file paths
33
- path_output = expand_path(path_output)
34
-
35
- need_format_bib = expand_path(need_format_bib)
31
+ need_format_bib, path_output = expand_paths(need_format_bib, path_output)
36
32
 
37
- _, _, _, _, _, _, options_ = (
38
- build_options(options, "", "", path_conferences_journals_json)
39
- )
33
+ # Update options
34
+ options_ = build_base_options([], [], [], [], path_conferences_journals_json)
35
+ options_.update(options)
40
36
 
41
37
  format_bib_to_abbr_zotero_save_modes(need_format_bib, path_output, options=options_)
@@ -3,7 +3,7 @@ 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 build_options, expand_path
6
+ from ._base import build_base_options, expand_paths
7
7
 
8
8
 
9
9
  def run_generate_j_weekly(
@@ -14,11 +14,11 @@ def run_generate_j_weekly(
14
14
  path_conferences_journals_json: str,
15
15
  ):
16
16
  # Expand and normalize file paths
17
- path_weekly_docs = expand_path(path_weekly_docs)
17
+ path_weekly_docs, path_spidering_bibs = expand_paths(path_weekly_docs, path_spidering_bibs)
18
18
 
19
- _, path_spidering_bibs, path_conferences_journals_json, full_json_c, full_json_j, full_json_k, options_ = (
20
- build_options(options, "", path_spidering_bibs, path_conferences_journals_json)
21
- )
19
+ # Update options
20
+ options_ = build_base_options([], [], ["arXiv"], [], path_conferences_journals_json)
21
+ options_.update(options)
22
22
 
23
23
  # Generate md and html files
24
24
  for gc in ["generate_data", "combine_data"]:
@@ -33,6 +33,11 @@ def run_generate_j_weekly(
33
33
 
34
34
  # Generate links
35
35
  for keywords_category_name in keywords_category_names:
36
+ full_json_c, full_json_j, full_json_k = (
37
+ options_["full_json_c"],
38
+ options_["full_json_j"],
39
+ options_["full_json_k"],
40
+ )
36
41
  output_basename = os.path.join("data", "Weekly")
37
42
  generator = PaperLinksGenerator(full_json_c, full_json_j, full_json_k, path_weekly_docs, keywords_category_name)
38
43
  generator.generate_weekly_links(output_basename)
@@ -47,11 +52,11 @@ def run_generate_j_e_weekly(
47
52
  path_conferences_journals_json: str,
48
53
  ):
49
54
  # Expand and normalize file paths
50
- path_weekly_docs = expand_path(path_weekly_docs)
55
+ path_weekly_docs, path_spidering_bibs = expand_paths(path_weekly_docs, path_spidering_bibs)
51
56
 
52
- _, path_spidering_bibs, path_conferences_journals_json, full_json_c, full_json_j, full_json_k, options_ = (
53
- build_options(options, "", path_spidering_bibs, path_conferences_journals_json)
54
- )
57
+ # Update options
58
+ options_ = build_base_options([], [], ["arXiv"], [], path_conferences_journals_json)
59
+ options_.update(options)
55
60
  options_["early_access"] = True
56
61
 
57
62
  # Generate md and html files
@@ -73,6 +78,11 @@ def run_generate_j_e_weekly(
73
78
 
74
79
  # Generate links
75
80
  for keywords_category_name in keywords_category_names:
81
+ full_json_c, full_json_j, full_json_k = (
82
+ options_["full_json_c"],
83
+ options_["full_json_j"],
84
+ options_["full_json_k"],
85
+ )
76
86
  output_basename = os.path.join("data", "Weekly")
77
87
  generator = PaperLinksGenerator(full_json_c, full_json_j, full_json_k, path_weekly_docs, keywords_category_name)
78
88
  generator.generate_ieee_early_access_links(output_basename)
@@ -87,11 +97,11 @@ def run_generate_j_monthly(
87
97
  path_conferences_journals_json: str,
88
98
  ):
89
99
  # Expand and normalize file paths
90
- path_monthly_docs = expand_path(path_monthly_docs)
100
+ path_monthly_docs, path_spidering_bibs = expand_paths(path_monthly_docs, path_spidering_bibs)
91
101
 
92
- _, path_spidering_bibs, path_conferences_journals_json, full_json_c, full_json_j, full_json_k, options_ = (
93
- build_options(options, "", path_spidering_bibs, path_conferences_journals_json)
94
- )
102
+ # Update options
103
+ options_ = build_base_options([], [], ["arXiv"], [], path_conferences_journals_json)
104
+ options_.update(options)
95
105
 
96
106
  # Generate md and html files
97
107
  for gc in ["generate_data", "combine_data"]:
@@ -110,6 +120,11 @@ def run_generate_j_monthly(
110
120
 
111
121
  # Generate links
112
122
  for keywords_category_name in keywords_category_names:
123
+ full_json_c, full_json_j, full_json_k = (
124
+ options_["full_json_c"],
125
+ options_["full_json_j"],
126
+ options_["full_json_k"],
127
+ )
113
128
  output_basename = os.path.join("data", "Monthly")
114
129
  generator = PaperLinksGenerator(
115
130
  full_json_c, full_json_j, full_json_k, path_monthly_docs, keywords_category_name
@@ -127,11 +142,11 @@ def run_generate_j_yearly(
127
142
  year_list: list[str],
128
143
  ):
129
144
  # Expand and normalize file paths
130
- path_yearly_docs = expand_path(path_yearly_docs)
145
+ path_yearly_docs, path_spidered_bibs = expand_paths(path_yearly_docs, path_spidered_bibs)
131
146
 
132
- path_spidered_bibs, _, path_conferences_journals_json, full_json_c, full_json_j, full_json_k, options_ = (
133
- build_options(options, path_spidered_bibs, "", path_conferences_journals_json)
134
- )
147
+ # Update options
148
+ options_ = build_base_options([], [], ["arXiv"], [], path_conferences_journals_json)
149
+ options_.update(options)
135
150
 
136
151
  # Generate md and html files
137
152
  for gc in ["generate_data", "combine_data"]:
@@ -146,6 +161,11 @@ def run_generate_j_yearly(
146
161
 
147
162
  # Generate links
148
163
  for keywords_category_name in keywords_category_names:
164
+ full_json_c, full_json_j, full_json_k = (
165
+ options_["full_json_c"],
166
+ options_["full_json_j"],
167
+ options_["full_json_k"],
168
+ )
149
169
  output_basename = os.path.join("data", "Yearly")
150
170
  generator = PaperLinksGenerator(full_json_c, full_json_j, full_json_k, path_yearly_docs, keywords_category_name)
151
171
  generator.generate_yearly_links("Journals", output_basename)
@@ -161,11 +181,11 @@ def run_generate_c_yearly(
161
181
  year_list: list[str],
162
182
  ):
163
183
  # Expand and normalize file paths
164
- path_yearly_docs = expand_path(path_yearly_docs)
184
+ path_yearly_docs, path_spidered_bibs = expand_paths(path_yearly_docs, path_spidered_bibs)
165
185
 
166
- path_spidered_bibs, _, path_conferences_journals_json, full_json_c, full_json_j, full_json_k, options_ = (
167
- build_options(options, path_spidered_bibs, "", path_conferences_journals_json)
168
- )
186
+ # Update options
187
+ options_ = build_base_options([], [], ["arXiv"], [], path_conferences_journals_json)
188
+ options_.update(options)
169
189
 
170
190
  # Generate md and html files
171
191
  for gc in ["generate_data", "combine_data"]:
@@ -180,6 +200,11 @@ def run_generate_c_yearly(
180
200
 
181
201
  # Generate links
182
202
  for keywords_category_name in keywords_category_names:
203
+ full_json_c, full_json_j, full_json_k = (
204
+ options_["full_json_c"],
205
+ options_["full_json_j"],
206
+ options_["full_json_k"],
207
+ )
183
208
  output_basename = os.path.join("data", "Yearly")
184
209
  generator = PaperLinksGenerator(full_json_c, full_json_j, full_json_k, path_yearly_docs, keywords_category_name)
185
210
  generator.generate_yearly_links("Conferences", output_basename)
@@ -6,7 +6,7 @@ from pybibtexer.tools import compare_bibs_with_zotero
6
6
 
7
7
  from pyeasyphd.tools import Searchkeywords
8
8
 
9
- from ._base import build_base_options, build_search_options, expand_path
9
+ from ._base import build_base_options, build_search_options, expand_path, expand_paths
10
10
 
11
11
 
12
12
  def run_search_for_screen(
@@ -29,9 +29,9 @@ def run_search_for_screen(
29
29
  path_conferences_journals_json: Path to conferences/journals JSON files
30
30
  """
31
31
  # Expand and normalize file paths
32
- path_spidered_bibs = expand_path(path_spidered_bibs)
33
- path_spidering_bibs = expand_path(path_spidering_bibs)
34
- path_conferences_journals_json = expand_path(path_conferences_journals_json)
32
+ path_spidered_bibs, path_spidering_bibs, path_conferences_journals_json = expand_paths(
33
+ path_spidered_bibs, path_spidering_bibs, path_conferences_journals_json
34
+ )
35
35
 
36
36
  # Configure search options
37
37
  options = {
@@ -72,9 +72,9 @@ def run_search_for_files(
72
72
  """
73
73
  # Expand and normalize file paths
74
74
  path_main_output = expand_path(path_main_output)
75
- path_spidered_bibs = expand_path(path_spidered_bibs)
76
- path_spidering_bibs = expand_path(path_spidering_bibs)
77
- path_conferences_journals_json = expand_path(path_conferences_journals_json)
75
+ path_spidered_bibs, path_spidering_bibs, path_conferences_journals_json = expand_paths(
76
+ path_spidered_bibs, path_spidering_bibs, path_conferences_journals_json
77
+ )
78
78
 
79
79
  # Configure search options
80
80
  options = {
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyeasyphd"
3
- version = "0.3.9"
3
+ version = "0.3.11"
4
4
  description = "pyeasyphd"
5
5
  license = "GPL-3.0-or-later"
6
6
  authors = ["NextAI <nextartifintell@gmail.com>"]
@@ -15,7 +15,7 @@ classifiers = ["Topic :: Software Development :: Libraries :: Python Modules"]
15
15
  [tool.poetry.dependencies]
16
16
  python = ">=3.12"
17
17
  pyadvtools = "^0.2.4"
18
- pybibtexer = "^0.2.1"
18
+ pybibtexer = "^0.2.3"
19
19
 
20
20
  [tool.poetry.group.dev.dependencies]
21
21
  mypy = "^1.18.1"
File without changes
File without changes