pyeasyphd 0.3.28__tar.gz → 0.3.29__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 (53) hide show
  1. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/PKG-INFO +1 -1
  2. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/scripts/run_search.py +72 -26
  3. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyproject.toml +1 -1
  4. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/LICENSE +0 -0
  5. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/README.md +0 -0
  6. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/.python-version +0 -0
  7. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/Main.sublime-menu +0 -0
  8. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/__init__.py +0 -0
  9. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/csl/apa-no-ampersand.csl +0 -0
  10. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/csl/apa.csl +0 -0
  11. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/csl/ieee.csl +0 -0
  12. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/Article.tex +0 -0
  13. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/Article_Header.tex +0 -0
  14. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/Article_Tail.tex +0 -0
  15. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/Beamer_Header.tex +0 -0
  16. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/Beamer_Tail.tex +0 -0
  17. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/Style.tex +0 -0
  18. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/TEVC_Header.tex +0 -0
  19. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/TEVC_Tail.tex +0 -0
  20. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/eisvogel.tex +0 -0
  21. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/math.tex +0 -0
  22. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/math_commands.tex +0 -0
  23. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/data/templates/tex/nextaimathmacros.sty +0 -0
  24. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/main/__init__.py +0 -0
  25. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/main/basic_input.py +0 -0
  26. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/main/pandoc_md_to.py +0 -0
  27. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/main/python_run_md.py +0 -0
  28. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/main/python_run_tex.py +0 -0
  29. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/pyeasyphd.py +0 -0
  30. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/pyeasyphd.sublime-settings +0 -0
  31. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/pyeasyphd.sublime-syntax +0 -0
  32. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/scripts/__init__.py +0 -0
  33. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/scripts/_base.py +0 -0
  34. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/scripts/run_article_md.py +0 -0
  35. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/scripts/run_article_tex.py +0 -0
  36. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/scripts/run_beamer_tex.py +0 -0
  37. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/scripts/run_compare.py +0 -0
  38. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/scripts/run_format.py +0 -0
  39. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/scripts/run_generate.py +0 -0
  40. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/scripts/run_replace.py +0 -0
  41. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/__init__.py +0 -0
  42. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/generate/generate_from_bibs.py +0 -0
  43. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/generate/generate_html.py +0 -0
  44. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/generate/generate_library.py +0 -0
  45. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/generate/generate_links.py +0 -0
  46. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/py_run_bib_md_tex.py +0 -0
  47. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/search/data.py +0 -0
  48. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/search/search_base.py +0 -0
  49. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/search/search_core.py +0 -0
  50. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/search/search_keywords.py +0 -0
  51. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/search/search_writers.py +0 -0
  52. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/tools/search/utils.py +0 -0
  53. {pyeasyphd-0.3.28 → pyeasyphd-0.3.29}/pyeasyphd/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyeasyphd
3
- Version: 0.3.28
3
+ Version: 0.3.29
4
4
  Summary: pyeasyphd
5
5
  License: GPL-3.0-or-later
6
6
  License-File: LICENSE
