pyeasyphd 0.3.19__tar.gz → 0.3.20__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.19 → pyeasyphd-0.3.20}/PKG-INFO +1 -1
  2. pyeasyphd-0.3.20/pyeasyphd/scripts/run_compare.py +79 -0
  3. pyeasyphd-0.3.20/pyeasyphd/scripts/run_format.py +70 -0
  4. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyproject.toml +1 -1
  5. pyeasyphd-0.3.19/pyeasyphd/scripts/run_compare.py +0 -45
  6. pyeasyphd-0.3.19/pyeasyphd/scripts/run_format.py +0 -37
  7. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/LICENSE +0 -0
  8. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/README.md +0 -0
  9. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/.python-version +0 -0
  10. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/Main.sublime-menu +0 -0
  11. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/__init__.py +0 -0
  12. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/csl/apa-no-ampersand.csl +0 -0
  13. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/csl/apa.csl +0 -0
  14. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/csl/ieee.csl +0 -0
  15. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/Article.tex +0 -0
  16. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/Article_Header.tex +0 -0
  17. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/Article_Tail.tex +0 -0
  18. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/Beamer_Header.tex +0 -0
  19. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/Beamer_Tail.tex +0 -0
  20. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/Style.tex +0 -0
  21. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/TEVC_Header.tex +0 -0
  22. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/TEVC_Tail.tex +0 -0
  23. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/eisvogel.tex +0 -0
  24. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/math.tex +0 -0
  25. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/math_commands.tex +0 -0
  26. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/data/templates/tex/nextaimathmacros.sty +0 -0
  27. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/main/__init__.py +0 -0
  28. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/main/basic_input.py +0 -0
  29. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/main/pandoc_md_to.py +0 -0
  30. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/main/python_run_md.py +0 -0
  31. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/main/python_run_tex.py +0 -0
  32. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/pyeasyphd.py +0 -0
  33. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/pyeasyphd.sublime-settings +0 -0
  34. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/pyeasyphd.sublime-syntax +0 -0
  35. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/scripts/__init__.py +0 -0
  36. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/scripts/_base.py +0 -0
  37. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/scripts/run_article_md.py +0 -0
  38. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/scripts/run_article_tex.py +0 -0
  39. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/scripts/run_beamer_tex.py +0 -0
  40. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/scripts/run_generate.py +0 -0
  41. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/scripts/run_search.py +0 -0
  42. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/__init__.py +0 -0
  43. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/generate/generate_from_bibs.py +0 -0
  44. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/generate/generate_html.py +0 -0
  45. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/generate/generate_library.py +0 -0
  46. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/generate/generate_links.py +0 -0
  47. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/py_run_bib_md_tex.py +0 -0
  48. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/search/data.py +0 -0
  49. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/search/search_base.py +0 -0
  50. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/search/search_core.py +0 -0
  51. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/search/search_keywords.py +0 -0
  52. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/search/search_writers.py +0 -0
  53. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/tools/search/utils.py +0 -0
  54. {pyeasyphd-0.3.19 → pyeasyphd-0.3.20}/pyeasyphd/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyeasyphd
3
- Version: 0.3.19
3
+ Version: 0.3.20
4
4
  Summary: pyeasyphd
5
5
  License: GPL-3.0-or-later
6
6
  License-File: LICENSE
