pyeasyphd 0.0.3__tar.gz → 0.0.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.

Files changed (80) hide show
  1. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/PKG-INFO +1 -1
  2. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/main/basic_input.py +9 -9
  3. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/main/pandoc_md_to.py +6 -6
  4. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/main/python_run_tex.py +5 -5
  5. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/format_save_bibs.py +1 -1
  6. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/search/search_core.py +1 -1
  7. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/search/search_writers.py +1 -1
  8. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyproject.toml +1 -1
  9. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/README.md +0 -0
  10. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/.python-version +0 -0
  11. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/Main.sublime-menu +0 -0
  12. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/__init__.py +0 -0
  13. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/__init__.py +0 -0
  14. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexbase/__init__.py +0 -0
  15. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexbase/standardize/_base.py +0 -0
  16. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexbase/standardize/default_data.py +0 -0
  17. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexbase/standardize/do_on_bib.py +0 -0
  18. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexbase/standardize/do_on_comment_block.py +0 -0
  19. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexbase/standardize/do_on_entry_block.py +0 -0
  20. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexbase/standardize/do_on_preamble_block.py +0 -0
  21. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexbase/standardize/do_on_string_block.py +0 -0
  22. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexbase/standardize_bib.py +0 -0
  23. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/__init__.py +0 -0
  24. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/bibtex_format.py +0 -0
  25. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/exceptions.py +0 -0
  26. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/library.py +0 -0
  27. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/add.py +0 -0
  28. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/authors.py +0 -0
  29. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/doi_url.py +0 -0
  30. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_keys_normalize.py +0 -0
  31. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_keys_replace.py +0 -0
  32. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_values_normalize.py +0 -0
  33. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_delete.py +0 -0
  34. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_keep.py +0 -0
  35. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_sort.py +0 -0
  36. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_types.py +0 -0
  37. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/journal_booktitle.py +0 -0
  38. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/month_year.py +0 -0
  39. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/number_volume.py +0 -0
  40. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/pages.py +0 -0
  41. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/block/title.py +0 -0
  42. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/library/generating_entrykeys.py +0 -0
  43. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/library/keeping_blocks.py +0 -0
  44. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/library/sorting_blocks.py +0 -0
  45. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/middleware.py +0 -0
  46. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/parsestack.py +0 -0
  47. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares/utils.py +0 -0
  48. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares_library_to_library.py +0 -0
  49. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares_library_to_str.py +0 -0
  50. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares_str_to_library.py +0 -0
  51. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/middlewares_str_to_str.py +0 -0
  52. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/model.py +0 -0
  53. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/bibtexparser/splitter.py +0 -0
  54. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/core/__init__.py +0 -0
  55. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/core/convert_library_to_library.py +0 -0
  56. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/core/convert_library_to_str.py +0 -0
  57. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/core/convert_str_to_library.py +0 -0
  58. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/bib/core/convert_str_to_str.py +0 -0
  59. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/main/__init__.py +0 -0
  60. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/main/python_run_bib.py +0 -0
  61. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/main/python_run_md.py +0 -0
  62. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/main/python_writers.py +0 -0
  63. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/pyeasyphd.py +0 -0
  64. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/pyeasyphd.sublime-settings +0 -0
  65. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/pyeasyphd.sublime-syntax +0 -0
  66. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/__init__.py +0 -0
  67. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/compare/compare_bibs.py +0 -0
  68. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/experiments_base.py +0 -0
  69. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/generate/generate_from_bibs.py +0 -0
  70. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/generate/generate_links.py +0 -0
  71. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/py_run_bib_md_tex.py +0 -0
  72. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/replace/replace.py +0 -0
  73. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/search/data.py +0 -0
  74. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/search/search_base.py +0 -0
  75. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/search/search_keywords.py +0 -0
  76. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/search/utils.py +0 -0
  77. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/spider/process_spider_bib.py +0 -0
  78. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/spider/process_spider_url.py +0 -0
  79. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/tools/spider/process_spider_url_bib.py +0 -0
  80. {pyeasyphd-0.0.3 → pyeasyphd-0.0.5}/pyeasyphd/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyeasyphd
