pyeasyphd 0.0.6__tar.gz → 0.0.8__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 (80) hide show
  1. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/PKG-INFO +1 -1
  2. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/main/basic_input.py +39 -11
  3. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyproject.toml +1 -1
  4. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/README.md +0 -0
  5. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/.python-version +0 -0
  6. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/Main.sublime-menu +0 -0
  7. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/__init__.py +0 -0
  8. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/__init__.py +0 -0
  9. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexbase/__init__.py +0 -0
  10. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexbase/standardize/_base.py +0 -0
  11. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexbase/standardize/default_data.py +0 -0
  12. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexbase/standardize/do_on_bib.py +0 -0
  13. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexbase/standardize/do_on_comment_block.py +0 -0
  14. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexbase/standardize/do_on_entry_block.py +0 -0
  15. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexbase/standardize/do_on_preamble_block.py +0 -0
  16. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexbase/standardize/do_on_string_block.py +0 -0
  17. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexbase/standardize_bib.py +0 -0
  18. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/__init__.py +0 -0
  19. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/bibtex_format.py +0 -0
  20. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/exceptions.py +0 -0
  21. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/library.py +0 -0
  22. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/add.py +0 -0
  23. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/authors.py +0 -0
  24. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/doi_url.py +0 -0
  25. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_keys_normalize.py +0 -0
  26. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_keys_replace.py +0 -0
  27. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_values_normalize.py +0 -0
  28. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_delete.py +0 -0
  29. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_keep.py +0 -0
  30. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_sort.py +0 -0
  31. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_types.py +0 -0
  32. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/journal_booktitle.py +0 -0
  33. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/month_year.py +0 -0
  34. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/number_volume.py +0 -0
  35. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/pages.py +0 -0
  36. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/block/title.py +0 -0
  37. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/library/generating_entrykeys.py +0 -0
  38. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/library/keeping_blocks.py +0 -0
  39. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/library/sorting_blocks.py +0 -0
  40. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/middleware.py +0 -0
  41. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/parsestack.py +0 -0
  42. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares/utils.py +0 -0
  43. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares_library_to_library.py +0 -0
  44. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares_library_to_str.py +0 -0
  45. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares_str_to_library.py +0 -0
  46. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/middlewares_str_to_str.py +0 -0
  47. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/model.py +0 -0
  48. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/bibtexparser/splitter.py +0 -0
  49. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/core/__init__.py +0 -0
  50. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/core/convert_library_to_library.py +0 -0
  51. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/core/convert_library_to_str.py +0 -0
  52. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/core/convert_str_to_library.py +0 -0
  53. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/bib/core/convert_str_to_str.py +0 -0
  54. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/main/__init__.py +0 -0
  55. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/main/pandoc_md_to.py +0 -0
  56. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/main/python_run_bib.py +0 -0
  57. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/main/python_run_md.py +0 -0
  58. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/main/python_run_tex.py +0 -0
  59. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/main/python_writers.py +0 -0
  60. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/pyeasyphd.py +0 -0
  61. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/pyeasyphd.sublime-settings +0 -0
  62. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/pyeasyphd.sublime-syntax +0 -0
  63. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/__init__.py +0 -0
  64. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/compare/compare_bibs.py +0 -0
  65. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/experiments_base.py +0 -0
  66. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/format_save_bibs.py +0 -0
  67. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/generate/generate_from_bibs.py +0 -0
  68. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/generate/generate_links.py +0 -0
  69. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/py_run_bib_md_tex.py +0 -0
  70. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/replace/replace.py +0 -0
  71. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/search/data.py +0 -0
  72. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/search/search_base.py +0 -0
  73. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/search/search_core.py +0 -0
  74. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/search/search_keywords.py +0 -0
  75. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/search/search_writers.py +0 -0
  76. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/search/utils.py +0 -0
  77. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/spider/process_spider_bib.py +0 -0
  78. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/spider/process_spider_url.py +0 -0
  79. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/tools/spider/process_spider_url_bib.py +0 -0
  80. {pyeasyphd-0.0.6 → pyeasyphd-0.0.8}/pyeasyphd/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyeasyphd
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: pyeasyphd
5
5
  License: GPL-3.0-or-later
6
6
  Keywords: Python,Markdown,LaTex
@@ -45,13 +45,19 @@ class BasicInput(object):
45
45
  # Update
46
46
  path_config = standard_path(options.get("path_config", ""))
47
47
  if len(self.path_bibs) == 0:
48
- for folder in ["bib", "bibs", "Bib", "Bibs", "BIB", "BIBS"]:
48
+ for folder in [
49
+ "bib", "bibs", "Bib", "Bibs", "BIB", "BIBS",
50
+ "reference", "references", "Reference", "References", "REFERENCE", "REFERENCES"
51
+ ]:
49
52
  if os.path.exists(p := os.path.join(path_config, folder)):
