bibclean.clean_bib_database

bibclean.clean_bib_database(bib_database, exclude=[], keep_fields=None)[source]

Check and clean a BibTex database.

Parameters:
bib_databaseBibDatabase

BibTex database.

excludelist of str

List of entries to ignore. An entry is specified by its cite key.

keep_fieldsdict

Fields to keep for each entry type. If None, a default configuration is loaded. The dictionary is defined with the entry-type as key (str) and the required fields as value (set of str).

Returns:
bib_databaseBibDatabase

BibTex database.