3
- Version: 0.0.3
3
+ Version: 0.0.5
4
4
  Summary: pyeasyphd
5
5
  License: GPL-3.0-or-later
6
6
  Keywords: Python,Markdown,LaTex
@@ -128,18 +128,18 @@ class BasicInput(object):
128
128
  csl_name = options.get("csl_name", "apa-no-ampersand")
129
129
  if len(csl_name) == 0:
130
130
  csl_name = "apa-no-ampersand"
131
- self.full_csl_style_pandoc = os.path.join(self.path_templates, f"CSL/{csl_name}.csl")
132
- self.full_tex_article_template_pandoc = os.path.join(self.path_templates, "TEX/eisvogel.tex")
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
133
 
134
- self.article_template_tex = read_list(os.path.join(self.path_templates, "TEX/Article.tex"))
134
+ self.article_template_tex = read_list(os.path.join(self.path_templates, "TEX", "Article.tex"))
135
135
 
136
136
  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"))
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"))
143
143
 
144
144
  # handly preamble
145
145
  self.handly_preamble = options.get("handly_preamble", False)
@@ -323,8 +323,8 @@ class PandocMdTo(BasicInput):
323
323
  def generate_tex_content(self, file_prefix: str, path_subsection: str, path_bib: str, path_combine: str) -> None:
324
324
  # for latex
325
325
  # add template for tex file
326
- add_bib_name = "{}/{}-abbr.bib".format(os.path.basename(path_bib), file_prefix)
327
- add_tex_name = "{}/{}.tex".format(os.path.basename(path_subsection), file_prefix)
326
+ add_bib_name = os.path.join(os.path.basename(path_bib), f"{file_prefix}-abbr.bib")
327
+ add_tex_name = os.path.join(os.path.basename(path_subsection), f"{file_prefix}.tex")
328
328
  insert_part_one, insert_part_two = self._generate_tex_content(file_prefix, add_tex_name, add_bib_name)
329
329
 
330
330
  # write tex
@@ -343,9 +343,9 @@ class PandocMdTo(BasicInput):
343
343
  part_one = [
344
344
  "\\date{" + "{}".format(time.strftime("%B %d, %Y")) + "}\n\n",
345
345
  "\\ifx \\fullpath \\undefined\n",
346
- " \\addbibresource{" + "../{}".format(add_bib_name) + "}\n",
346
+ " \\addbibresource{" + os.path.join("..", add_bib_name) + "}\n",
347
347
  "\\else\n",
348
- " \\addbibresource{" + "\\fullpath/{}".format(add_bib_name) + "}\n",
348
+ " \\addbibresource{" + os.path.join("\\fullpath", add_bib_name) + "}\n",
349
349
  "\\fi\n\n",
350
350
  ]
351
351
  part_two = [
@@ -353,9 +353,9 @@ class PandocMdTo(BasicInput):
353
353
  "% \\maketitle\n",
354
354
  "\\tableofcontents\n\n",
355
355
  "\\ifx \\fullpath \\undefined\n",
356
- " \\input{" + "../{}".format(add_tex_name) + "}\n",
356
+ " \\input{" + os.path.join("..", add_tex_name) + "}\n",
357
357
  "\\else\n",
358
- " \\input{" + "\\fullpath/{}".format(add_tex_name) + "}\n",
358
+ " \\input{" + os.path.join("\\fullpath", add_tex_name) + "}\n",
359
359
  "\\fi\n",
360
360
  ]
361
361
  return part_one, part_two
@@ -48,8 +48,8 @@ class PythonRunTex(BasicInput):
48
48
  # for figures
49
49
  for i in range(len(data_list_body)):