@@ -22,12 +22,17 @@ def run_search_for_screen(
22
22
 
23
23
  Args:
24
24
  acronym: Conference/journal acronym to search for
25
- year: Publication year to filter by
25
+ year: Publication year to filter by (0 means all years)
26
26
  title: Paper title used as search keyword
27
27
  path_spidered_bibs: Path to spidered bibliography files
28
28
  path_spidering_bibs: Path to spidering bibliography files
29
29
  path_conf_j_jsons: Path to conferences/journals JSON files
30
30
  """
31
+ # Handle year filtering: if year is 0, search all years (empty list)
32
+ search_year_list = [str(year)]
33
+ if year == 0:
34
+ search_year_list = [] # Empty list means no year filtering
35
+
31
36
  # Expand and normalize file paths
32
37
  path_spidered_bibs, path_spidering_bibs, path_conf_j_jsons = expand_paths(
33
38
  path_spidered_bibs, path_spidering_bibs, path_conf_j_jsons
@@ -43,13 +48,18 @@ def run_search_for_screen(
43
48
  path_conf_j_jsons=path_conf_j_jsons,
44
49
  ),
45
50
  **build_search_options(
46
- print_on_screen=True, search_year_list=[str(year)], keywords_type="Temp", keywords_list_list=[[title]]
51
+ print_on_screen=True,
52
+ search_year_list=search_year_list, # Empty list for all years, otherwise specific year
53
+ keywords_type="Temp",
54
+ keywords_list_list=[[title]] # Use title as search keyword
47
55
  ),
48
56
  }
49
57
 
50
58
  # Execute searches across different bibliography sources
51
59
  _execute_searches(options, "", path_spidered_bibs, path_spidering_bibs)
52
60
 
61
+ return None
62
+
53
63
 
54
64
  def run_search_for_files(
55
65
  keywords_type: str,
@@ -58,51 +68,73 @@ def run_search_for_files(
58
68
  path_spidered_bibs: str,
59
69
  path_spidering_bibs: str,
60
70
  path_conf_j_jsons: str,
71
+ search_in_spidered_bib: bool = False,
72
+ search_in_spidering_bib: bool = False,
61
73
  options: Optional[dict] = None
62
74
  ) -> None:
63
75
  """
64
76
  Run search and save results to files with custom keywords.
65
77
 
66
78
  Args:
67
- keywords_type: Category name for the search keywords
68
- keywords_list_list: Nested list of keywords to search for
79
+ keywords_type: Category name for the search keywords (used for organizing results)
80
+ keywords_list_list: Nested list of keywords to search for (each inner list represents a search group)
69
81
  path_main_output: Main output directory for search results
70
82
  path_spidered_bibs: Path to spidered bibliography files
71
83
  path_spidering_bibs: Path to spidering bibliography files
72
84
  path_conf_j_jsons: Path to conferences/journals JSON files
85
+ search_in_spidered_bib: Whether to search in spidered bibliography files
86
+ search_in_spidering_bib: Whether to search in spidering bibliography files
87
+ options: Additional search options to override defaults
73
88
  """
89
+ # Initialize options dictionary if not provided
74
90
  if options is None:
75
91
  options = {}
76
92
 
77
- # Expand and normalize file paths
93
+ # Expand and normalize file paths to ensure consistent path formatting
78
94
  path_main_output = expand_path(path_main_output)
79
95
  path_spidered_bibs, path_spidering_bibs, path_conf_j_jsons = expand_paths(
80
96
  path_spidered_bibs, path_spidering_bibs, path_conf_j_jsons
81
97
  )
82
98
 
83
- # Configure search options
99
+ # Configure search options by combining base options and search-specific options
84
100
  options_ = {
85
101
  **build_base_options(
86
- include_publisher_list=[],
87
- include_abbr_list=[],
88
- exclude_publisher_list=["arXiv"],
89
- exclude_abbr_list=[],
90
- path_conf_j_jsons=path_conf_j_jsons,
102
+ include_publisher_list=[], # No specific publishers to include
103
+ include_abbr_list=[], # No specific conference/journal abbreviations to include
104
+ exclude_publisher_list=["arXiv"], # Exclude arXiv publications from search
105
+ exclude_abbr_list=[], # No specific conference/journal abbreviations to exclude
106
+ path_conf_j_jsons=path_conf_j_jsons, # Path to conference/journal metadata
91
107
  ),
92
108
  **build_search_options(
93
- print_on_screen=False,
94
- search_year_list=[],
95
- keywords_type=keywords_type,
96
- keywords_list_list=keywords_list_list,
109
+ print_on_screen=False, # Disable screen output (results go to files only)
110
+ search_year_list=[], # Empty list means search all years (no year filtering)
111
+ keywords_type=keywords_type, # Use provided keyword category for result organization
112
+ keywords_list_list=keywords_list_list, # Use provided nested keyword lists for searching
97
113
  ),
98
114
  }
115
+ # Update with any additional options provided by caller (overrides defaults)
99
116
  options_.update(options)
100
- # Execute searches across different bibliography sources
101
- _execute_searches(options_, path_main_output, path_spidered_bibs, path_spidering_bibs)
117
+
118
+ # Execute searches across different bibliography sources with configured options
119
+ _execute_searches(
120
+ options_,
121
+ path_main_output,
122
+ path_spidered_bibs,
123
+ path_spidering_bibs,
124
+ search_in_spidered_bib, # Flag to control spidered bibliography search
125
+ search_in_spidering_bib # Flag to control spidering bibliography search
126
+ )
127
+
128
+ return None
102
129
 
103
130
 
104
131
  def _execute_searches(
105
- options: Dict[str, Any], path_main_output: str, path_spidered_bibs: str, path_spidering_bibs: str
132
+ options: Dict[str, Any],
133
+ path_main_output: str,
134
+ path_spidered_bibs: str,
135
+ path_spidering_bibs: str,
136
+ search_in_spidered_bib: bool = False,
137
+ search_in_spidering_bib: bool = False,
106
138
  ) -> None:
107
139
  """
108
140
  Execute searches across different bibliography sources.
@@ -112,18 +144,32 @@ def _execute_searches(
112
144
  path_main_output: Base path for search results output
113
145
  path_spidered_bibs: Path to spidered bibliography files
114
146
  path_spidering_bibs: Path to spidering bibliography files
147
+ search_in_spidered_bib: Whether to search in spidered bibliography files
148
+ search_in_spidering_bib: Whether to search in spidering bibliography files
115
149
  """
116
150
  # Search in spidered bibliographies (Conferences and Journals)
117
- for cj in ["Conferences", "Journals"]:
118
- path_storage = os.path.join(path_spidered_bibs, cj)
119
- path_output = os.path.join(path_main_output, "Search_spidered_bib", cj)
120
- Searchkeywords(path_storage, path_output, options).run()
151
+ # If enabled, search through completed/conference and journal bibliographies
152
+ if search_in_spidered_bib:
153
+ for cj in ["Conferences", "Journals"]:
154
+ # Construct path to stored bibliography files for conferences/journals
155
+ path_storage = os.path.join(path_spidered_bibs, cj)
156
+ # Construct output path for search results
157
+ path_output = os.path.join(path_main_output, "Search_spidered_bib", cj)
158
+ # Execute search with given options and paths
159
+ Searchkeywords(path_storage, path_output, options).run()
121
160
 
122
161
  # Search in spidering bibliographies (Journals and Journals Early Access)
123
- for je in ["spider_j", "spider_j_e"]:
124
- path_storage = os.path.join(path_spidering_bibs, je)
125
- path_output = os.path.join(path_main_output, "Search_spidering_bib", je)
126
- Searchkeywords(path_storage, path_output, options).run()
162
+ # If enabled, search through actively spidering/in-progress journal bibliographies
163
+ if search_in_spidering_bib:
164
+ for je in ["spider_j", "spider_j_e"]:
165
+ # Construct path to spidering bibliography files (journals and early access)
166
+ path_storage = os.path.join(path_spidering_bibs, je)
167
+ # Construct output path for search results
168
+ path_output = os.path.join(path_main_output, "Search_spidering_bib", je)
169
+ # Execute search with given options and paths
170
+ Searchkeywords(path_storage, path_output, options).run()
171
+
172
+ return None
127
173
 
128
174
 
129
175
  def run_compare_after_search(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyeasyphd"
3
- version = "0.3.28"
3
+ version = "0.3.29"
4
4
  description = "pyeasyphd"
5
5
  license = "GPL-3.0-or-later"
6
6
  authors = ["NextAI <nextartifintell@gmail.com>"]
File without changes
File without changes