tools.format_save_bibs¶
Classes¶
Functions¶
format_bib_to_abbr_or_zotero_or_save_mode ¶
Formats bibliography data to multiple standard formats and returns as data lists.
Processes bibliography data and generates three standardized formats as string lists: abbreviated format, Zotero format, and save format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
original_data | list[str] | str | Input bibliography data as list of strings or file path. | required |
options | dict[str, Any] | Processing configuration options. | required |
Returns:
| Type | Description |
|---|---|
list[str] | Tuple containing three lists of strings representing the formatted bibliography data |
list[str] | in abbreviated, Zotero, and save formats. |
Source code in pybibtexer/tools/format_save_bibs.py
format_bib_to_abbr_zotero_save_modes ¶
Formats bibliography data to multiple standard formats.
Processes bibliography data and generates three standardized formats: abbreviated format, Zotero format, and save format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
original_data | list[str] | str | Input bibliography data as list of strings or file path. | required |
path_output | str | Output directory path for processed files. | required |
options | dict[str, Any] | Processing configuration options. | required |
Returns:
| Type | Description |
|---|---|
None | None |
Source code in pybibtexer/tools/format_save_bibs.py
format_bib_to_save_mode_by_entry_type ¶
format_bib_to_save_mode_by_entry_type(
c_j_abbr,
path_output,
original_data,
combine_year_length=1,
default_year_list=None,
write_flag_bib="w",
check_bib_exist=False,
write_flag_readme="w",
check_md_exist=False,
options=None,
)
Formats bibliography entries and organizes them by year and type.
Processes bibliography data and organizes it into separate files by entry type and year, generating both BibTeX files and README documentation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
c_j_abbr | str | Conference/Journal abbreviation used for naming output files. | required |
path_output | str | Output directory path for processed files. | required |
original_data | list[str] | str | Library | Input bibliography data in various formats (list of strings, file path, file, raw string, or Library object). | required |
combine_year_length | int | Number of years to combine in each output file. | 1 |
default_year_list | list[str] | None | Specific years to process (if empty, processes all years). | None |
write_flag_bib | str | Write mode for BibTeX files ("w" for write, "a" for append). | 'w' |
check_bib_exist | bool | Whether to check if BibTeX files exist before writing. | False |
write_flag_readme | str | Write mode for README files ("w" for write, "a" for append). | 'w' |
check_md_exist | bool | Whether to check if README files exist before writing. | False |
options | dict[str, Any] | None | Additional processing options. | None |
Returns:
| Type | Description |
|---|---|
None | None |
Source code in pybibtexer/tools/format_save_bibs.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
generate_statistic_information ¶
Generates statistical information from bibliography files.
Processes all BibTeX files in the directory tree and extracts key information (DOIs and URLs) into CSV files for analysis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path_storage | str | Root directory containing BibTeX files to process. | required |
Returns:
| Type | Description |
|---|---|
None | None |