pyeasyphd 0.3.19__py3-none-any.whl → 0.3.21__py3-none-any.whl
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.
- pyeasyphd/scripts/run_compare.py +34 -0
- pyeasyphd/scripts/run_format.py +33 -0
- pyeasyphd/scripts/run_search.py +8 -3
- {pyeasyphd-0.3.19.dist-info → pyeasyphd-0.3.21.dist-info}/METADATA +1 -1
- {pyeasyphd-0.3.19.dist-info → pyeasyphd-0.3.21.dist-info}/RECORD +7 -7
- {pyeasyphd-0.3.19.dist-info → pyeasyphd-0.3.21.dist-info}/WHEEL +0 -0
- {pyeasyphd-0.3.19.dist-info → pyeasyphd-0.3.21.dist-info}/licenses/LICENSE +0 -0
pyeasyphd/scripts/run_compare.py
CHANGED
|
@@ -11,6 +11,24 @@ def run_compare_bib_with_local(
|
|
|
11
11
|
path_spidering_bibs: str,
|
|
12
12
|
path_conf_j_jsons: str,
|
|
13
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
|
+
"""
|
|
14
32
|
# Expand and normalize file paths
|
|
15
33
|
need_compare_bib, path_output, path_spidered_bibs, path_spidering_bibs = expand_paths(
|
|
16
34
|
need_compare_bib, path_output, path_spidered_bibs, path_spidering_bibs
|
|
@@ -32,6 +50,22 @@ def run_compare_bib_with_zotero(
|
|
|
32
50
|
path_output: str,
|
|
33
51
|
path_conf_j_jsons: str,
|
|
34
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
|
+
"""
|
|
35
69
|
# Expand and normalize file paths
|
|
36
70
|
need_compare_bib, zotero_bib, path_output = expand_paths(
|
|
37
71
|
need_compare_bib, zotero_bib, path_output
|
pyeasyphd/scripts/run_format.py
CHANGED
|
@@ -11,6 +11,22 @@ def run_format_bib_to_save_by_entry_type(
|
|
|
11
11
|
path_output: str,
|
|
12
12
|
path_conf_j_jsons: str,
|
|
13
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
|
+
"""
|
|
14
30
|
# Expand and normalize file paths
|
|
15
31
|
need_format_bib, path_output = expand_paths(need_format_bib, path_output)
|
|
16
32
|
|
|
@@ -27,6 +43,23 @@ def run_format_bib_to_abbr_zotero_save(
|
|
|
27
43
|
path_output: str,
|
|
28
44
|
path_conf_j_jsons: str,
|
|
29
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
|
+
"""
|
|
30
63
|
# Expand and normalize file paths
|
|
31
64
|
need_format_bib, path_output = expand_paths(need_format_bib, path_output)
|
|
32
65
|
|
pyeasyphd/scripts/run_search.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
-
from typing import Any, Dict, List
|
|
2
|
+
from typing import Any, Dict, List, Optional
|
|
3
3
|
|
|
4
4
|
from pyadvtools import transform_to_data_list
|
|
5
5
|
from pybibtexer.tools import compare_bibs_with_zotero
|
|
@@ -58,6 +58,7 @@ def run_search_for_files(
|
|
|
58
58
|
path_spidered_bibs: str,
|
|
59
59
|
path_spidering_bibs: str,
|
|
60
60
|
path_conf_j_jsons: str,
|
|
61
|
+
options: Optional[dict] = None
|
|
61
62
|
) -> None:
|
|
62
63
|
"""
|
|
63
64
|
Run search and save results to files with custom keywords.
|
|
@@ -70,6 +71,9 @@ def run_search_for_files(
|
|
|
70
71
|
path_spidering_bibs: Path to spidering bibliography files
|
|
71
72
|
path_conf_j_jsons: Path to conferences/journals JSON files
|
|
72
73
|
"""
|
|
74
|
+
if options is None:
|
|
75
|
+
options = {}
|
|
76
|
+
|
|
73
77
|
# Expand and normalize file paths
|
|
74
78
|
path_main_output = expand_path(path_main_output)
|
|
75
79
|
path_spidered_bibs, path_spidering_bibs, path_conf_j_jsons = expand_paths(
|
|
@@ -77,7 +81,7 @@ def run_search_for_files(
|
|
|
77
81
|
)
|
|
78
82
|
|
|
79
83
|
# Configure search options
|
|
80
|
-
|
|
84
|
+
options_ = {
|
|
81
85
|
**build_base_options(
|
|
82
86
|
include_publisher_list=[],
|
|
83
87
|
include_abbr_list=[],
|
|
@@ -92,8 +96,9 @@ def run_search_for_files(
|
|
|
92
96
|
keywords_list_list=keywords_list_list,
|
|
93
97
|
),
|
|
94
98
|
}
|
|
99
|
+
options_.update(options)
|
|
95
100
|
# Execute searches across different bibliography sources
|
|
96
|
-
_execute_searches(
|
|
101
|
+
_execute_searches(options_, path_main_output, path_spidered_bibs, path_spidering_bibs)
|
|
97
102
|
|
|
98
103
|
|
|
99
104
|
def _execute_searches(
|
|
@@ -29,10 +29,10 @@ pyeasyphd/scripts/_base.py,sha256=Vm-CehgDng38jACb9KBzKkbyJuc_e5UjG06nIMi_l0o,23
|
|
|
29
29
|
pyeasyphd/scripts/run_article_md.py,sha256=3jUPa5eWTtfOzBtwzl6ly1OAWfAR8v-uzwqXcj7aa8M,4263
|
|
30
30
|
pyeasyphd/scripts/run_article_tex.py,sha256=VJNXyRagM5a-iz_6pb54yb7lQfTOWxYY_lK4eU6jp5Y,3825
|
|
31
31
|
pyeasyphd/scripts/run_beamer_tex.py,sha256=GpUVSXINHkgJFIQe_k9qWElTxLmAVFNLJhvivjIdinI,3362
|
|
32
|
-
pyeasyphd/scripts/run_compare.py,sha256=
|
|
33
|
-
pyeasyphd/scripts/run_format.py,sha256=
|
|
32
|
+
pyeasyphd/scripts/run_compare.py,sha256=6UfsAjy9giKTIhvgW2gRbfETkc29_KSV4KyMi1ubN04,3237
|
|
33
|
+
pyeasyphd/scripts/run_format.py,sha256=P1h--AKWblRhbdf1IDmLuu54mbFBFwgGxpGpdLEpZI4,2972
|
|
34
34
|
pyeasyphd/scripts/run_generate.py,sha256=i8J3X3zn2QMuKUshu3FGpaq4kPw_P7TVXU46Wy_mZ8s,8549
|
|
35
|
-
pyeasyphd/scripts/run_search.py,sha256=
|
|
35
|
+
pyeasyphd/scripts/run_search.py,sha256=rnepJpdwakpPFaS65XU_MuC-kQHsF94fwP5rGpVO3-o,7970
|
|
36
36
|
pyeasyphd/tools/__init__.py,sha256=u1MZu_JjVac3HhEmcSTwroS83UVu0W5Vspy3Wu_-GH8,496
|
|
37
37
|
pyeasyphd/tools/generate/generate_from_bibs.py,sha256=Dp1MyADwIRb9qFTFOkMPJLaeeh7NBjuiSLBN7smP2eo,7640
|
|
38
38
|
pyeasyphd/tools/generate/generate_html.py,sha256=JzUEqgTVCaFzd4hXTYUEf0cVSO1QRe0nVUS72W6oyyU,5349
|
|
@@ -46,7 +46,7 @@ pyeasyphd/tools/search/search_keywords.py,sha256=YCurXuoYeU1ftve0cb8Hcn_g2FXCXf7
|
|
|
46
46
|
pyeasyphd/tools/search/search_writers.py,sha256=Dz6D8m17R7x8NT7_PCjwmzlq29AfUz-N6sjyCguDTo4,15702
|
|
47
47
|
pyeasyphd/tools/search/utils.py,sha256=bo7xtIZu31dQvjol1lwyWq1t6ldbw28oondwK8VbAqk,7562
|
|
48
48
|
pyeasyphd/utils/utils.py,sha256=kWxzzgNwz77K9Q7j-RKTaoPpxqiVLVtaBMMhLuEenwE,3128
|
|
49
|
-
pyeasyphd-0.3.
|
|
50
|
-
pyeasyphd-0.3.
|
|
51
|
-
pyeasyphd-0.3.
|
|
52
|
-
pyeasyphd-0.3.
|
|
49
|
+
pyeasyphd-0.3.21.dist-info/METADATA,sha256=Nq1g4eU7si9QZwtMbjMnjITS_Mk58OVRJYCDsWfvrbA,986
|
|
50
|
+
pyeasyphd-0.3.21.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
51
|
+
pyeasyphd-0.3.21.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
52
|
+
pyeasyphd-0.3.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|