@@ -0,0 +1,79 @@
1
+ from pybibtexer.tools import compare_bibs_with_local, compare_bibs_with_zotero
2
+
3
+ from ._base import build_base_options, expand_paths
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_conf_j_jsons: str,
13
+ ) -> None:
14
+ """
15
+ Compare a target bibliography file with local bibliography collections and generate comparison results.
16
+
17
+ This function performs a comprehensive comparison between a specified bibliography file and
18
+ existing local bibliography collections. Results are saved to the specified output directory.
19
+
20
+ Args:
21
+ options: Configuration dictionary for comparison behavior settings
22
+ compare_each_entry_with_all_local_bibs: Whether to compare each entry with all local bib files
23
+ need_compare_bib: Path to the target bibliography file that needs to be compared
24
+ path_output: Output directory path where comparison results will be saved
25
+ path_spidered_bibs: Directory path containing pre-collected/spidered bibliography files
26
+ path_spidering_bibs: Directory path containing actively spidered bibliography files
27
+ path_conf_j_jsons: Path to conference/journal configuration JSON files
28
+
29
+ Returns:
30
+ None: Results are written to files in the specified output directory
31
+ """
32
+ # Expand and normalize file paths
33
+ need_compare_bib, path_output, path_spidered_bibs, path_spidering_bibs = expand_paths(
34
+ need_compare_bib, path_output, path_spidered_bibs, path_spidering_bibs
35
+ )
36
+
37
+ # Update options
38
+ options_ = build_base_options([], [], ["arXiv"], [], path_conf_j_jsons)
39
+ options_["include_early_access"] = True
40
+ options_.update(options)
41
+
42
+ # Compare
43
+ compare_bibs_with_local(need_compare_bib, path_spidered_bibs, path_spidering_bibs, path_output, options_)
44
+
45
+
46
+ def run_compare_bib_with_zotero(
47
+ options: dict,
48
+ need_compare_bib: str,
49
+ zotero_bib: str,
50
+ path_output: str,
51
+ path_conf_j_jsons: str,
52
+ ) -> None:
53
+ """
54
+ Compare a target bibliography file with Zotero bibliography data and generate comparison results.
55
+
56
+ This function performs comparison between a specified bibliography file and Zotero bibliography data,
57
+ identifying matches, differences, and potential conflicts between the two sources.
58
+
59
+ Args:
60
+ options: Configuration dictionary for comparison behavior settings
61
+ need_compare_bib: Path to the target bibliography file that needs to be compared
62
+ zotero_bib: Path to the Zotero bibliography file or export data
63
+ path_output: Output directory path where comparison results will be saved
64
+ path_conf_j_jsons: Path to conference/journal configuration JSON files
65
+
66
+ Returns:
67
+ None: Results are written to files in the specified output directory
68
+ """
69
+ # Expand and normalize file paths
70
+ need_compare_bib, zotero_bib, path_output = expand_paths(
71
+ need_compare_bib, zotero_bib, path_output
72
+ )
73
+
74
+ # Update options
75
+ options_ = build_base_options([], [], ["arXiv"], [], path_conf_j_jsons)
76
+ options_.update(options)
77
+
78
+ # Compare
79
+ compare_bibs_with_zotero(zotero_bib, need_compare_bib, path_output, options_)
@@ -0,0 +1,70 @@
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_base_options, expand_paths
6
+
7
+
8
+ def run_format_bib_to_save_by_entry_type(
9
+ options: dict,
10
+ need_format_bib: str,
11
+ path_output: str,
12
+ path_conf_j_jsons: str,
13
+ ) -> None:
14
+ """
15
+ Format a bibliography file by organizing entries according to their entry types and save the results.
16
+
17
+ This function processes a bibliography file and reorganizes the entries based on their
18
+ bibliographic entry types (e.g., article, conference, book, etc.), creating separate
19
+ organized output files for better management and categorization.
20
+
21
+ Args:
22
+ options: Configuration dictionary for formatting behavior settings
23
+ need_format_bib: Path to the bibliography file that needs to be formatted
24
+ path_output: Output directory path where formatted bibliography files will be saved
25
+ path_conf_j_jsons: Path to conference/journal configuration JSON files
26
+
27
+ Returns:
28
+ None: Formatted bibliography files are saved to the specified output directory
29
+ """
30
+ # Expand and normalize file paths
31
+ need_format_bib, path_output = expand_paths(need_format_bib, path_output)
32
+
33
+ # Update options
34
+ options_ = build_base_options([], [], [], [], path_conf_j_jsons)
35
+ options_.update(options)
36
+
37
+ format_bib_to_save_mode_by_entry_type(Path(need_format_bib).stem, path_output, need_format_bib, options=options_)
38
+
39
+
40
+ def run_format_bib_to_abbr_zotero_save(
41
+ options: dict,
42
+ need_format_bib: str,
43
+ path_output: str,
44
+ path_conf_j_jsons: str,
45
+ ) -> None:
46
+ """
47
+ Format a bibliography file into three different modes: abbreviated, Zotero-compatible, and cleaned source.
48
+
49
+ This function processes a bibliography file and generates three formatted versions:
50
+ 1. Abbreviated version: Journal/conference names are abbreviated according to standard rules
51
+ 2. Zotero-compatible version: Formatted specifically for Zotero reference management software
52
+ 3. Source preservation version: Maintains original content with consistent formatting and organization
53
+
54
+ Args:
55
+ options: Configuration dictionary for formatting behavior settings
56
+ need_format_bib: Path to the bibliography file that needs to be formatted
57
+ path_output: Output directory path where the three formatted bibliography files will be saved
58
+ path_conf_j_jsons: Path to conference/journal configuration JSON files for abbreviation rules
59
+
60
+ Returns:
61
+ None: Three formatted bibliography files are saved to the specified output directory
62
+ """
63
+ # Expand and normalize file paths
64
+ need_format_bib, path_output = expand_paths(need_format_bib, path_output)
65
+
66
+ # Update options
67
+ options_ = build_base_options([], [], [], [], path_conf_j_jsons)
68
+ options_.update(options)
69
+
70
+ format_bib_to_abbr_zotero_save_modes(need_format_bib, path_output, options=options_)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyeasyphd"
3
- version = "0.3.19"
3
+ version = "0.3.20"
4
4
  description = "pyeasyphd"
