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)>)[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

load

Load table entries from the source

load_records_list

The load_records_list must be implemented by the inheriting class (e.g., for ris/bib/...)

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

Return type:

dict

load()

Load table entries from the source

Return type:

dict

load_records_list()[source]

The load_records_list must be implemented by the inheriting class (e.g., for ris/bib/…)

Return type:

list