50
53
  self.path_bibs = p
51
54
  break
52
55
 
53
56
  if len(self.path_figures) == 0:
54
- for folder in ["figure", "figures", "Figure", "Figures", "FIGURE", "FIGURES"]:
57
+ for folder in [
58
+ "figure", "figures", "Figure", "Figures", "FIGURE", "FIGURES",
59
+ "fig", "figs", "Fig", "Figs", "FIG", "FIGS",
60
+ ]:
55
61
  if os.path.exists(p := os.path.join(path_config, folder)):
56
62
  self.path_figures = p
57
63
  break
@@ -128,18 +134,26 @@ class BasicInput(object):
128
134
  csl_name = options.get("csl_name", "apa-no-ampersand")
129
135
  if len(csl_name) == 0:
130
136
  csl_name = "apa-no-ampersand"
131
- self.full_csl_style_pandoc = os.path.join(self.path_templates, "CSL", f"{csl_name}.csl")
132
- self.full_tex_article_template_pandoc = os.path.join(self.path_templates, "TEX", "eisvogel.tex")
133
137
 
134
- self.article_template_tex = read_list(os.path.join(self.path_templates, "TEX", "Article.tex"))
138
+ full_csl_style_pandoc = os.path.join(self.path_templates, "CSL", f"{csl_name}.csl")
139
+ if (p := options.get("full_csl")) is not None:
140
+ full_csl_style_pandoc = p
141
+ self.full_csl_style_pandoc = full_csl_style_pandoc
142
+
143
+ full_tex_article_template_pandoc = os.path.join(self.path_templates, "TEX", "eisvogel.tex")
144
+ if (p := options.get("full_eisvogel")) is not None:
145
+ full_tex_article_template_pandoc = p
146
+ self.full_tex_article_template_pandoc = full_tex_article_template_pandoc
147
+
148
+ self.article_template_tex = self._try_read_list(options, "TEX", "Article.tex", "full_article")
135
149
 
136
150
  def _initialize_python_run_tex(self, options: Dict[str, Any]) -> None:
137
- self.article_template_header_tex = read_list(os.path.join(self.path_templates, "TEX", "Article_Header.tex"))
138
- self.article_template_tail_tex = read_list(os.path.join(self.path_templates, "TEX", "Article_Tail.tex"))
139
- self.beamer_template_header_tex = read_list(os.path.join(self.path_templates, "TEX", "Beamer_Header.tex"))
140
- self.beamer_template_tail_tex = read_list(os.path.join(self.path_templates, "TEX", "Beamer_Tail.tex"))
141
- self.math_commands_tex = read_list(os.path.join(self.path_templates, "TEX", "math_commands.tex"))
142
- self.usepackages_tex = read_list(os.path.join(self.path_templates, "TEX", "Style.tex"))
151
+ self.article_template_header_tex = self._try_read_list(options, "TEX", "Article_Header.tex", "full_article_header")
152
+ self.article_template_tail_tex = self._try_read_list(options, "TEX", "Article_Tail.tex", "full_article_tail")
153
+ self.beamer_template_header_tex = self._try_read_list(options, "TEX", "Beamer_Header.tex", "full_beamer_header")
154
+ self.beamer_template_tail_tex = self._try_read_list(options, "TEX", "Beamer_Tail.tex", "full_beamer_tail")
155
+ self.math_commands_tex = self._try_read_list(options, "TEX", "math_commands.tex", "full_math_commands")
156
+ self.usepackages_tex = self._try_read_list(options, "TEX", "Style.tex", "full_usepackages_tex")
143
157
 
144
158
  # handly preamble
145
159
  self.handly_preamble = options.get("handly_preamble", False)
@@ -147,3 +161,17 @@ class BasicInput(object):
147
161
  self.article_template_header_tex, self.article_template_tail_tex = [], []
148
162
  self.beamer_template_header_tex, self.beamer_template_tail_tex = [], []
149
163
  self.math_commands_tex, self.usepackages_tex = [], []
164
+
165
+ def _try_read_list(self, options: Dict[str, Any], folder_name: str, file_name: str, key: str):
166
+ path_file = os.path.join(self.path_templates, folder_name, file_name)
167
+ if (p := options.get(key)) is None:
168
+ return []
169
+ else:
170
+ path_file = p
171
+
172
+ try:
173
+ data_list = read_list(path_file)
174
+ except Exception as e:
175
+ print(e)
176
+ data_list = []
177
+ return data_list
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyeasyphd"
3
- version = "0.0.6"
3
+ version = "0.0.8"
4
4
  description = "pyeasyphd"
5
5
  license = "GPL-3.0-or-later"
6
6
  authors = ["NextAI <nextartifintell@gmail.com>"]
File without changes