colrev.loader.bib.BIBLoader

class BIBLoader(*, filename, unique_id_field='ID', entrytype_setter=<function BIBLoader.<lambda>>, field_mapper=<function BIBLoader.<lambda>>, id_labeler=<function BIBLoader.<lambda>>, logger=<Logger colrev.loader.bib (WARNING)>, format_names=False, resolve_crossref=False)[source]

Bases: Loader

Loads BibTeX files

Methods

get_nr_records

Get the number of records in the file

get_record_header_items

Get the record header items efficiently using load_records_list().

load

Load table entries from the source

load_records_list

Parses the file and returns either full records or just header fields.

classmethod get_nr_records(filename)[source]

Get the number of records in the file

Return type:

int

get_record_header_items()[source]

Get the record header items efficiently using load_records_list().

Return type:

dict

load()

Load table entries from the source

Return type:

dict

load_records_list(header_only=False)[source]

Parses the file and returns either full records or just header fields.

Return type:

List[Dict[str, Any]]