pyeasyphd 0.3.7__tar.gz → 0.3.9__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.7 → pyeasyphd-0.3.9}/PKG-INFO +1 -1
  2. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/scripts/__init__.py +10 -10
  3. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/scripts/_base.py +33 -0
  4. pyeasyphd-0.3.9/pyeasyphd/scripts/run_compare.py +44 -0
  5. pyeasyphd-0.3.9/pyeasyphd/scripts/run_format.py +41 -0
  6. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/scripts/run_generate.py +11 -44
  7. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyproject.toml +1 -1
  8. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/LICENSE +0 -0
  9. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/README.md +0 -0
  10. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/.python-version +0 -0
  11. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/Main.sublime-menu +0 -0
  12. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/__init__.py +0 -0
  13. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/CSL/apa-no-ampersand.csl +0 -0
  14. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/CSL/apa.csl +0 -0
  15. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/CSL/ieee.csl +0 -0
  16. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/Article.tex +0 -0
  17. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/Article_Header.tex +0 -0
  18. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/Article_Tail.tex +0 -0
  19. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/Beamer_Header.tex +0 -0
  20. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/Beamer_Tail.tex +0 -0
  21. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/Style.tex +0 -0
  22. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/TEVC_Header.tex +0 -0
  23. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/TEVC_Tail.tex +0 -0
  24. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/eisvogel.beamer +0 -0
  25. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/eisvogel.latex +0 -0
  26. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/eisvogel.tex +0 -0
  27. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/math.tex +0 -0
  28. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/math_commands.tex +0 -0
  29. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/data/Templates/TEX/nextaimathmacros.sty +0 -0
  30. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/main/__init__.py +0 -0
  31. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/main/basic_input.py +0 -0
  32. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/main/pandoc_md_to.py +0 -0
  33. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/main/python_run_md.py +0 -0
  34. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/main/python_run_tex.py +0 -0
  35. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/pyeasyphd.py +0 -0
  36. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/pyeasyphd.sublime-settings +0 -0
  37. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/pyeasyphd.sublime-syntax +0 -0
  38. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/scripts/run_article_md.py +0 -0
  39. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/scripts/run_article_tex.py +0 -0
  40. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/scripts/run_beamer_tex.py +0 -0
  41. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/scripts/run_search.py +0 -0
  42. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/__init__.py +0 -0
  43. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/generate/generate_from_bibs.py +0 -0
  44. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/generate/generate_html.py +0 -0
  45. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/generate/generate_library.py +0 -0
  46. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/generate/generate_links.py +0 -0
  47. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/py_run_bib_md_tex.py +0 -0
  48. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/search/data.py +0 -0
  49. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/search/search_base.py +0 -0
  50. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/search/search_core.py +0 -0
  51. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/search/search_keywords.py +0 -0
  52. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/search/search_writers.py +0 -0
  53. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/tools/search/utils.py +0 -0
  54. {pyeasyphd-0.3.7 → pyeasyphd-0.3.9}/pyeasyphd/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyeasyphd
3
- Version: 0.3.7
3
+ Version: 0.3.9
4
4
  Summary: pyeasyphd
5
5
  License: GPL-3.0-or-later
6
6
  License-File: LICENSE
@@ -5,21 +5,21 @@ __all__ = [
5
5
  "run_search_for_screen",
6
6
  "run_search_for_files",
7
7
  "run_compare_after_search",
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",
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
- 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,
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
@@ -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 build_base_options, expand_path
6
+ from ._base import build_options, expand_path
7
7
 
8
8
 
9
- def run_generate_j_Weekly(
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
- run_generate_base(options, "", path_spidering_bibs, path_conferences_journals_json)
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 run_generate_j_e_Weekly(
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
- run_generate_base(options, "", path_spidering_bibs, path_conferences_journals_json)
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 run_generate_j_Monthly(
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
- run_generate_base(options, "", path_spidering_bibs, path_conferences_journals_json)
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 run_generate_j_Yearly(
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
- run_generate_base(options, path_spidered_bibs, "", path_conferences_journals_json)
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 run_generate_base(
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
- run_generate_base(options, path_spidered_bibs, "", path_conferences_journals_json)
167
+ build_options(options, path_spidered_bibs, "", path_conferences_journals_json)
201
168
  )
202
169
 
203
170
  # Generate md and html files
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyeasyphd"
3
- version = "0.3.7"
3
+ version = "0.3.9"
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