pyeasyphd 0.0.4__tar.gz → 0.0.6__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.4 → pyeasyphd-0.0.6}/PKG-INFO +1 -1
  2. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/main/pandoc_md_to.py +22 -19
  3. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/main/python_run_tex.py +5 -3
  4. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/search/search_core.py +1 -1
  5. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/search/search_writers.py +1 -1
  6. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyproject.toml +1 -1
  7. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/README.md +0 -0
  8. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/.python-version +0 -0
  9. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/Main.sublime-menu +0 -0
  10. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/__init__.py +0 -0
  11. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/__init__.py +0 -0
  12. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexbase/__init__.py +0 -0
  13. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexbase/standardize/_base.py +0 -0
  14. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexbase/standardize/default_data.py +0 -0
  15. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexbase/standardize/do_on_bib.py +0 -0
  16. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexbase/standardize/do_on_comment_block.py +0 -0
  17. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexbase/standardize/do_on_entry_block.py +0 -0
  18. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexbase/standardize/do_on_preamble_block.py +0 -0
  19. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexbase/standardize/do_on_string_block.py +0 -0
  20. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexbase/standardize_bib.py +0 -0
  21. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/__init__.py +0 -0
  22. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/bibtex_format.py +0 -0
  23. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/exceptions.py +0 -0
  24. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/library.py +0 -0
  25. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/add.py +0 -0
  26. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/authors.py +0 -0
  27. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/doi_url.py +0 -0
  28. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_keys_normalize.py +0 -0
  29. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_keys_replace.py +0 -0
  30. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_field_values_normalize.py +0 -0
  31. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_delete.py +0 -0
  32. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_keep.py +0 -0
  33. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_fields_sort.py +0 -0
  34. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/entry_types.py +0 -0
  35. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/journal_booktitle.py +0 -0
  36. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/month_year.py +0 -0
  37. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/number_volume.py +0 -0
  38. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/pages.py +0 -0
  39. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/block/title.py +0 -0
  40. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/library/generating_entrykeys.py +0 -0
  41. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/library/keeping_blocks.py +0 -0
  42. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/library/sorting_blocks.py +0 -0
  43. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/middleware.py +0 -0
  44. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/parsestack.py +0 -0
  45. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares/utils.py +0 -0
  46. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares_library_to_library.py +0 -0
  47. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares_library_to_str.py +0 -0
  48. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares_str_to_library.py +0 -0
  49. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/middlewares_str_to_str.py +0 -0
  50. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/model.py +0 -0
  51. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/bibtexparser/splitter.py +0 -0
  52. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/core/__init__.py +0 -0
  53. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/core/convert_library_to_library.py +0 -0
  54. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/core/convert_library_to_str.py +0 -0
  55. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/core/convert_str_to_library.py +0 -0
  56. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/bib/core/convert_str_to_str.py +0 -0
  57. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/main/__init__.py +0 -0
  58. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/main/basic_input.py +0 -0
  59. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/main/python_run_bib.py +0 -0
  60. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/main/python_run_md.py +0 -0
  61. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/main/python_writers.py +0 -0
  62. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/pyeasyphd.py +0 -0
  63. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/pyeasyphd.sublime-settings +0 -0
  64. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/pyeasyphd.sublime-syntax +0 -0
  65. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/__init__.py +0 -0
  66. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/compare/compare_bibs.py +0 -0
  67. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/experiments_base.py +0 -0
  68. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/format_save_bibs.py +0 -0
  69. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/generate/generate_from_bibs.py +0 -0
  70. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/generate/generate_links.py +0 -0
  71. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/py_run_bib_md_tex.py +0 -0
  72. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/replace/replace.py +0 -0
  73. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/search/data.py +0 -0
  74. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/search/search_base.py +0 -0
  75. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/search/search_keywords.py +0 -0
  76. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/search/utils.py +0 -0
  77. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/spider/process_spider_bib.py +0 -0
  78. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/spider/process_spider_url.py +0 -0
  79. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/tools/spider/process_spider_url_bib.py +0 -0
  80. {pyeasyphd-0.0.4 → pyeasyphd-0.0.6}/pyeasyphd/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyeasyphd
3
- Version: 0.0.4
3
+ Version: 0.0.6
4
4
  Summary: pyeasyphd
5
5
  License: GPL-3.0-or-later
6
6
  Keywords: Python,Markdown,LaTex
@@ -1,6 +1,7 @@
1
1
  import copy
2
2
  import os
3
3
  import re
4
+ import subprocess
4
5
  import time
5
6
  from typing import Dict, List, Optional, Tuple
6
7
 
@@ -67,20 +68,20 @@ class PandocMdTo(BasicInput):
67
68
  if os.path.exists(self.full_csl_style_pandoc):
68
69
  cmd = (
69
70
  f"pandoc {full_md_one} -t {self.markdown_citation} "
70
- f'-o {full_md_two} -M reference-section-title="References" '
71
- f"-C --bibliography={path_bib} --csl={self.full_csl_style_pandoc} --columns {self.columns_in_md}"
71
+ f"-o {full_md_two} -M reference-section-title='References' "
72
+ f"--citeproc --bibliography={path_bib} --csl={self.full_csl_style_pandoc} --columns {self.columns_in_md}"
72
73
  )
