tools.compare.compare_bibs¶
Classes¶
Functions¶
compare_bibs_with_local ¶
compare_bibs_with_local(
original_data,
path_spidered_bibs,
path_spidering_bibs,
path_output,
options,
)
Compare bibliography entries with local bibliography collections.
Processes original bibliography data and compares it against local bib files, categorizing entries into found, not found, and duplicate categories. Results are written to separate output files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
original_data | list[str] | str | Input bibliography data as string or list of strings | required |
path_spidered_bibs | str | Path to pre-collected/spidered bibliography files | required |
path_spidering_bibs | str | Path to actively spidered bibliography files | required |
path_output | str | Output directory for result files | required |
options | dict[str, Any] | Configuration options for comparison behavior compare_each_entry_with_all_local_bibs: Whether to compare each Entry with all local bib files. | required |
Source code in pybibtexer/tools/compare/compare_bibs.py
compare_bibs_with_zotero ¶
Compare downloaded bibliography entries with Zotero library entries.
Processes both Zotero export and downloaded bibliography files, then compares them to identify entries that exist only in the download set versus entries that exist in both collections.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
zotero_bib | list[str] | str | Zotero exported bibliography data as string or list of strings | required |
download_bib | list[str] | str | Downloaded bibliography data as string or list of strings | required |
path_output | str | Output directory path for result files | required |
options | dict[str, Any] | Configuration options for parsing and comparison behavior | required |