50
50
  if re.search(r"\\includegraphics", data_list_body[i]):
51
- data_list_body[i] = data_list_body[i].replace("./Figures/", f"./{figure_folder_name}/")
52
- data_list_body[i] = data_list_body[i].replace("Figures/", f"{figure_folder_name}/")
51
+ data_list_body[i] = data_list_body[i].replace(f".{os.sep}Figures{os.sep}", f".{os.sep}{figure_folder_name}{os.sep}")
52
+ data_list_body[i] = data_list_body[i].replace(f"Figures{os.sep}", f"{figure_folder_name}{os.sep}")
53
53
  write_list(data_list_body, output_tex_name, "w", os.path.join(path_output, tex_folder_name), False)
54
54
 
55
55
  self._special_operate_tex(
@@ -105,15 +105,15 @@ class PythonRunTex(BasicInput):
105
105
  data_list = insert_list_in_list(data_list, ["\n\\def\\cn{}\n"], r"\\documentclass", "after")
106
106
 
107
107
  # for bib
108
- regex = re.compile(r"\\addbibresource{\./References/References\.bib}")
108
+ regex = re.compile(r"\\addbibresource{" + os.path.join(".", "References", "References.bib") + "}")
109
109
  for i in range(len(data_list)):
110
110
  mch = regex.search(data_list[i])
111
111
  if not mch:
112
112
  continue
113
113
  if bib_folder_name:
114
- data_list[i] = "\\addbibresource{" + f"./{bib_folder_name}/{bib_name}" + "}\n"
114
+ data_list[i] = "\\addbibresource{" + os.path.join(".", bib_folder_name, bib_name) + "}\n"
115
115
  else:
116
- data_list[i] = "\\addbibresource{" + f"./{bib_name}" + "}\n"
116
+ data_list[i] = "\\addbibresource{" + os.path.join(".", bib_name) + "}\n"
117
117
 
118
118
  # body
119
119
  if len(data_list_body) != 0:
@@ -172,7 +172,7 @@ def generate_statistic_information(path_output: str) -> None:
172
172
  informations.append(flag + "\n")
173
173
 
174
174
  # Write information to CSV file
175
- csv_path = f.replace(".bib", ".csv").replace("/bib/", "/url/")
175
+ csv_path = f.replace(".bib", ".csv").replace(f"{os.sep}bib{os.sep}", f"{os.sep}url{os.sep}")
176
176
  write_list(informations, csv_path, "w", None, False)
177
177
 
178
178
  return None
@@ -305,7 +305,7 @@ class SearchResultsCore(BasicInput):
305
305
 
306
306
  for d in delete_folder_list:
307
307
  for field in self.search_field_list:
308
- path_delete = os.path.join(p_separate, rf"{keywords_type}/{field}-md-{d}")
308
+ path_delete = os.path.join(p_separate, keywords_type, rf"{field}-md-{d}")
309
309
  if os.path.exists(path_delete):
310
310
  shutil.rmtree(path_delete)
311
311
 
@@ -73,7 +73,7 @@ class WriteInitialResult(object):
73
73
  _python_writer.write_to_file(data_list[i], file_name, "w", path_write)
74
74
 
75
75
  # pandoc md to generate md file
76
- path_bib = f"{path_write}/{file_prefix}{mid_list[2]}.bib" # bib_for_abbr
76
+ path_bib = os.path.join(path_write, f"{file_prefix}{mid_list[2]}.bib") # bib_for_abbr
77
77
  data_list_pandoc_md = self._pandoc_md_to.pandoc_md_to_md(
78
78
  path_bib,
79
79
  path_write,
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyeasyphd"
3
- version = "0.0.3"
3
+ version = "0.0.5"
4
4
  description = "pyeasyphd"
5
5
  license = "GPL-3.0-or-later"
6
6
  authors = ["NextAI <nextartifintell@gmail.com>"]
File without changes