73
74
  else:
74
75
  cmd = (
75
76
  f"pandoc {full_md_one} -t {self.markdown_citation} "
76
- f'-o {full_md_two} -M reference-section-title="References" '
77
- f"-C --bibliography={path_bib} --columns {self.columns_in_md}"
77
+ f"-o {full_md_two} -M reference-section-title='References' "
78
+ f"--citeproc --bibliography={path_bib} --columns {self.columns_in_md}"
78
79
  )
79
80
 
80
81
  try:
81
- os.system(cmd)
82
- except Exception as e:
83
- print("pandoc md to md:", e)
82
+ subprocess.run(cmd, shell=True, check=True, capture_output=True, text=True)
83
+ except subprocess.CalledProcessError as e:
84
+ print("Pandoc error in pandoc md to md:", e.stderr)
84
85
 
85
86
  if not os.path.exists(full_md_two):
86
87
  print(f"- pandoc false from md to md: {os.path.basename(full_md_two)}\n")
@@ -114,13 +115,15 @@ class PandocMdTo(BasicInput):
114
115
  if not os.path.exists(path_tex := os.path.dirname(full_tex)):
115
116
  os.makedirs(path_tex)
116
117
 
118
+ if template_name.lower() == "beamer":
119
+ cmd = f"pandoc {full_md} -t beamer -o {full_tex} --from markdown "
120
+ else:
121
+ cmd = f"pandoc {full_md} -o {full_tex} --from markdown "
122
+
117
123
  try:
118
- if template_name.lower() == "beamer":
119
- os.system(f"pandoc {full_md} -t beamer -o {full_tex} --from markdown ")
120
- else:
121
- os.system(f"pandoc {full_md} -o {full_tex} --from markdown ")
122
- except Exception as e:
123
- print("pandoc md to tex:", e)
124
+ subprocess.run(cmd, shell=True, check=True, capture_output=True, text=True)
125
+ except subprocess.CalledProcessError as e:
126
+ print("Pandoc error in pandoc md to tex:", e.stderr)
124
127
 
125
128
  if not os.path.exists(full_tex):
126
129
  print(f"- pandoc false from md to tex: {os.path.basename(full_md)}\n")
@@ -152,9 +155,9 @@ class PandocMdTo(BasicInput):
152
155
  cmd = f"pandoc {full_md} -o {full_html} --from markdown "
153
156
 
154
157
  try:
155
- os.system(cmd)
156
- except Exception as e:
157
- print("pandoc md to html:", e)
158
+ subprocess.run(cmd, shell=True, check=True, capture_output=True, text=True)
159
+ except subprocess.CalledProcessError as e:
160
+ print("Pandoc error in pandoc md to html:", e.stderr)
158
161
 
159
162
  if not os.path.exists(full_html):
160
163
  return f"- pandoc false from md to html: {os.path.basename(full_md)}\n"
@@ -189,9 +192,9 @@ class PandocMdTo(BasicInput):
189
192
  cmd = f"pandoc {full_md} -o {full_pdf} --from markdown --listings --pdf-engine=xelatex"
190
193
 
191
194
  try:
192
- os.system(cmd)
193
- except Exception as e:
194
- print("pandoc md to pdf:", e)
195
+ subprocess.run(cmd, shell=True, check=True, capture_output=True, text=True)
196
+ except subprocess.CalledProcessError as e:
197
+ print("Pandoc error in pandoc md to pdf:", e.stderr)
195
198
 
196
199
  if not os.path.exists(full_pdf):
197
200
  return f"- pandoc false from md to pdf: {os.path.basename(full_md)}\n"
@@ -1,5 +1,6 @@
1
1
  import os
2
2
  import re
3
+ import subprocess
3
4
  from typing import Any, Dict, List, Optional
4
5
 
5
6
  from pyadvtools import (
@@ -133,10 +134,11 @@ class PythonRunTex(BasicInput):
133
134
  # run latex
134
135
  if self.run_latex:
135
136
  os.chdir(path_output)
137
+ cmd = "latexmk -{} {}".format(self.pdflatex_xelatex, main_name)
136
138
  try:
137
- os.system("latexmk -{} {}".format(self.pdflatex_xelatex, main_name))
138
- except Exception as e:
139
- print(e)
139
+ subprocess.run(cmd, shell=True, check=True, capture_output=True, text=True)
140
+ except subprocess.CalledProcessError as e:
141
+ print("Error in Run LaTex:", e.stderr)
140
142
 
141
143
  # delete cache
142
144
  if self.delete_run_latex_cache:
@@ -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.4"
3
+ version = "0.0.6"
4
4
  description = "pyeasyphd"
5
5
  license = "GPL-3.0-or-later"
6
6
  authors = ["NextAI <nextartifintell@gmail.com>"]
File without changes