5
5
  license = "GPL-3.0-or-later"
6
6
  authors = ["NextAI <nextartifintell@gmail.com>"]
@@ -1,45 +0,0 @@
1
- from pybibtexer.tools import compare_bibs_with_local, compare_bibs_with_zotero
2
-
3
- from ._base import build_base_options, expand_paths
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_conf_j_jsons: str,
13
- ) -> None:
14
- # Expand and normalize file paths
15
- need_compare_bib, path_output, path_spidered_bibs, path_spidering_bibs = expand_paths(
16
- need_compare_bib, path_output, path_spidered_bibs, path_spidering_bibs
17
- )
18
-
19
- # Update options
20
- options_ = build_base_options([], [], ["arXiv"], [], path_conf_j_jsons)
21
- options_["include_early_access"] = True
22
- options_.update(options)
23
-
24
- # Compare
25
- compare_bibs_with_local(need_compare_bib, path_spidered_bibs, path_spidering_bibs, path_output, options_)
26
-
27
-
28
- def run_compare_bib_with_zotero(
29
- options: dict,
30
- need_compare_bib: str,
31
- zotero_bib: str,
32
- path_output: str,
33
- path_conf_j_jsons: str,
34
- ) -> None:
35
- # Expand and normalize file paths
36
- need_compare_bib, zotero_bib, path_output = expand_paths(
37
- need_compare_bib, zotero_bib, path_output
38
- )
39
-
40
- # Update options
41
- options_ = build_base_options([], [], ["arXiv"], [], path_conf_j_jsons)
42
- options_.update(options)
43
-
44
- # Compare
45
- compare_bibs_with_zotero(zotero_bib, need_compare_bib, path_output, options_)
@@ -1,37 +0,0 @@
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_base_options, expand_paths
6
-
7
-
8
- def run_format_bib_to_save_by_entry_type(
9
- options: dict,
10
- need_format_bib: str,
11
- path_output: str,
12
- path_conf_j_jsons: str,
13
- ) -> None:
14
- # Expand and normalize file paths
15
- need_format_bib, path_output = expand_paths(need_format_bib, path_output)
16
-
17
- # Update options
18
- options_ = build_base_options([], [], [], [], path_conf_j_jsons)
19
- options_.update(options)
20
-
21
- format_bib_to_save_mode_by_entry_type(Path(need_format_bib).stem, path_output, need_format_bib, options=options_)
22
-
23
-
24
- def run_format_bib_to_abbr_zotero_save(
25
- options: dict,
26
- need_format_bib: str,
27
- path_output: str,
28
- path_conf_j_jsons: str,
29
- ) -> None:
30
- # Expand and normalize file paths
31
- need_format_bib, path_output = expand_paths(need_format_bib, path_output)
32
-
33
- # Update options
34
- options_ = build_base_options([], [], [], [], path_conf_j_jsons)
35
- options_.update(options)
36
-
37
- format_bib_to_abbr_zotero_save_modes(need_format_bib, path_output, options=options_)
File without changes
File without changes